From 757360bc76a582a63f2b06cb63d71088536026d8 Mon Sep 17 00:00:00 2001 From: edwin Date: Wed, 28 Dec 2005 21:46:23 +0000 Subject: New port: net/ipa_ipfw IPA accounting module for FreeBSD IP Firewall XIPA_IPFW -- IPA accounting module for FreeBSD IP Firewall Main features: - The module is designed for traffic accounting from FreeBSD IP Firewall (including IPFW2) rules byte counters; - The module understands IP Firewall rules byte counters overflow; - It is possible to summarize and subtract statistics from IP Firewall rules byte counters; - It is possible to distinguish IP Firewall rules with the same numbers; - IP Firewall rules can be dynamically added to and removed from the system, the module correctly works in such situations. WWW: http://ipa-system.sourceforge.net/modules/ipa_ipfw/ PR: ports/91004 Submitted by: Andrey Simonenko --- net/ipa_ipfw/Makefile | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ net/ipa_ipfw/distinfo | 3 +++ net/ipa_ipfw/pkg-descr | 18 +++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 net/ipa_ipfw/Makefile create mode 100644 net/ipa_ipfw/distinfo create mode 100644 net/ipa_ipfw/pkg-descr (limited to 'net/ipa_ipfw') diff --git a/net/ipa_ipfw/Makefile b/net/ipa_ipfw/Makefile new file mode 100644 index 000000000000..2a03770196a9 --- /dev/null +++ b/net/ipa_ipfw/Makefile @@ -0,0 +1,60 @@ +# New ports collection makefile for: ipa_ipfw +# Date created: 27 December 2005 +# Whom: Andrey Simonenko +# +# $FreeBSD$ +# + +PORTNAME= ipa_ipfw +PORTVERSION= 1.0 +CATEGORIES= net +MASTER_SITES= http://ipa-system.sourceforge.net/modules/ipa_ipfw/ + +MAINTAINER= simon@comsys.ntu-kpi.kiev.ua +COMMENT= IPA accounting module for FreeBSD IP Firewall + +NO_PACKAGE= "Needs to be built uniquely for each host" + +USE_BZIP2= yes + +OPTIONS= PTHREAD "Build pthread safe module" off \ + DEBUG_INFO "Produce debugging info" off \ + IPFW2 "Enable IPFW2 support (on FreeBSD < 5.x)" off \ + MAN_KOI8_R "Install Russian manual pages" off + +.include + +.ifdef WITH_PTHREAD +MAKE_ENV+= WITH_PTHREAD=yes +CFLAGS+= ${PTHREAD_CFLAGS} +.endif + +.if ${OSVERSION} >= 460100 && ${OSVERSION} < 500038 +. if (defined(IPFW2) && !defined(WITH_IPFW2)) || defined(WITH_IPFW2) +MAKE_ENV+= IPFW2=yes +. endif +.endif + +.ifdef WITHOUT_DEBUG_INFO +MAKE_ENV+= DEBUG_FLAGS="" +.endif + +BUILD_DEPENDS= ${PREFIX}/include/ipa_mod.h:${PORTSDIR}/sysutils/ipa + +PLIST_FILES= lib/ipa_ipfw.so + +MANCOMPRESSED= yes +MAN8= ipa_ipfw.8 +MANLANG= "" +.ifdef WITH_MAN_KOI8_R +MANLANG+= ru.KOI8-R +.endif + +do-install: + cd ${WRKSRC} && make install + echo ${MANLANG} +.ifdef WITH_MAN_KOI8_R + cd ${WRKSRC}/man && make LANG_DIR_SRC=ru.KOI8-R clean all install +.endif + +.include diff --git a/net/ipa_ipfw/distinfo b/net/ipa_ipfw/distinfo new file mode 100644 index 000000000000..e94a7e7fc011 --- /dev/null +++ b/net/ipa_ipfw/distinfo @@ -0,0 +1,3 @@ +MD5 (ipa_ipfw-1.0.tar.bz2) = 35dc5a261215d361131b2351f68ad2a0 +SHA256 (ipa_ipfw-1.0.tar.bz2) = 1d4e3ff9d4ff2c51d1c651172edb164b9276ae4f1c51939ced55f99acc1cda06 +SIZE (ipa_ipfw-1.0.tar.bz2) = 16290 diff --git a/net/ipa_ipfw/pkg-descr b/net/ipa_ipfw/pkg-descr new file mode 100644 index 000000000000..d00bc5fc7a64 --- /dev/null +++ b/net/ipa_ipfw/pkg-descr @@ -0,0 +1,18 @@ +IPA_IPFW -- IPA accounting module for FreeBSD IP Firewall + +Main features: + +- The module is designed for traffic accounting from FreeBSD IP + Firewall (including IPFW2) rules byte counters; +- The module understands IP Firewall rules byte counters overflow; +- It is possible to summarize and subtract statistics from IP Firewall + rules byte counters; +- It is possible to distinguish IP Firewall rules with the same + numbers; +- IP Firewall rules can be dynamically added to and removed from + the system, the module correctly works in such situations. + +WWW: http://ipa-system.sourceforge.net/modules/ipa_ipfw/ + +- Andrey Simonenko +simon@comsys.ntu-kpi.kiev.ua -- cgit