X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=bootmanager.spec;h=825761e105b0f612f94f33b9d47539d8a52ee4eb;hb=79ea11f05210d17197030e6405e74345c7dcb690;hp=42686079be77a5100fa17f9e9f0a59dde5f303bb;hpb=fd66101d737ad61be991c54c6bcff08b2e805f4e;p=bootmanager.git diff --git a/bootmanager.spec b/bootmanager.spec index 4268607..825761e 100644 --- a/bootmanager.spec +++ b/bootmanager.spec @@ -1,14 +1,21 @@ +# +# $Id$ +# +%define url $URL$ + %define name bootmanager -%define version 3.1 -%define release 1.planetlab.planetlab%{?date:.%{date}} +%define version 3.2 +%define taglevel 4 + +%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} Vendor: PlanetLab Packager: PlanetLab Central -Distribution: PlanetLab 3.0 -URL: http://cvs.planet-lab.org/cvs/bootmanager +Distribution: PlanetLab %{plrelease} +URL: %(echo %{url} | cut -d ' ' -f 2) Summary: The PlanetLab Boot Manager -Name: bootmanager +Name: %{name} Version: %{version} Release: %{release} License: BSD @@ -16,6 +23,11 @@ Group: System Environment/Base Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +Requires: tar, gnupg, sharutils, bzip2, pypcilib + +AutoReqProv: no +%define debug_package %{nil} + %description The PlanetLab Boot Manager securely authenticates and boots PlanetLab nodes. @@ -24,30 +36,31 @@ nodes. %setup -q %build -./build.sh -make -C support-files %install rm -rf $RPM_BUILD_ROOT + +# Install source so that it can be rebuilt +find build.sh source | cpio -p -d -u $RPM_BUILD_ROOT/%{_datadir}/%{name}/ + +touch bootmanager.sh install -D -m 755 bootmanager.sh $RPM_BUILD_ROOT/var/www/html/boot/bootmanager.sh -for tarball in \ - alpina-BootLVM.tar.gz \ - alpina-PartDisks.tar.gz \ - PlanetLab-Bootstrap.tar.bz2 ; do - install -D -m 644 support-files/$tarball $RPM_BUILD_ROOT/var/www/html/boot/$tarball -done - -# If run under sudo, allow user to delete the build directory -if [ -n "$SUDO_USER" ] ; then - chown -R $SUDO_USER . -fi + +# This is only required for 2.x bootcds. +install -D -m 644 support-files/uudecode.gz $RPM_BUILD_ROOT/var/www/html/boot/uudecode.gz %clean rm -rf $RPM_BUILD_ROOT -# If run under sudo, allow user to delete the built RPM +# If run under sudo if [ -n "$SUDO_USER" ] ; then - chown $SUDO_USER %{_rpmdir}/%{_arch}/%{name}-%{version}-%{release}.%{_arch}.rpm + # Allow user to delete the build directory + chown -h -R $SUDO_USER . + # Some temporary cdroot files like /var/empty/sshd and + # /usr/bin/sudo get created with non-readable permissions. + find . -not -perm +0600 -exec chmod u+rw {} \; + # Allow user to delete the built RPM(s) + chown -h -R $SUDO_USER %{_rpmdir}/%{_arch} fi %post @@ -58,9 +71,21 @@ EOF %files %defattr(-,root,root,-) -/var/www/html/boot/* +%{_datadir}/%{name} +%ghost /var/www/html/boot/bootmanager.sh +/var/www/html/boot/uudecode.gz %changelog +* Fri Feb 08 2008 Thierry Parmentelat - bootmanager-3.2-3 bootmanager-3.2-4 +- usage of wireless attributes fixed and tested +- breakpoints cleaned up (no change for production) +- less alarming message when floppy does not get unloaded + +* Thu Jan 31 2008 Thierry Parmentelat - bootmanager-3.2-2 bootmanager-3.2-3 +- network config : support the full set of settings from ifup-wireless - see also http://svn.planet-lab.org/svn/MyPLC/tags/myplc-4.2-1/db-config +- removes legacy calls to PlanetLabConf.py +- refrains from unloading floppy +- first draft of the dual-method for implementing extensions (bootstrapfs-like images or yum install) + * Fri Sep 2 2005 Mark Huang - - Initial build. -