X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ipod.spec;h=f22b5bad28c2cc5b99aeb949f3cc50a2c64a9f63;hb=refs%2Fheads%2Fplanetlab-3_3-bootcd-branch;hp=ef2763ad6158db63ff487baabf1aacc557beceed;hpb=b3b321bfa2a0b31788a3246dcc97666098cadcf9;p=pingofdeath.git diff --git a/ipod.spec b/ipod.spec index ef2763a..f22b5ba 100644 --- a/ipod.spec +++ b/ipod.spec @@ -1,19 +1,32 @@ %define name ipod -%define version 2.0 -%define release 3.planetlab%{?date:.%{date}} +%define version 2.2 +%define release 1%{?pldistro:.%{pldistro}}%{?date:.%{date}} -Summary: PlanetLab ICMP Ping of Death +Vendor: PlanetLab +Packager: PlanetLab Central +Distribution: PlanetLab 3.0 +URL: http://cvs.planet-lab.org/cvs/ipod + +Summary: PlanetLab ICMP/UDP Ping of Death Name: %{name} Version: %{version} Release: %{release} Copyright: GPL Group: System Environment/Kernel Source: %{name}-%{version}.tar.gz -BuildRoot: /tmp/%{name}-%{version}-root +BuildRoot: %{_tmppath}/%{name}-%{version}root %description Startup service to enable Ping Of Death +%package client +Summary: PlanetLab ICMP/UDP Ping of Death Client Tools +Group: System Environment/Kernel +Requires: python + +%description client +Client utilities to use Ping of Death + %prep %setup @@ -23,32 +36,39 @@ make %install +# ipod mkdir -p $RPM_BUILD_ROOT/usr/local/planetlab/bin mkdir -p $RPM_BUILD_ROOT/etc/init.d cp pl-poddoit $RPM_BUILD_ROOT/usr/local/planetlab/bin/ cp pod $RPM_BUILD_ROOT/etc/init.d/ +# ipod-client +mkdir -p $RPM_BUILD_ROOT/usr/bin/ +cp pod.py $RPM_BUILD_ROOT/usr/bin %clean -rm -rf $RPM_BUILD_ROOT +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files -%defattr(-, root, root) +%defattr(0755, root, root) /etc/init.d/pod /usr/local/planetlab/bin/pl-poddoit +%files client +%defattr(0755, root, root) +/usr/bin/pod.py + + %pre %post -RUNLEVEL=`/sbin/runlevel` - if [ "$1" = 1 ]; then chkconfig --add pod chkconfig pod on - if [[ "$RUNLEVEL" != "unknown" ]]; then + if [[ "$PL_BOOTCD" != "1" ]] ; then /etc/init.d/pod start fi fi @@ -63,6 +83,14 @@ fi %changelog +* Wed Jan 11 2006 Aaron Klingaman +- add support for building client tool rpm + +* Fri Aug 5 2005 Aaron Klingaman +- updated to use new source of POD Hash (/etc/planetlab/session) +- minor build changes to simply build process +- remove unnecessary call to runlevel in post section + * Mon Apr 12 2004 Aaron Klingaman - moved to new build process - added change log