head 1.11; access; symbols OPENPKG_E1_MP_HEAD:1.2 OPENPKG_E1_MP:1.2; locks; strict; comment @-- @; 1.11 date 2009.06.30.20.21.07; author rse; state Exp; branches; next 1.10; commitid mW7f5wxeUG4f4VTt; 1.10 date 2009.06.08.07.54.30; author rse; state Exp; branches; next 1.9; commitid kQJVSZMJnc73F1Rt; 1.9 date 2009.04.18.13.13.17; author rse; state Exp; branches; next 1.8; commitid 4pHXU27WTIGCZuKt; 1.8 date 2008.02.23.15.21.20; author rse; state Exp; branches; next 1.7; commitid 3jtwF9j2nVjZgxSs; 1.7 date 2008.01.01.14.59.54; author rse; state Exp; branches; next 1.6; commitid B8esaHJHoduuKILs; 1.6 date 2007.10.27.11.59.39; author cs; state Exp; branches; next 1.5; commitid XKMxflRJ6S7CYdDs; 1.5 date 2007.10.15.16.28.13; author rse; state Exp; branches; next 1.4; commitid YRn3nZsZ5LM0RHBs; 1.4 date 2007.08.24.19.23.44; author rse; state Exp; branches; next 1.3; commitid UzvZWSVWPYXQu2vs; 1.3 date 2007.07.20.20.17.33; author thl; state Exp; branches; next 1.2; commitid yCyWfcoNSNOaUxqs; 1.2 date 2007.01.01.17.40.07; author rse; state Exp; branches; next 1.1; commitid BicZD6VUl7GuqP0s; 1.1 date 2006.10.23.11.39.13; author rse; state Exp; branches; next ; commitid k2RT6uho9V9kJNRr; desc @@ 1.11 log @switch to the new SourceForge.net website functionality where we can find all files (again) @ text @## ## nfdump.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that ## the above copyright notice and this permission notice appear in all ## copies. ## ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ## SUCH DAMAGE. ## # package information Name: nfdump Summary: NetFlow Collecting and Processing Toolkit URL: http://nfdump.sourceforge.net/ Vendor: Peter Haag Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: Auditing License: BSD Version: 1.5.8 Release: 20090608 # package options %option with_fsl yes # list of sources Source0: http://switch.dl.sourceforge.net/nfdump/nfdump-%{version}.tar.gz Source1: fsl.nfdump Source2: rc.nfdump Patch0: nfdump.patch # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, bison, flex PreReq: OpenPKG, openpkg >= 20040130 %if "%{with_fsl}" == "yes" BuildPreReq: fsl PreReq: fsl %endif AutoReq: no AutoReqProv: no %description NFDump is a toolkit for collecting and processing NetFlow statistics data on the command line. %track prog nfdump = { version = %{version} url = http://sourceforge.net/projects/nfdump/files/ regex = nfdump-(__VER__)\.tar\.gz } %prep %setup -q %patch -p0 %{l_shtool} subst -e 's;-o root -g bin; ;g' Makefile.in %build # configure program CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ CPPFLAGS="%{l_cppflags}" \ LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \ LIBS="%{l_fsl_libs}" \ ./configure \ --prefix=%{l_prefix} # build program %{l_make} %{l_mflags} %install # create installation hierarchy rm -rf $RPM_BUILD_ROOT %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/etc/fsl \ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ $RPM_BUILD_ROOT%{l_prefix}/var/nfdump/db # install program and manual pages %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT # strip down and adjust installation strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true # install run-command script %{l_shtool} install -c -m 755 %{l_value -s -a} \ %{SOURCE rc.nfdump} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ # install OSSP fsl configuration %{l_shtool} install -c -m 644 %{l_value -s -a} \ %{SOURCE fsl.nfdump} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/ # determine installation files %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ '%config %{l_prefix}/etc/fsl/fsl.nfdump' \ '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/nfdump' \ '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/nfdump/db' %files -f files %clean rm -rf $RPM_BUILD_ROOT %post # after upgrade, restart service [ $1 -eq 2 ] || exit 0 eval `%{l_rc} nfdump status 2>/dev/null` [ ".$nfdump_active" = .yes ] && %{l_rc} nfdump restart exit 0 %preun # before erase, stop service and remove log files [ $1 -eq 0 ] || exit 0 %{l_rc} nfdump stop 2>/dev/null rm -f $RPM_INSTALL_PREFIX/var/nfdump/*/* >/dev/null 2>&1 || true exit 0 @ 1.10 log @upgrading package: nfdump 1.5.7 -> 1.5.8 @ text @d65 1 a65 1 url = http://prdownloads.sourceforge.net/nfdump/ @ 1.9 log @bump years in copyright messages @ text @d34 2 a35 2 Version: 1.5.7 Release: 20080223 @ 1.8 log @upgrading package: nfdump 1.5.6 -> 1.5.7 @ text @d3 1 a3 1 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. @ 1.7 log @Update package specifications according to OpenPKG year 2008 world order: http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html @ text @d34 2 a35 2 Version: 1.5.6 Release: 20080101 d44 1 d71 1 @ 1.6 log @Drop version information of OSSP fsl dependency since it doesn't make to much sense in an CURRENT-only world. Additionally, in several cases it has been choosen quite at will without being correct. @ text @d3 1 a3 2 ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. ## Copyright (c) 2000-2007 Ralf S. Engelschall d35 1 a35 1 Release: 20071027 @ 1.5 log @upgrading package: nfdump 1.5.5 -> 1.5.6 @ text @d36 1 a36 1 Release: 20071015 d52 2 a53 2 BuildPreReq: fsl >= 1.2.0 PreReq: fsl >= 1.2.0 @ 1.4 log @upgrading package: nfdump 1.5.2 -> 1.5.5 @ text @d35 2 a36 2 Version: 1.5.5 Release: 20070824 @ 1.3 log @remove "%not %dir" construct, allowing proper directory ownership tracking and removal when erasing last provider @ text @d35 2 a36 2 Version: 1.5.2 Release: 20070720 d84 1 a84 1 %{l_make} %{l_mflags -O} a98 2 mv $RPM_BUILD_ROOT%{l_prefix}/bin/nfclean.pl \ $RPM_BUILD_ROOT%{l_prefix}/bin/nfclean @ 1.2 log @Welcome Year 2007! @ text @d36 1 a36 1 Release: 20061023 a112 1 '%not %dir %{l_prefix}/etc/fsl' \ @ 1.1 log @new package: nfdump 1.5.2 (NetFlow Collecting and Processing Toolkit) @ text @d3 2 a4 2 ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. ## Copyright (c) 2000-2006 Ralf S. Engelschall @