mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Port added with slight modification
PR: 54510 Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw> Approved by: fjoe (mentor) (implicit)
This commit is contained in:
parent
9fd1a0b832
commit
5d51b1f44e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85423
41
net-mgmt/ipaudit/Makefile
Normal file
41
net-mgmt/ipaudit/Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
# New ports collection makefile for: ipaudit
|
||||
# Date created: 15 July 2003
|
||||
# Whom: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ipaudit
|
||||
PORTVERSION= 0.95
|
||||
CATEGORIES= net sysutils
|
||||
MASTER_SITES= http://ipaudit.sourceforge.net/download/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= yinjieh@csie.nctu.edu.tw
|
||||
COMMENT= IP traffic summarizer
|
||||
|
||||
MAN1= ipaudit.1 ipstrings.1 total.1
|
||||
|
||||
BIN= ipaudit ipstrings total
|
||||
|
||||
MSG_FILE= ${PKGDIR}/pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
do-install:
|
||||
.for b in ${BIN}
|
||||
cd ${WRKSRC}/src && ${INSTALL_PROGRAM} $b ${PREFIX}/bin
|
||||
.endfor
|
||||
.for m in ${MAN1}
|
||||
cd ${WRKSRC}/man/man1 && ${INSTALL_MAN} $m ${PREFIX}/man/man1
|
||||
.endfor
|
||||
cd ${WRKSRC}/src && ${INSTALL_DATA} ipaudit.conf.sample ${PREFIX}/etc
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
.endif
|
||||
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
1
net-mgmt/ipaudit/distinfo
Normal file
1
net-mgmt/ipaudit/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (ipaudit-0.95.tgz) = 8581ea00ebb854806b19a3759764f536
|
15
net-mgmt/ipaudit/files/patch-Makefile
Normal file
15
net-mgmt/ipaudit/files/patch-Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
--- Makefile.orig Wed Oct 18 01:38:27 2000
|
||||
+++ Makefile Tue Jul 15 18:20:49 2003
|
||||
@@ -8,10 +8,10 @@
|
||||
BIN=ipaudit ipstrings total pdate
|
||||
|
||||
MAKE=make
|
||||
-CIDIR=-I/usr/include/pcap
|
||||
+#CIDIR=-I/usr/include/pcap
|
||||
|
||||
all:
|
||||
- $(MAKE) -C src all
|
||||
+ cd src && $(MAKE) all
|
||||
|
||||
clean:
|
||||
$(MAKE) -C src clean
|
50
net-mgmt/ipaudit/files/patch-src::Makefile
Normal file
50
net-mgmt/ipaudit/files/patch-src::Makefile
Normal file
@ -0,0 +1,50 @@
|
||||
--- src/Makefile.orig Mon Jan 8 05:56:59 2001
|
||||
+++ src/Makefile Tue Jul 15 18:19:58 2003
|
||||
@@ -1,36 +1,36 @@
|
||||
-CIDIR=-I/usr/include/pcap
|
||||
+#CIDIR=-I/usr/include/pcap
|
||||
|
||||
#LIB=../../libpcap-0.5/libpcap.a
|
||||
LIB=-lpcap
|
||||
|
||||
-all: ipaudit total ipstrings beta-dir
|
||||
+all: ipaudit total ipstrings
|
||||
|
||||
ipaudit: ipaudit.o hash.o
|
||||
- $(CC) -o ipaudit ipaudit.o hash.o $(LIB)
|
||||
+ $(CC) $(CFLAGS) -o ipaudit ipaudit.o hash.o $(LIB)
|
||||
|
||||
total: total.o hash.o
|
||||
- $(CC) -o total total.o hash.o -lm
|
||||
+ $(CC) $(CFLAGS) -o total total.o hash.o -lm
|
||||
|
||||
ipstrings: ipstrings.o
|
||||
- $(CC) -o ipstrings ipstrings.o $(LIB)
|
||||
+ $(CC) $(CFLAGS) -o ipstrings ipstrings.o $(LIB)
|
||||
|
||||
ipaudit.o: ipaudit.c hash.h
|
||||
- $(CC) -c ipaudit.c $(CIDIR) $(DFLAGS)
|
||||
+ $(CC) $(CFLAGS) -c ipaudit.c $(CIDIR) $(DFLAGS)
|
||||
|
||||
hash.o: hash.c hash.h
|
||||
- $(CC) -c hash.c
|
||||
+ $(CC) $(CFLAGS) -c hash.c
|
||||
|
||||
total.o: total.c hash.c hash.h
|
||||
- $(CC) -c total.c
|
||||
+ $(CC) $(CFLAGS) -c total.c
|
||||
|
||||
ipstrings.o: ipstrings.c
|
||||
- $(CC) -c ipstrings.c $(CIDIR) $(DFLAGS)
|
||||
+ $(CC) $(CFLAGS) -c ipstrings.c $(CIDIR) $(DFLAGS)
|
||||
|
||||
iprange: iprange.c
|
||||
$(CC) -g -o iprange iprange.c
|
||||
|
||||
-beta-dir:
|
||||
- $(MAKE) -C beta
|
||||
+#beta-dir:
|
||||
+# $(MAKE) -C beta
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
11
net-mgmt/ipaudit/files/patch-src::hash.h
Normal file
11
net-mgmt/ipaudit/files/patch-src::hash.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/hash.h.orig Tue Jul 15 16:53:16 2003
|
||||
+++ src/hash.h Tue Jul 15 16:53:49 2003
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef _HASH_H
|
||||
#define _HASH_H
|
||||
|
||||
+#include <sys/types.h>
|
||||
+
|
||||
/*
|
||||
------------------------------------------------------------------------
|
||||
Type Definitions
|
21
net-mgmt/ipaudit/pkg-descr
Normal file
21
net-mgmt/ipaudit/pkg-descr
Normal file
@ -0,0 +1,21 @@
|
||||
Would you like to summarize and/or log network activity down to the ip address
|
||||
and port level of detail, but not record every packet?
|
||||
|
||||
Ipaudit provides that ability.
|
||||
|
||||
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.
|
||||
|
||||
WWW: http://ipaudit.sourceforge.net/
|
||||
|
||||
Maintainer: "Ying-Chieh Chen" <yinjieh@csie.nctu.edu.tw>
|
11
net-mgmt/ipaudit/pkg-message
Normal file
11
net-mgmt/ipaudit/pkg-message
Normal file
@ -0,0 +1,11 @@
|
||||
***********************************************************
|
||||
|
||||
Please copy %%PREFIX%%/etc/ipaudit.conf.sample to
|
||||
%%PREFIX%%/ipaudit.conf by yourself and modify it,
|
||||
then start ipaudit with
|
||||
|
||||
'ipaudit -g /usr/local/etc/ipaudit.conf' command.
|
||||
|
||||
Thanks.
|
||||
|
||||
***********************************************************
|
6
net-mgmt/ipaudit/pkg-plist
Normal file
6
net-mgmt/ipaudit/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
bin/ipaudit
|
||||
bin/ipstrings
|
||||
bin/total
|
||||
etc/ipaudit.conf.sample
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
@ -233,6 +233,7 @@
|
||||
SUBDIR += imcom
|
||||
SUBDIR += iog
|
||||
SUBDIR += ip6_int
|
||||
SUBDIR += ipaudit
|
||||
SUBDIR += ipcad
|
||||
SUBDIR += ipcalc
|
||||
SUBDIR += ipcheck
|
||||
|
41
net/ipaudit/Makefile
Normal file
41
net/ipaudit/Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
# New ports collection makefile for: ipaudit
|
||||
# Date created: 15 July 2003
|
||||
# Whom: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ipaudit
|
||||
PORTVERSION= 0.95
|
||||
CATEGORIES= net sysutils
|
||||
MASTER_SITES= http://ipaudit.sourceforge.net/download/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= yinjieh@csie.nctu.edu.tw
|
||||
COMMENT= IP traffic summarizer
|
||||
|
||||
MAN1= ipaudit.1 ipstrings.1 total.1
|
||||
|
||||
BIN= ipaudit ipstrings total
|
||||
|
||||
MSG_FILE= ${PKGDIR}/pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
do-install:
|
||||
.for b in ${BIN}
|
||||
cd ${WRKSRC}/src && ${INSTALL_PROGRAM} $b ${PREFIX}/bin
|
||||
.endfor
|
||||
.for m in ${MAN1}
|
||||
cd ${WRKSRC}/man/man1 && ${INSTALL_MAN} $m ${PREFIX}/man/man1
|
||||
.endfor
|
||||
cd ${WRKSRC}/src && ${INSTALL_DATA} ipaudit.conf.sample ${PREFIX}/etc
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
.endif
|
||||
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
1
net/ipaudit/distinfo
Normal file
1
net/ipaudit/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (ipaudit-0.95.tgz) = 8581ea00ebb854806b19a3759764f536
|
15
net/ipaudit/files/patch-Makefile
Normal file
15
net/ipaudit/files/patch-Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
--- Makefile.orig Wed Oct 18 01:38:27 2000
|
||||
+++ Makefile Tue Jul 15 18:20:49 2003
|
||||
@@ -8,10 +8,10 @@
|
||||
BIN=ipaudit ipstrings total pdate
|
||||
|
||||
MAKE=make
|
||||
-CIDIR=-I/usr/include/pcap
|
||||
+#CIDIR=-I/usr/include/pcap
|
||||
|
||||
all:
|
||||
- $(MAKE) -C src all
|
||||
+ cd src && $(MAKE) all
|
||||
|
||||
clean:
|
||||
$(MAKE) -C src clean
|
50
net/ipaudit/files/patch-src::Makefile
Normal file
50
net/ipaudit/files/patch-src::Makefile
Normal file
@ -0,0 +1,50 @@
|
||||
--- src/Makefile.orig Mon Jan 8 05:56:59 2001
|
||||
+++ src/Makefile Tue Jul 15 18:19:58 2003
|
||||
@@ -1,36 +1,36 @@
|
||||
-CIDIR=-I/usr/include/pcap
|
||||
+#CIDIR=-I/usr/include/pcap
|
||||
|
||||
#LIB=../../libpcap-0.5/libpcap.a
|
||||
LIB=-lpcap
|
||||
|
||||
-all: ipaudit total ipstrings beta-dir
|
||||
+all: ipaudit total ipstrings
|
||||
|
||||
ipaudit: ipaudit.o hash.o
|
||||
- $(CC) -o ipaudit ipaudit.o hash.o $(LIB)
|
||||
+ $(CC) $(CFLAGS) -o ipaudit ipaudit.o hash.o $(LIB)
|
||||
|
||||
total: total.o hash.o
|
||||
- $(CC) -o total total.o hash.o -lm
|
||||
+ $(CC) $(CFLAGS) -o total total.o hash.o -lm
|
||||
|
||||
ipstrings: ipstrings.o
|
||||
- $(CC) -o ipstrings ipstrings.o $(LIB)
|
||||
+ $(CC) $(CFLAGS) -o ipstrings ipstrings.o $(LIB)
|
||||
|
||||
ipaudit.o: ipaudit.c hash.h
|
||||
- $(CC) -c ipaudit.c $(CIDIR) $(DFLAGS)
|
||||
+ $(CC) $(CFLAGS) -c ipaudit.c $(CIDIR) $(DFLAGS)
|
||||
|
||||
hash.o: hash.c hash.h
|
||||
- $(CC) -c hash.c
|
||||
+ $(CC) $(CFLAGS) -c hash.c
|
||||
|
||||
total.o: total.c hash.c hash.h
|
||||
- $(CC) -c total.c
|
||||
+ $(CC) $(CFLAGS) -c total.c
|
||||
|
||||
ipstrings.o: ipstrings.c
|
||||
- $(CC) -c ipstrings.c $(CIDIR) $(DFLAGS)
|
||||
+ $(CC) $(CFLAGS) -c ipstrings.c $(CIDIR) $(DFLAGS)
|
||||
|
||||
iprange: iprange.c
|
||||
$(CC) -g -o iprange iprange.c
|
||||
|
||||
-beta-dir:
|
||||
- $(MAKE) -C beta
|
||||
+#beta-dir:
|
||||
+# $(MAKE) -C beta
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
11
net/ipaudit/files/patch-src::hash.h
Normal file
11
net/ipaudit/files/patch-src::hash.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/hash.h.orig Tue Jul 15 16:53:16 2003
|
||||
+++ src/hash.h Tue Jul 15 16:53:49 2003
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef _HASH_H
|
||||
#define _HASH_H
|
||||
|
||||
+#include <sys/types.h>
|
||||
+
|
||||
/*
|
||||
------------------------------------------------------------------------
|
||||
Type Definitions
|
21
net/ipaudit/pkg-descr
Normal file
21
net/ipaudit/pkg-descr
Normal file
@ -0,0 +1,21 @@
|
||||
Would you like to summarize and/or log network activity down to the ip address
|
||||
and port level of detail, but not record every packet?
|
||||
|
||||
Ipaudit provides that ability.
|
||||
|
||||
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.
|
||||
|
||||
WWW: http://ipaudit.sourceforge.net/
|
||||
|
||||
Maintainer: "Ying-Chieh Chen" <yinjieh@csie.nctu.edu.tw>
|
11
net/ipaudit/pkg-message
Normal file
11
net/ipaudit/pkg-message
Normal file
@ -0,0 +1,11 @@
|
||||
***********************************************************
|
||||
|
||||
Please copy %%PREFIX%%/etc/ipaudit.conf.sample to
|
||||
%%PREFIX%%/ipaudit.conf by yourself and modify it,
|
||||
then start ipaudit with
|
||||
|
||||
'ipaudit -g /usr/local/etc/ipaudit.conf' command.
|
||||
|
||||
Thanks.
|
||||
|
||||
***********************************************************
|
6
net/ipaudit/pkg-plist
Normal file
6
net/ipaudit/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
bin/ipaudit
|
||||
bin/ipstrings
|
||||
bin/total
|
||||
etc/ipaudit.conf.sample
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user