diff --git a/net-mgmt/pmacct/Makefile b/net-mgmt/pmacct/Makefile new file mode 100644 index 000000000000..a5b2e19aea4c --- /dev/null +++ b/net-mgmt/pmacct/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: pmacct +# Date created: Thu May 8 16:03:11 CEST 2003 +# Whom: Kirill Ponomarew +# +# $FreeBSD$ +# + +PORTNAME= pmacct +PORTVERSION= 0.4.1 +CATEGORIES= net +MASTER_SITES= http://www.ba.cnr.it/~paolo/pmacct/ + +MAINTAINER= ponomarew@oberon.net +COMMENT= Network tool to gather IP traffic information + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +GNU_CONFIGURE= yes + +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ + +.if defined(WITH_MYSQL) +LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client +CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \ + --with-mysql-includes=${LOCALBASE}/include/mysql \ + --enable-mysql +.else +CONFIGURE_ARGS+= --disable-mysql +.endif + +.include diff --git a/net-mgmt/pmacct/distinfo b/net-mgmt/pmacct/distinfo new file mode 100644 index 000000000000..14dd38bd545c --- /dev/null +++ b/net-mgmt/pmacct/distinfo @@ -0,0 +1 @@ +MD5 (pmacct-0.4.1.tar.gz) = 67c786bde193b027be6083348e43f901 diff --git a/net-mgmt/pmacct/pkg-descr b/net-mgmt/pmacct/pkg-descr new file mode 100644 index 000000000000..38ca49b26874 --- /dev/null +++ b/net-mgmt/pmacct/pkg-descr @@ -0,0 +1,10 @@ +pmacct is a network tool to gather IP traffic information (bytes counter and +number of packets). Aggregation of statistics is done either by looking at +destination, source, both source and destination, or unidirectional IP flows. +Data is stored in an in-memory table or using an SQL database (currently only +MySQL). The content of these tables can be later retrieved by a client program +via a local stream-oriented connection (for simple output or export to MRTG) or +via an SQL client. Gathering packets off the wire is done with the pcap library +and promiscuous mode of one or more network interfaces. + +WWW: http://www.ba.cnr.it/~paolo/pmacct/ diff --git a/net-mgmt/pmacct/pkg-plist b/net-mgmt/pmacct/pkg-plist new file mode 100644 index 000000000000..e7872b7a40ab --- /dev/null +++ b/net-mgmt/pmacct/pkg-plist @@ -0,0 +1,2 @@ +bin/pmacct +bin/pmacctd diff --git a/net/Makefile b/net/Makefile index bf7d3d6f5f28..fc5ae0ee17e3 100644 --- a/net/Makefile +++ b/net/Makefile @@ -500,6 +500,7 @@ SUBDIR += pim6sd SUBDIR += pipsecd SUBDIR += plb + SUBDIR += pmacct SUBDIR += pmf SUBDIR += poink SUBDIR += poptop diff --git a/net/pmacct/Makefile b/net/pmacct/Makefile new file mode 100644 index 000000000000..a5b2e19aea4c --- /dev/null +++ b/net/pmacct/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: pmacct +# Date created: Thu May 8 16:03:11 CEST 2003 +# Whom: Kirill Ponomarew +# +# $FreeBSD$ +# + +PORTNAME= pmacct +PORTVERSION= 0.4.1 +CATEGORIES= net +MASTER_SITES= http://www.ba.cnr.it/~paolo/pmacct/ + +MAINTAINER= ponomarew@oberon.net +COMMENT= Network tool to gather IP traffic information + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +GNU_CONFIGURE= yes + +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ + +.if defined(WITH_MYSQL) +LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client +CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \ + --with-mysql-includes=${LOCALBASE}/include/mysql \ + --enable-mysql +.else +CONFIGURE_ARGS+= --disable-mysql +.endif + +.include diff --git a/net/pmacct/distinfo b/net/pmacct/distinfo new file mode 100644 index 000000000000..14dd38bd545c --- /dev/null +++ b/net/pmacct/distinfo @@ -0,0 +1 @@ +MD5 (pmacct-0.4.1.tar.gz) = 67c786bde193b027be6083348e43f901 diff --git a/net/pmacct/pkg-descr b/net/pmacct/pkg-descr new file mode 100644 index 000000000000..38ca49b26874 --- /dev/null +++ b/net/pmacct/pkg-descr @@ -0,0 +1,10 @@ +pmacct is a network tool to gather IP traffic information (bytes counter and +number of packets). Aggregation of statistics is done either by looking at +destination, source, both source and destination, or unidirectional IP flows. +Data is stored in an in-memory table or using an SQL database (currently only +MySQL). The content of these tables can be later retrieved by a client program +via a local stream-oriented connection (for simple output or export to MRTG) or +via an SQL client. Gathering packets off the wire is done with the pcap library +and promiscuous mode of one or more network interfaces. + +WWW: http://www.ba.cnr.it/~paolo/pmacct/ diff --git a/net/pmacct/pkg-plist b/net/pmacct/pkg-plist new file mode 100644 index 000000000000..e7872b7a40ab --- /dev/null +++ b/net/pmacct/pkg-plist @@ -0,0 +1,2 @@ +bin/pmacct +bin/pmacctd