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
41 # Install source so that it can be rebuilt
42 find build.sh source | cpio -p -d -u $RPM_BUILD_ROOT/%{_datadir}/%{name}/
45 install -D -m 755 bootmanager.sh $RPM_BUILD_ROOT/var/www/html/boot/bootmanager.sh
47 # This is only required for 2.x bootcds.
48 install -D -m 644 support-files/uudecode.gz $RPM_BUILD_ROOT/var/www/html/boot/uudecode.gz
51 rm -rf $RPM_BUILD_ROOT
54 if [ -n "$SUDO_USER" ] ; then
55 # Allow user to delete the build directory
56 chown -h -R $SUDO_USER .
57 # Some temporary cdroot files like /var/empty/sshd and
58 # /usr/bin/sudo get created with non-readable permissions.
59 find . -not -perm +0600 -exec chmod u+rw {} \;
60 # Allow user to delete the built RPM(s)
61 chown -h -R $SUDO_USER %{_rpmdir}/%{_arch}
66 Remember to GPG sign /var/www/html/boot/bootmanager.sh with the
67 PlanetLab private key.
71 %defattr(-,root,root,-)
73 %ghost /var/www/html/boot/bootmanager.sh
74 /var/www/html/boot/uudecode.gz
77 * Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -