6 %define name bootstrapfs
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)
17 Summary: The PlanetLab Bootstrap Filesystems
22 Group: System Environment/Base
23 Source0: %{name}-%{version}.tar.gz
24 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
26 Requires: tar, gnupg, sharutils, bzip2
29 %define debug_package %{nil}
33 The PlanetLab Bootstrap Filesystem(s) are downloaded by the
34 BootManager to instantiate a node with a new filesystem.
41 ./build.sh %{pldistro}
45 rm -rf $RPM_BUILD_ROOT
49 install -D -m 644 PlanetLab-Bootstrap.tar.bz2 \
50 $RPM_BUILD_ROOT/var/www/html/boot/PlanetLab-Bootstrap.tar.bz2
52 for pkgs in $(ls ../build/config.%{pldistro}/bootstrapfs-*.pkgs) ; do
53 NAME=$(basename $pkgs .pkgs | sed -e s,bootstrapfs-,,)
54 install -D -m 644 %{pldistro}-filesystems/PlanetLab-Bootstrap-${NAME}.tar.bz2 \
55 $RPM_BUILD_ROOT/var/www/html/boot/PlanetLab-Bootstrap-${NAME}.tar.bz2
61 rm -rf $RPM_BUILD_ROOT
64 if [ -n "$SUDO_USER" ] ; then
65 # Allow user to delete the build directory
66 chown -h -R $SUDO_USER .
67 # Some temporary cdroot files like /var/empty/sshd and
68 # /usr/bin/sudo get created with non-readable permissions.
69 find . -not -perm +0600 -exec chmod u+rw {} \;
70 # Allow user to delete the built RPM(s)
71 chown -h -R $SUDO_USER %{_rpmdir}/%{_arch}
78 %defattr(-,root,root,-)
79 /var/www/html/boot/PlanetLab-Bootstrap*.tar.bz2
82 * Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -