X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fprobe-ulog.spec;h=ae047d8df55613527f552cb43f90be8f204783de;hb=e1d02b39fa114958249c49f5c66a1d98288473fb;hp=dc9586cd3d5235337c1a6822317546ee7f45246e;hpb=b10d54ea2c267fce4e881b9d7e064427f6e6c34f;p=fprobe-ulog.git diff --git a/fprobe-ulog.spec b/fprobe-ulog.spec index dc9586c..ae047d8 100644 --- a/fprobe-ulog.spec +++ b/fprobe-ulog.spec @@ -1,5 +1,5 @@ Name: fprobe-ulog -Version: 1.1 +Version: 1.1.2 Release: 1 Summary: fprobe-ulog: a NetFlow probe Group: Network/Monitoring @@ -11,18 +11,20 @@ Provides: fprobe-ulog %description fprobe-ulog - libipulog-based tool that collect network traffic data and emit -it as NetFlow flows towards the specified collector. +it as NetFlow flows towards the specified collector. PlanetLab version. %prep %setup -q %build -./configure --sbindir=%{_sbindir} --mandir=%{_mandir} $EXTRA_OPTIONS +./configure --sbindir=/sbin --mandir=%{_mandir} --enable-uptime_trick=no $EXTRA_OPTIONS make %install rm -rf %{buildroot} -make install-strip DESTDIR=%{buildroot} +make install DESTDIR=%{buildroot} +install -d -v %{buildroot}/etc/init.d +install -m 755 -v fprobe-initscript %{buildroot}/etc/init.d/fprobe-ulog gzip --best %{buildroot}%{_mandir}/man8/fprobe-ulog.8 %clean @@ -31,4 +33,27 @@ rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS ChangeLog NEWS README COPYING TODO -/* +/etc/init.d/fprobe-ulog +/sbin/fprobe-ulog +%{_mandir}/man8/fprobe-ulog.8.gz + +%post +mkdir -p /usr/local/fprobe +chkconfig --add fprobe-ulog +chkconfig fprobe-ulog on +if [ "$PL_BOOTCD" != "1" ] ; then + service fprobe-ulog start + fi + +%preun +# 0 = erase, 1 = upgrade +if [ "$1" -eq 0 ]; then + if [ "$PL_BOOTCD" != "1" ] ; then + service fprobe-ulog stop + fi + chkconfig fprobe-ulog off + chkconfig --del fprobe-ulog +fi + + +%changelog