X-Git-Url: http://git.onelab.eu/?p=pingofdeath.git;a=blobdiff_plain;f=ipod.spec;h=fae1afd52705235b1ee762e1d575efcb29dc2aa8;hp=2c878a08f09cc0506d1027085fbb83021c058664;hb=HEAD;hpb=33a56741083dd30469dce7903e07cd6284a1369f diff --git a/ipod.spec b/ipod.spec index 2c878a0..fae1afd 100644 --- a/ipod.spec +++ b/ipod.spec @@ -1,12 +1,24 @@ +# +# $Id$ +# +%define url $URL$ + %define name ipod -%define version 2.0 -%define release 4.planetlab%{?date:.%{date}} +%define version 2.2 +%define taglevel 1 + +%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} + +Vendor: PlanetLab +Packager: PlanetLab Central +Distribution: PlanetLab %{plrelease} +URL: %(echo %{url} | cut -d ' ' -f 2) -Summary: PlanetLab ICMP Ping of Death +Summary: PlanetLab ICMP/UDP Ping of Death Name: %{name} Version: %{version} Release: %{release} -Copyright: GPL +License: GPL Group: System Environment/Kernel Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}root @@ -14,6 +26,14 @@ 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,12 +43,16 @@ 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 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT @@ -39,16 +63,19 @@ cp pod $RPM_BUILD_ROOT/etc/init.d/ /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 +90,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