OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 05-Nov-2006 10:04:48
Branch: HEAD Handle: 2006110509044701
Modified files:
openpkg-src/ipaudit ipaudit.spec
Removed files:
openpkg-src/ipaudit ipaudit.patch
Log:
repackage for newer version
Summary:
Revision Changes Path
1.2 +0 -23 openpkg-src/ipaudit/ipaudit.patch
1.24 +40 -44 openpkg-src/ipaudit/ipaudit.spec
____________________________________________________________________________
rm -f openpkg-src/ipaudit/ipaudit.patch <<'@@ .'
Index: openpkg-src/ipaudit/ipaudit.patch
============================================================================
[NO CHANGE SUMMARY BECAUSE FILE AS A WHOLE IS JUST REMOVED]
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/ipaudit/ipaudit.spec
============================================================================
$ cvs diff -u -r1.23 -r1.24 ipaudit.spec
--- openpkg-src/ipaudit/ipaudit.spec 13 Oct 2006 17:28:58 -0000 1.23
+++ openpkg-src/ipaudit/ipaudit.spec 5 Nov 2006 09:04:48 -0000 1.24
@@ -22,6 +22,12 @@
## 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
@@ -29,15 +35,14 @@
Vendor: Jonathan Rifkin
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
-Class: JUNK
+Class: EVAL
Group: Auditing
License: GPL
-Version: 0.95
-Release: 20061013
+Version: %{V_major}%{V_minor}
+Release: 20061105
# list of sources
-Source0: http://ipaudit.sourceforge.net/download/ipaudit-%{version}.tgz
-Patch0: ipaudit.patch
+Source0:
http://ipaudit.sourceforge.net/download/ipaudit-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
@@ -50,59 +55,50 @@
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.
-
- IPaudit is built using the pcap packet capture library to read the
network
- port from LBNL Network Research Group.
+ 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-(__VER__)\.tgz
+ regex = ipaudit-(\d+\.\d+(?:\.\d+)?(?:rc\d+)?)\.tar\.gz
}
%prep
- %setup -q
- %patch -p0
+ %setup -q -n ipaudit-%{V_major}
%build
- %{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
+ 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
- %{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
+ %{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
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]