6 # please keep these three lines as they are used by the tagging script
7 # see build/module-tag.py for details
8 %define name fprobe-ulog
12 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
17 Summary: fprobe-ulog: a NetFlow probe
18 Group: Network/Monitoring
20 #URL: http://fprobe.sourceforge.net
21 URL: %(echo %{url} | cut -d ' ' -f 2)
22 Source0: %{name}-%{version}.tar.bz2
23 Buildroot: %{_tmppath}/%{name}-buildroot
27 fprobe-ulog - libipulog-based tool that collect network traffic data and emit
28 it as NetFlow flows towards the specified collector. PlanetLab version.
34 ./configure --sbindir=/sbin --mandir=%{_mandir} --enable-uptime_trick=no $EXTRA_OPTIONS
39 make install DESTDIR=%{buildroot}
40 install -d -v %{buildroot}/etc/init.d
41 mkdir -p %{buildroot}/usr/local/fprobe
42 install -m 755 -v fprobe-initscript %{buildroot}/etc/init.d/fprobe-ulog
43 gzip --best %{buildroot}%{_mandir}/man8/fprobe-ulog.8
50 %doc AUTHORS ChangeLog NEWS README COPYING TODO
51 /etc/init.d/fprobe-ulog
54 %{_mandir}/man8/fprobe-ulog.8.gz
57 chkconfig --add fprobe-ulog
58 chkconfig fprobe-ulog on
59 if [ "$PL_BOOTCD" != "1" ] ; then
60 service fprobe-ulog start
64 # 0 = erase, 1 = upgrade
65 if [ "$1" -eq 0 ]; then
66 if [ "$PL_BOOTCD" != "1" ] ; then
67 service fprobe-ulog stop
69 chkconfig fprobe-ulog off
70 chkconfig --del fprobe-ulog