2 # $Id: bootmanager.spec 856 2007-09-21 13:54:58Z thierry $
4 %define name bootmanager
8 %define release %{subversion}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
11 Packager: PlanetLab Central <support@planet-lab.org>
12 Distribution: PlanetLab 4.2
13 URL: http://cvs.planet-lab.org/cvs/bootmanager
15 Summary: The PlanetLab Boot Manager
20 Group: System Environment/Base
21 Source0: %{name}-%{version}.tar.gz
22 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
24 Requires: tar, gnupg, sharutils, bzip2, pypcilib
27 %define debug_package %{nil}
30 The PlanetLab Boot Manager securely authenticates and boots PlanetLab
39 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
55 rm -rf $RPM_BUILD_ROOT
58 if [ -n "$SUDO_USER" ] ; then
59 # Allow user to delete the build directory
60 chown -h -R $SUDO_USER .
61 # Some temporary cdroot files like /var/empty/sshd and
62 # /usr/bin/sudo get created with non-readable permissions.
63 find . -not -perm +0600 -exec chmod u+rw {} \;
64 # Allow user to delete the built RPM(s)
65 chown -h -R $SUDO_USER %{_rpmdir}/%{_arch}
70 Remember to GPG sign /var/www/html/boot/bootmanager.sh with the
71 PlanetLab private key.
75 %defattr(-,root,root,-)
77 %ghost /var/www/html/boot/bootmanager.sh
78 /var/www/html/boot/uudecode.gz
81 * Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -