head	1.27;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.25
	OPENPKG_E1_MP:1.25
	OPENPKG_CW_FP:1.18
	OPENPKG_1_STABLE_MP:1.14;
locks; strict;
comment	@-- @;


1.27
date	2009.04.18.13.11.21;	author rse;	state Exp;
branches;
next	1.26;
commitid	4pHXU27WTIGCZuKt;

1.26
date	2008.01.01.14.55.53;	author rse;	state Exp;
branches;
next	1.25;
commitid	B8esaHJHoduuKILs;

1.25
date	2007.01.01.17.38.42;	author rse;	state Exp;
branches;
next	1.24;
commitid	BicZD6VUl7GuqP0s;

1.24
date	2006.11.05.09.04.48;	author rse;	state Exp;
branches;
next	1.23;
commitid	kL0bkFh8SbprssTr;

1.23
date	2006.10.13.17.28.58;	author thl;	state Exp;
branches;
next	1.22;
commitid	q5GSxzsSDX29XxQr;

1.22
date	2006.09.24.13.52.19;	author rse;	state Exp;
branches;
next	1.21;
commitid	flcSW6zFeRYLo5Or;

1.21
date	2006.09.23.13.05.34;	author rse;	state Exp;
branches;
next	1.20;
commitid	p0vzA8nB0rNJaXNr;

1.20
date	2006.01.01.13.14.46;	author rse;	state Exp;
branches;
next	1.19;
commitid	otZG8yKMCw1JFTfr;

1.19
date	2005.03.24.11.19.07;	author rse;	state Exp;
branches;
next	1.18;

1.18
date	2005.01.01.10.50.34;	author rse;	state Exp;
branches;
next	1.17;

1.17
date	2004.02.07.17.55.43;	author rse;	state Exp;
branches;
next	1.16;

1.16
date	2004.02.03.20.02.37;	author rse;	state Exp;
branches;
next	1.15;

1.15
date	2004.01.23.13.09.53;	author rse;	state Exp;
branches;
next	1.14;

1.14
date	2003.07.23.13.31.57;	author rse;	state Exp;
branches;
next	1.13;

1.13
date	2003.07.10.09.12.44;	author mlelstv;	state Exp;
branches;
next	1.12;

1.12
date	2003.07.08.14.40.10;	author rse;	state Exp;
branches;
next	1.11;

1.11
date	2003.07.08.14.25.07;	author rse;	state Exp;
branches;
next	1.10;

1.10
date	2003.07.07.10.26.50;	author mlelstv;	state Exp;
branches;
next	1.9;

1.9
date	2003.01.03.10.52.38;	author rse;	state Exp;
branches;
next	1.8;

1.8
date	2002.12.30.22.04.31;	author rse;	state Exp;
branches;
next	1.7;

1.7
date	2002.12.30.21.04.48;	author rse;	state Exp;
branches;
next	1.6;

1.6
date	2002.12.20.19.31.39;	author rse;	state Exp;
branches;
next	1.5;

1.5
date	2002.08.13.12.48.27;	author rse;	state Exp;
branches;
next	1.4;

1.4
date	2002.08.05.14.37.19;	author ms;	state Exp;
branches;
next	1.3;

1.3
date	2002.05.29.20.00.46;	author rse;	state Exp;
branches;
next	1.2;

1.2
date	2002.04.24.07.40.32;	author rse;	state Exp;
branches;
next	1.1;

1.1
date	2002.04.24.07.30.05;	author cs;	state Exp;
branches;
next	;


desc
@@


1.27
log
@bump years in copyright messages
@
text
@##
##  ipaudit.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
##
##  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.
##

#   FIXME: rse: perhaps a run-command script should be added?

#   package version
%define       V_major 1.0
%define       V_minor rc3

#   package information
Name:         ipaudit
Summary:      Network Activity Monitor
URL:          http://ipaudit.sourceforge.net/
Vendor:       Jonathan Rifkin
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        Auditing
License:      GPL
Version:      %{V_major}%{V_minor}
Release:      20080101

#   list of sources
Source0:      http://ipaudit.sourceforge.net/download/ipaudit-%{version}.tar.gz

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20040130
PreReq:       OpenPKG, openpkg >= 20040130
BuildPreReq:  libpcap
PreReq:       libpcap
AutoReq:      no
AutoReqProv:  no

%description
    IPaudit listens to a network device in promiscuous mode, and records
    of every 'connection', each conversation between two ip addresses.
    A unique connection is determined by the ip addresses of the two
    machines, the protocol used between them and the port numbers (if
    they are communicating via UDP or TCP). It uses a hash table to keep
    track of the number of bytes and packets in both directions. When
    IPaudit receives a signal SIGTERM (kill) or SIGINT (kill -2, usually
    the same as a Control-C), it stops collecting data and writes the
    tabulated results.

%track
    prog ipaudit = {
        version   = %{version}
        url       = http://ipaudit.sourceforge.net/download/
        regex     = ipaudit-(\d+\.\d+(?:\.\d+)?(?:rc\d+)?)\.tar\.gz
    }

%prep
    %setup -q -n ipaudit-%{V_major}

%build
    CC="%{l_cc}" \
    CFLAGS="%{l_cflags -O}" \
    CPPFLAGS="%{l_cppflags}" \
    LDFLAGS="%{l_ldflags}" \
    ./configure \
        --prefix=%{l_prefix}
    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/bin \
        $RPM_BUILD_ROOT%{l_prefix}/sbin \
        $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
        $RPM_BUILD_ROOT%{l_prefix}/man/man8
    %{l_shtool} install -c -s -m 755 \
        src/ipaudit src/ipstrings $RPM_BUILD_ROOT%{l_prefix}/sbin/
    %{l_shtool} install -c -s -m 755 \
        src/total $RPM_BUILD_ROOT%{l_prefix}/bin/
    %{l_shtool} install -c -m 644 \
        doc/ipaudit.8 doc/ipstrings.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
    %{l_shtool} install -c -m 644 \
        doc/total.1 doc/ipstrings.8 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

@


1.26
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.25
log
@Welcome Year 2007!
@
text
@d3 1
a3 2
##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
d41 1
a41 1
Release:      20061105
@


1.24
log
@repackage for newer version
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
@


1.23
log
@new world order for "Packager" and "Distribution" headers
@
text
@d25 6
d38 1
a38 1
Class:        JUNK
d41 2
a42 2
Version:      0.95
Release:      20061013
d45 1
a45 2
Source0:      http://ipaudit.sourceforge.net/download/ipaudit-%{version}.tgz
Patch0:       ipaudit.patch
d58 9
a66 13
    IPaudit listens to a network device in promiscuous mode, and records of
    every 'connection', each conversation between two ip addresses. A unique
    connection is determined by the ip addresses of the two machines, the
    protocol used between them and the port numbers (if they are communicating
    via UDP or TCP).

    It uses a hash table to keep track of the number of bytes and packets in
    both directions. When IPaudit receives a signal SIGTERM (kill) or SIGINT
    (kill -2, usually the same as a Control-C), it stops collecting data and
    writes the tabulated results.

    IPaudit is built using the pcap packet capture library to read the network
    port from LBNL Network Research Group.
d72 1
a72 1
        regex     = ipaudit-(__VER__)\.tgz
d76 1
a76 2
    %setup -q
    %patch -p0
d79 6
a84 8
    %{l_shtool} subst \
        -e 's;^\(MAKE=\).*$;\1%{l_make};' \
        -e 's;^\(CIDIR=\).*$;\1%{l_cppflags};' \
        Makefile
    %{l_shtool} subst \
        -e 's;^\(CIDIR=\).*$;\1%{l_cppflags};' \
        -e 's;^\(LIB=\)\(.*\)$;\1%{l_ldflags} \2;' \
        src/Makefile
d89 13
a101 15
    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/bin
    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man1
    (   cd src
        for i in ipaudit ipstrings total; do
            %{l_shtool} install -c -m 755 \
                $i $RPM_BUILD_ROOT%{l_prefix}/bin/
        done
    ) || exit $?
    (   cd man/man1
        for i in ipaudit ipstrings total; do
            %{l_shtool} install -c -m 644 \
                $i.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
        done
    ) || exit $?
    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
@


1.22
log
@adjust Group header
@
text
@d30 2
a31 2
Packager:     OpenPKG
Distribution: OpenPKG
d36 1
a36 1
Release:      20060924
@


1.21
log
@fix style
@
text
@d33 1
a33 1
Group:        Network
d36 1
a36 1
Release:      20060923
@


1.20
log
@adjust copyrights for new year 2006
@
text
@d27 1
a27 1
Summary:      Network activity monitor
d36 1
a36 1
Release:      20040207
@


1.19
log
@Adjust the copyright declaration in this (RSE's) copy of the OpenPKG
source code now that the fork point for C&W was established (CVS tag
OPENPKG_CW_FP), the shared copyright agreement between RSE and C&W is
no longer active (as C&W no longer officially sponsors OpenPKG) and the
new shared copyright from RSE can be taken over by the newly established
juristic entity OpenPKG Foundation e.V. (instead of the non-juristic
entity OpenPKG Project).
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
@


1.18
log
@Happy New Year 2005
@
text
@d2 3
a4 4
##  ipaudit.spec -- OpenPKG RPM Specification
##  Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2005 Ralf S. Engelschall <rse@@engelschall.com>
##  Copyright (c) 2000-2005 Cable & Wireless <http://www.cw.com/>
d30 1
a30 1
Packager:     The OpenPKG Project
@


1.17
log
@Mass Commit:
reduce redundancy within .spec files by referencing
macros defining vendor source versions whenever possible.
This was half-way automated and half-way manually edited.
As a result the PMOD activity in 95% of all cases
just means editing the version in one single place, only.
@
text
@d3 3
a5 3
##  Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2004 Ralf S. Engelschall <rse@@engelschall.com>
##  Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
@


1.16
log
@Mass-Commit:
- split "Distribution" header into "Distribution" (old) and "Class"
  (new) headers by moving the attached class information.
- embed the vendor version tracking configuration through the
  new "%track" section.
- bump up the OpenPKG bootstrap dependency, because the "Class" header
  and "%track" section are only supported by our latest bootstrap version.
@
text
@d37 1
a37 1
Release:      20040203
d70 1
a70 1
        version   = 0.95
@


1.15
log
@bump year in copyright messages to cover new year 2004. This is a CVS only commit -- no packages were rolled intentionally
@
text
@d32 2
a33 1
Distribution: OpenPKG [JUNK]
d37 1
a37 1
Release:      20030723
d46 2
a47 2
BuildPreReq:  OpenPKG, openpkg >= 20030708
PreReq:       OpenPKG, openpkg >= 20030708
d67 7
@


1.14
log
@achieve robust subshell handling by consistently using '(...) || exit 0' constructs to make sure the scripts fail if a subshell fails
@
text
@d3 3
a5 3
##  Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2003 Ralf S. Engelschall <rse@@engelschall.com>
##  Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
@


1.13
log
@pick up correct pcap library
@
text
@d36 1
a36 1
Release:      20030710
d91 1
a91 1
    )
d97 1
a97 1
    )
@


1.12
log
@cleanup copyright part by using just the main company name of Cable & Wireless and adding the URL to the global website
@
text
@d36 1
a36 1
Release:      20030708
d78 1
@


1.11
log
@finish modernization of build flags through %{l_ldflags} and %{l_cppflags}
@
text
@a2 1
##  Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
d5 1
@


1.10
log
@add libraries to PreReq
@
text
@d36 1
a36 1
Release:      20030707
d45 2
a46 2
BuildPreReq:  OpenPKG, openpkg >= 20020206
PreReq:       OpenPKG, openpkg >= 20020206
d74 1
a74 1
        -e 's;^\(CIDIR=\).*$;\1-I%{l_prefix}/include;' \
d77 1
a77 1
        -e 's;^\(CIDIR=\).*$;\1-I%{l_prefix}/include;' \
@


1.9
log
@remove '%options' hack, it will be replaced soon with a more elegant solution based on RPM 'Provides' headers
@
text
@d36 1
a36 1
Release:      20020424
d45 1
a45 1
BuildPreReq:  OpenPKG, openpkg >= 20020206, libpcap
d47 2
@


1.8
log
@bump of Copyright messages for forthcoming years 2003
@
text
@a64 2
    %options

@


1.7
log
@switch to %option(s), but intentionally WITHOUT dep increase and WITHOUT FTP server updates
@
text
@d3 3
a5 3
##  Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
##  Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2002 Ralf S. Engelschall <rse@@engelschall.com>
@


1.6
log
@consistently use 'Options: none' to indicate no options to 'openpkg build'
@
text
@d65 1
a65 1
    Options: none
@


1.5
log
@Woohhooo: apply the new package classification system.
(CORE, BASE, PLUS, PRIV, EVAL, JUNK). A description of
them follows on the website soon.
@
text
@d65 2
@


1.4
log
@Second round of category consistency changes.
@
text
@d32 1
a32 1
Distribution: OpenPKG [BRK]
@


1.3
log
@strip trailing whitespaces
@
text
@d33 1
a33 1
Group:        Net
@


1.2
log
@add patch for FreeBSD (and hopefully also Solaris)
@
text
@d23 2
a24 2
##  SUCH DAMAGE. 
##  
d61 1
a61 1
 
d66 1
a66 1
    %setup -q 
@


1.1
log
@New package: ipaudit

Linux works but Solaris & FreeBSD are broken.
@
text
@d40 1
d67 1
@

