X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=bootmanager.spec;h=7bed14e1cb015b8eae744dde4f63b827109b52e5;hb=1649b72b761622698b57628c5e1973a1f8e52966;hp=394e0caf3e3ace12aab09688817f5588ef016be2;hpb=a65e5a4a0016147c695895c3384d9fdb8d8cb508;p=bootmanager.git diff --git a/bootmanager.spec b/bootmanager.spec index 394e0ca..7bed14e 100644 --- a/bootmanager.spec +++ b/bootmanager.spec @@ -4,8 +4,8 @@ %define url $URL$ %define name bootmanager -%define version 4.3 -%define taglevel 15 +%define version 5.0 +%define taglevel 5 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} @@ -22,13 +22,22 @@ License: BSD Group: System Environment/Base Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildArch: noarch Requires: tar, gnupg, sharutils, bzip2, pypcilib -Requires: PLCAPI >= 4.3 +# need the apache user at install-time +Requires: httpd +Requires: PLCAPI >= 5.0 # the python code packaged in these are shipped on the node as well Requires: pypcilib pyplnet monitor-runlevelagent +### avoid having yum complain about updates, as stuff is moving around +# plc.d/bootmanager +Conflicts: myplc <= 4.3 +# nodeconfig/boot/* +Conflicts: nodeconfig <= 4.3 + AutoReqProv: no %define debug_package %{nil} @@ -46,45 +55,66 @@ gcc -shared -fPIC -ldl -Os -o source/libc-opendir-hack.so source/libc-opendir-ha 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}/ +find build.sh source | cpio -p -d -u $RPM_BUILD_ROOT/%{_datadir}/%{name}/regular/ + +install -m 644 README $RPM_BUILD_ROOT/%{_datadir}/%{name}/README -touch bootmanager.sh -install -D -m 755 bootmanager.sh $RPM_BUILD_ROOT/var/www/html/boot/bootmanager.sh +# formerly in the nodeconfig module +install -D -m 755 nodeconfig/boot/index.php $RPM_BUILD_ROOT/var/www/html/boot/index.php +install -D -m 755 nodeconfig/boot/upload-bmlog.php $RPM_BUILD_ROOT/var/www/html/boot/upload-bmlog.php +install -D -m 755 nodeconfig/boot/getnodeid.php $RPM_BUILD_ROOT/var/www/html/boot/getnodeid.php -# 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 +# formerly in the MyPLC module +install -D -m 755 plc.d/bootmanager $RPM_BUILD_ROOT/etc/plc.d/bootmanager %clean rm -rf $RPM_BUILD_ROOT -# If run under sudo -if [ -n "$SUDO_USER" ] ; then - # 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 -cat < - BootManager-5.0-5 +- check sha1sum of downloaded bootstrapfs +- try recovering filesystem errors + +* Wed Jun 23 2010 Thierry Parmentelat - BootManager-5.0-4 +- nicer initscript now uses 'action' from /etc/init.d/functions +- bugfix for nodes with extensions + +* Fri Apr 02 2010 Thierry Parmentelat - BootManager-5.0-3 +- create /etc/planetlab if missing +- uses key 'ssh_rsa_key' in BootUpdateNode (requires PLCAPI-5.0.5) + +* Sat Feb 13 2010 Thierry Parmentelat - BootManager-5.0-2 +- caglar's change to run MkInitrd right before kexec +- plus clean up old code + +* Fri Jan 29 2010 Thierry Parmentelat - BootManager-5.0-1 +- first working version of 5.0: +- pld.c/, db-config.d/ and nodeconfig/ scripts should now sit in the module they belong to +- uses PLCAPI's GetNodeFlavour to get all info on the bootstrapfs tarball(s) to install +- installation layout on the plc side has changed, more consistent for e.g. 'alpha' bootmanagers + +* Sat Jan 09 2010 Thierry Parmentelat - BootManager-4.3-16 +- support for fedora 12 + * Sat Dec 19 2009 Marc Fiuczynski - BootManager-4.3-15 - - support for when the node is behind a NAT - - clean up RUN_LEVEL support @@ -188,4 +218,4 @@ chkconfig --del monitor-runlevelagent * Fri Sep 2 2005 Mark Huang - - Initial build. -%define module_current_branch 3.2 +%define module_current_branch 4.3