3 %define release 2%{?pldistro:.%{pldistro}}%{?date:.%{date}}
6 Packager: PlanetLab Central <support@planet-lab.org>
7 Distribution: PlanetLab 4.0
8 URL: http://cvs.planet-lab.org/cvs/bootcd
15 Group: System Environment/Base
16 Source0: %{name}-%{version}.tar.gz
17 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
19 Requires: dosfstools, mkisofs, gzip, mtools, syslinux
22 %define debug_package %{nil}
25 The Boot CD securely boots PlanetLab nodes into an immutable
34 # Build the reference image
40 rm -rf $RPM_BUILD_ROOT
44 # Install the reference image and build scripts
45 install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/%{name}
46 install -m 755 build.sh $RPM_BUILD_ROOT/%{_datadir}/%{name}/
48 build/isofs/bootcd.img \
54 tar -C $RPM_BUILD_ROOT/%{_datadir}/%{name}/ -xpf -
59 rm -rf $RPM_BUILD_ROOT
62 if [ -n "$SUDO_USER" ] ; then
63 # Allow user to delete the build directory
64 chown -h -R $SUDO_USER .
65 # Some temporary cdroot files like /var/empty/sshd and
66 # /usr/bin/sudo get created with non-readable permissions.
67 find . -not -perm +0600 -exec chmod u+rw {} \;
68 # Allow user to delete the built RPM(s)
69 chown -h -R $SUDO_USER %{_rpmdir}/%{_arch}
73 %defattr(-,root,root,-)
77 * Mon Jan 29 2006 Marc E. Fiuczynski <mef@cs.princeton.edu> -
78 - added biginitrd usb image
80 * Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -