6 %define name bootmanager
10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
13 Packager: PlanetLab Central <support@planet-lab.org>
14 Distribution: PlanetLab %{plrelease}
15 URL: %(echo %{url} | cut -d ' ' -f 2)
17 Summary: The PlanetLab Boot Manager
22 Group: System Environment/Base
23 Source0: %{name}-%{version}.tar.gz
24 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
26 Requires: tar, gnupg, sharutils, bzip2, pypcilib
29 %define debug_package %{nil}
32 The PlanetLab Boot Manager securely authenticates and boots PlanetLab
41 rm -rf $RPM_BUILD_ROOT
43 # Install source so that it can be rebuilt
44 find build.sh source | cpio -p -d -u $RPM_BUILD_ROOT/%{_datadir}/%{name}/
47 install -D -m 755 bootmanager.sh $RPM_BUILD_ROOT/var/www/html/boot/bootmanager.sh
49 # This is only required for 2.x bootcds.
50 install -D -m 644 support-files/uudecode.gz $RPM_BUILD_ROOT/var/www/html/boot/uudecode.gz
53 rm -rf $RPM_BUILD_ROOT
56 if [ -n "$SUDO_USER" ] ; then
57 # Allow user to delete the build directory
58 chown -h -R $SUDO_USER .
59 # Some temporary cdroot files like /var/empty/sshd and
60 # /usr/bin/sudo get created with non-readable permissions.
61 find . -not -perm +0600 -exec chmod u+rw {} \;
62 # Allow user to delete the built RPM(s)
63 chown -h -R $SUDO_USER %{_rpmdir}/%{_arch}
68 Remember to GPG sign /var/www/html/boot/bootmanager.sh with the
69 PlanetLab private key.
73 %defattr(-,root,root,-)
75 %ghost /var/www/html/boot/bootmanager.sh
76 /var/www/html/boot/uudecode.gz
79 * Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -