X-Git-Url: http://git.onelab.eu/?p=fprobe-ulog.git;a=blobdiff_plain;f=fprobe-ulog.spec;h=e844f8c1670061512807168ab339cdb27a3d39c5;hp=18a05ebe617bcf824196dd7d59150a0f1607e8fe;hb=f42d3718eaa93d9efb2cfcb7cb455d7b8f4bc775;hpb=2619cb78e4839042c902faf59f3b6a9a5963c746 diff --git a/fprobe-ulog.spec b/fprobe-ulog.spec index 18a05eb..e844f8c 100644 --- a/fprobe-ulog.spec +++ b/fprobe-ulog.spec @@ -3,42 +3,43 @@ # %define url $URL$ +# please keep these three lines as they are used by the tagging script +# see build/module-tag.py for details %define name fprobe-ulog -%define version 1.1.1 +%define version 1.1.3 %define taglevel 1 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} +Name: %{name} +Version: %{version} +Release: %{release} Summary: fprobe-ulog: a NetFlow probe -Name: %{name} -Version: %{version} -Release: %{release} Group: Network/Monitoring License: GPL #URL: http://fprobe.sourceforge.net +URL: %(echo %{url} | cut -d ' ' -f 2) Source0: %{name}-%{version}.tar.bz2 Buildroot: %{_tmppath}/%{name}-buildroot Provides: fprobe-ulog -Vendor: PlanetLab -Packager: PlanetLab Central -Distribution: PlanetLab %{plrelease} -URL: %(echo %{url} | cut -d ' ' -f 2) - %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} --enable-uptime_trick=no $EXTRA_OPTIONS +./configure --sbindir=/sbin --mandir=%{_mandir} --enable-uptime_trick=no $EXTRA_OPTIONS make %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} +install -d -v %{buildroot}/etc/init.d +mkdir -p %{buildroot}/var/local/fprobe +install -m 755 -v fprobe-initscript %{buildroot}/etc/init.d/fprobe-ulog gzip --best %{buildroot}%{_mandir}/man8/fprobe-ulog.8 %clean @@ -47,4 +48,43 @@ rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS ChangeLog NEWS README COPYING TODO -/* +/etc/init.d/fprobe-ulog +/sbin/fprobe-ulog +/var/local/fprobe +%{_mandir}/man8/fprobe-ulog.8.gz + +%post +chkconfig --add fprobe-ulog +if [ "$PL_BOOTCD" != "1" ] ; then + service fprobe-ulog condrestart +fi + +%preun +# 0 = erase, 1 = upgrade +if [ "$1" -eq 0 ]; then + if [ "$PL_BOOTCD" != "1" ] ; then + service fprobe-ulog stop + fi + chkconfig --del fprobe-ulog +fi + + +%changelog +* Fri Nov 06 2009 Daniel Hokka Zakrisson - fprobe-ulog-1.1.3-1 +- Proper initscript semantics. + +* Sun Sep 14 2008 Sapan Bhatia - fprobe-ulog-1.1.2-6 +- Codemux support: react to changes in the xid of a connection to update the corresponding flow record. + +* Wed Sep 10 2008 Sapan Bhatia - fprobe-ulog-1.1.2-5 +- Bug fix, although not major. + +* Tue Jul 01 2008 Sapan Bhatia - fprobe-ulog-1.1.2-4 +- This change is required for PlanetFlow data collection on PLE. It makes fprobe data accessible to non-root users such +- as pl[e]_netflow. + +* Mon May 05 2008 Stephen Soltesz - fprobe-ulog-1.1.2-3 +- + + +%define module_current_branch 1.1.2