10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
13 Packager: PlanetLab Central <support@planet-lab.org>
14 Distribution: PlanetLab %{plrelease}
15 URL: %(echo %{url} | cut -d ' ' -f 2)
22 Group: System Environment/Base
23 Source0: %{name}-%{version}.tar.gz
24 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
26 Requires: dosfstools, mkisofs, gzip, mtools, syslinux
29 %define debug_package %{nil}
32 The Boot CD securely boots PlanetLab nodes into an immutable
41 # Build the reference image
47 rm -rf $RPM_BUILD_ROOT
51 # Install the reference image and build scripts
52 install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/%{name}
53 install -m 755 build.sh $RPM_BUILD_ROOT/%{_datadir}/%{name}/
55 build/isofs/bootcd.img \
61 tar -C $RPM_BUILD_ROOT/%{_datadir}/%{name}/ -xpf -
66 rm -rf $RPM_BUILD_ROOT
69 if [ -n "$SUDO_USER" ] ; then
70 # Allow user to delete the build directory
71 chown -h -R $SUDO_USER .
72 # Some temporary cdroot files like /var/empty/sshd and
73 # /usr/bin/sudo get created with non-readable permissions.
74 find . -not -perm +0600 -exec chmod u+rw {} \;
75 # Allow user to delete the built RPM(s)
76 chown -h -R $SUDO_USER %{_rpmdir}/%{_arch}
80 %defattr(-,root,root,-)
84 * Thu Jan 31 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootcd-3.4-2 bootcd-3.4-3
85 - load floppy with modprobe flags
86 - support for creating a usb partition
87 - removed obsolete files newbuild.sh, bootcustom.sh and cdcustom.sh
89 * Mon Jan 29 2006 Marc E. Fiuczynski <mef@cs.princeton.edu> -
90 - added biginitrd usb image
92 * Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -