1 %define name bootmanager
3 %define release 1%{?pldistro:.%{pldistro}}%{?date:.%{date}}
6 Packager: PlanetLab Central <support@planet-lab.org>
7 Distribution: PlanetLab 4.1
8 URL: http://cvs.planet-lab.org/cvs/bootmanager
10 Summary: The PlanetLab Boot Manager
15 Group: System Environment/Base
16 Source0: %{name}-%{version}.tar.gz
17 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
19 Requires: tar, gnupg, sharutils, bzip2
22 %define debug_package %{nil}
25 The PlanetLab Boot Manager securely authenticates and boots PlanetLab
37 rm -rf $RPM_BUILD_ROOT
41 # Install source so that it can be rebuilt
42 find build.sh source | cpio -p -d -u $RPM_BUILD_ROOT/%{_datadir}/%{name}/
44 install -D -m 755 bootmanager.sh $RPM_BUILD_ROOT/var/www/html/boot/bootmanager.sh
46 # This is only required for 2.x bootcds.
47 install -D -m 644 support-files/uudecode.gz $RPM_BUILD_ROOT/var/www/html/boot/uudecode.gz
52 rm -rf $RPM_BUILD_ROOT
55 if [ -n "$SUDO_USER" ] ; then
56 # Allow user to delete the build directory
57 chown -h -R $SUDO_USER .
58 # Some temporary cdroot files like /var/empty/sshd and
59 # /usr/bin/sudo get created with non-readable permissions.
60 find . -not -perm +0600 -exec chmod u+rw {} \;
61 # Allow user to delete the built RPM(s)
62 chown -h -R $SUDO_USER %{_rpmdir}/%{_arch}
67 Remember to GPG sign /var/www/html/boot/bootmanager.sh with the
68 PlanetLab private key.
72 %defattr(-,root,root,-)
77 * Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -