1 %define name bootmanager
3 %define release 2%{?pldistro:.%{pldistro}}%{?date:.%{date}}
6 Packager: PlanetLab Central <support@planet-lab.org>
7 Distribution: PlanetLab 3.0
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
40 rm -rf $RPM_BUILD_ROOT
44 # Install source so that it can be rebuilt
45 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
50 PlanetLab-Bootstrap.tar.bz2 ; do
51 install -D -m 644 support-files/$file $RPM_BUILD_ROOT/var/www/html/boot/$file
57 rm -rf $RPM_BUILD_ROOT
60 if [ -n "$SUDO_USER" ] ; then
61 # Allow user to delete the build directory
63 # Some temporary cdroot files like /var/empty/sshd and
64 # /usr/bin/sudo get created with non-readable permissions.
65 find . -not -perm +0600 -exec chmod u+rw {} \;
66 # Allow user to delete the built RPM(s)
67 chown -R $SUDO_USER %{_rpmdir}/%{_arch}
72 Remember to GPG sign /var/www/html/boot/bootmanager.sh with the
73 PlanetLab private key.
77 %defattr(-,root,root,-)
82 * Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -