3 %define release 2%{?pldistro:.%{pldistro}}%{?date:.%{date}}
6 Packager: PlanetLab Central <support@planet-lab.org>
7 Distribution: PlanetLab 3.3
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
22 %define debug_package %{nil}
25 The Boot CD securely boots PlanetLab nodes into an immutable
29 Summary: PlanetLab Boot CD
30 Group: System Environment/Base
32 %description planetlab
33 The default PlanetLab Boot CD, customized to boot from PlanetLab
42 # Build the reference image
45 # Build the default configuration (PlanetLab)
48 md5sum PlanetLab-BootCD-%{version}.{iso,usb} \
49 >PlanetLab-BootCD-%{version}.md5
54 rm -rf $RPM_BUILD_ROOT
58 # Install the reference image and build scripts
59 install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/%{name}
60 install -m 755 build.sh $RPM_BUILD_ROOT/%{_datadir}/%{name}/
62 build/isofs/bootcd.img \
63 build/isofs/isolinux.bin \
68 syslinux/unix/syslinux | \
69 tar -C $RPM_BUILD_ROOT/%{_datadir}/%{name}/ -xpf -
71 # Install the default images in the download/ directory
72 install -d -m 755 $RPM_BUILD_ROOT/var/www/html/download
73 install -m 644 PlanetLab-BootCD-%{version}.* \
74 $RPM_BUILD_ROOT/var/www/html/download/
79 rm -rf $RPM_BUILD_ROOT
82 if [ -n "$SUDO_USER" ] ; then
83 # Allow user to delete the build directory
85 # Some temporary cdroot files like /var/empty/sshd and
86 # /usr/bin/sudo get created with non-readable permissions.
87 find . -not -perm +0600 -exec chmod u+rw {} \;
88 # Allow user to delete the built RPM(s)
89 chown -R $SUDO_USER %{_rpmdir}/%{_arch}
95 /var/www/html/download/PlanetLab-BootCD-%{version}.{iso,usb} with
96 the PlanetLab private key.
100 %defattr(-,root,root,-)
104 %defattr(-,root,root,-)
105 /var/www/html/download
108 * Mon Jan 29 2006 Marc E. Fiuczynski <mef@cs.princeton.edu> -
109 - added biginitrd usb image
111 * Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -