diff options
author | markd <markd> | 2006-10-18 11:45:22 +0000 |
---|---|---|
committer | markd <markd> | 2006-10-18 11:45:22 +0000 |
commit | 4bbba8530a9e38d57a90350e1110223340bc2115 (patch) | |
tree | 7ed974cd8b6982c55281b519cbaf7d8398746d4d | |
parent | 0a69f723840441306566f90ea0cef01b22d58fef (diff) | |
download | pkgsrc-4bbba8530a9e38d57a90350e1110223340bc2115.tar.gz |
Maintainer update of ipa to 2.0.1 and move to sysutils.
In PR pkg/32398 with some tweaks from me.
IPA is now a flexible general purpose accounting system;
- Supports static and dynamic rules;
- Support limits, sublimits and thresholds;
- Works with external accounting modules;
- Works with external database modules;
- Works with external statistics modules;
-Accounting per specified period of a week.
-rw-r--r-- | net/Makefile | 3 | ||||
-rw-r--r-- | net/ipa/DESCR | 9 | ||||
-rw-r--r-- | net/ipa/Makefile | 55 | ||||
-rw-r--r-- | net/ipa/PLIST | 13 | ||||
-rw-r--r-- | net/ipa/distinfo | 12 | ||||
-rw-r--r-- | net/ipa/files/ipa.generic | 78 | ||||
-rw-r--r-- | net/ipa/files/ipa.sh | 43 | ||||
-rw-r--r-- | net/ipa/patches/patch-aa | 86 | ||||
-rw-r--r-- | net/ipa/patches/patch-ab | 14 | ||||
-rw-r--r-- | net/ipa/patches/patch-ac | 13 | ||||
-rw-r--r-- | net/ipa/patches/patch-ad | 38 | ||||
-rw-r--r-- | net/ipa/patches/patch-ae | 68 | ||||
-rw-r--r-- | net/ipa/patches/patch-af | 13 | ||||
-rw-r--r-- | net/ipa/patches/patch-ag | 16 | ||||
-rw-r--r-- | sysutils/Makefile | 3 | ||||
-rw-r--r-- | sysutils/ipa/DESCR | 11 | ||||
-rw-r--r-- | sysutils/ipa/Makefile | 35 | ||||
-rw-r--r-- | sysutils/ipa/PLIST | 12 | ||||
-rw-r--r-- | sysutils/ipa/distinfo | 5 | ||||
-rw-r--r-- | sysutils/ipa/files/ipa.sh | 23 | ||||
-rw-r--r-- | sysutils/ipa/options.mk | 50 |
21 files changed, 139 insertions, 461 deletions
diff --git a/net/Makefile b/net/Makefile index 083bf12f9f8..513d7bb65ca 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.641 2006/10/15 14:05:46 bouyer Exp $ +# $NetBSD: Makefile,v 1.642 2006/10/18 11:45:22 markd Exp $ # COMMENT= Networking tools @@ -143,7 +143,6 @@ SUBDIR+= httping SUBDIR+= httptunnel SUBDIR+= icsi-finger SUBDIR+= iftop -SUBDIR+= ipa SUBDIR+= ipcalc SUBDIR+= ipcheck SUBDIR+= iperf diff --git a/net/ipa/DESCR b/net/ipa/DESCR deleted file mode 100644 index 304571523c8..00000000000 --- a/net/ipa/DESCR +++ /dev/null @@ -1,9 +0,0 @@ -ipa(8) allows to make IP accounting (network accounting) based on FreeBSD -IPv4/v6 Firewall (including IPFW2), OpenBSD Packet Filter and IP Filter -accounting rules on FreeBSD, NetBSD and OpenBSD. - -It supports limits for accounting rules and limits events as "limit is -reached", "reached limit is expired", etc. It understands time intervals -like "end of day", "end of week", "end of month", etc. - -ipastat(8) is a viewer for IP accounting database made by ipa(8). diff --git a/net/ipa/Makefile b/net/ipa/Makefile deleted file mode 100644 index 4aec4aae242..00000000000 --- a/net/ipa/Makefile +++ /dev/null @@ -1,55 +0,0 @@ -# $NetBSD: Makefile,v 1.25 2006/06/04 22:21:27 joerg Exp $ -# - -DISTNAME= ipa-1.3.6 -PKGREVISION= 1 -CATEGORIES= net sysutils -MASTER_SITES= http://ipa-system.sourceforge.net/ \ - http://www.mirrors.wiretapped.net/security/network-monitoring/ipa/ \ - ftp://ftp.mirrors.wiretapped.net/pub/security/network-monitoring/ipa/ \ - http://ipa.it-ss.be/ - -MAINTAINER= simon@comsys.ntu-kpi.kiev.ua -HOMEPAGE= http://ipa-system.sourceforge.net/ -COMMENT= IP accounting software - -ONLY_FOR_PLATFORM= FreeBSD-*-* NetBSD-1*-* OpenBSD-*-* DragonFly-*-* - -RESTRICTED= Needs to be built uniquely for each host -NO_BIN_ON_FTP= ${RESTRICTED} -NO_BIN_ON_CDROM= ${RESTRICTED} -NO_PACKAGE= ${RESTRICTED} - -BUILD_TARGET= # empty - -CFLAGS+= -DCFGFILE="\"${PKG_SYSCONFDIR}/ipa.conf\"" - -CONF_FILES_PERMS= ${PREFIX}/share/examples/ipa/ipa.conf.default \ - ${PKG_SYSCONFDIR}/ipa.conf \ - ${ROOT_USER} ${ROOT_GROUP} 0400 -OWN_DIRS_PERMS= /var/ipa ${ROOT_USER} ${ROOT_GROUP} 0555 - -.include "../../mk/bsd.prefs.mk" - -RCD_SCRIPTS= ipa - -.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" -RCD_SCRIPT_SRC.ipa= ${FILESDIR}/ipa.sh -.else -RCD_SCRIPT_SRC.ipa= ${FILESDIR}/ipa.generic -.endif - -.if ${OPSYS} == "DragonFly" -MAKE_ENV+= WITH_PF=1 WITHOUT_IP6FW=1 WITHOUT_IPFW=1 -.endif - -SUBST_CLASSES+= paths -SUBST_FILES.paths= man/ipa.5 man/ipa.8 man/ipa.conf.5 man/ipastat.8 -SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' -SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g' -SUBST_STAGE.paths= post-patch - -pre-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ipa - -.include "../../mk/bsd.pkg.mk" diff --git a/net/ipa/PLIST b/net/ipa/PLIST deleted file mode 100644 index 32b7c7f969d..00000000000 --- a/net/ipa/PLIST +++ /dev/null @@ -1,13 +0,0 @@ -@comment $NetBSD: PLIST,v 1.5 2005/05/02 20:34:02 reed Exp $ -bin/ipa -bin/ipastat -man/man5/ipa.5 -man/man5/ipa.conf.5 -man/man8/ipa.8 -man/man8/ipastat.8 -share/examples/ipa/README -share/examples/ipa/example-1 -share/examples/ipa/example-2 -share/examples/ipa/ipa.conf.default -share/examples/rc.d/ipa -@dirrm share/examples/ipa diff --git a/net/ipa/distinfo b/net/ipa/distinfo deleted file mode 100644 index d97e215503b..00000000000 --- a/net/ipa/distinfo +++ /dev/null @@ -1,12 +0,0 @@ -$NetBSD: distinfo,v 1.17 2006/06/04 22:21:27 joerg Exp $ - -SHA1 (ipa-1.3.6.tar.gz) = dcf5ebbf14600da0afba6a735f16a8b8ac84185e -RMD160 (ipa-1.3.6.tar.gz) = d122d2f8c1b8bbdabb89f1fd1ccf9aa7f2867133 -Size (ipa-1.3.6.tar.gz) = 137156 bytes -SHA1 (patch-aa) = db61ec179fdeb8ce5ef9ca4f7d287acb24a7faf4 -SHA1 (patch-ab) = edce3d9d03ee7456c440ce4179e1e8c39bb516f2 -SHA1 (patch-ac) = 0baab6507d335479379e78582c727fad72259b61 -SHA1 (patch-ad) = fe03afb555f2a6817dfddd7ab4edb7e41f49c03a -SHA1 (patch-ae) = 8ed23f771ba11ae357b141ac62c2d4db9c3957e9 -SHA1 (patch-af) = d604d1bab7d51feb7e5ebd75b816c691db229957 -SHA1 (patch-ag) = 886e3e3fe00f4b4b6cd6ad4ae5d9ac356fe3704c diff --git a/net/ipa/files/ipa.generic b/net/ipa/files/ipa.generic deleted file mode 100644 index 7ac8b1af072..00000000000 --- a/net/ipa/files/ipa.generic +++ /dev/null @@ -1,78 +0,0 @@ -#!@RCD_SCRIPTS_SHELL@ -# -# $NetBSD: ipa.generic,v 1.1 2003/05/30 11:53:17 salo Exp $ -# - -name="ipa" -required_files="@PKG_SYSCONFDIR@/${name}.conf" -required_dirs="/var/ipa" -pidfile="/var/run/${name}.pid" -command="@PREFIX@/bin/ipa" - -ipa_start() -{ - if [ ! -r $required_files ]; then - echo "$0: WARNING: $required_files is not readable." - exit 1 - fi - if [ ! -d $required_dirs ]; then - echo "$0: WARNING: $required_dirs is not a directory." - exit 1 - fi - - echo "Starting ${name}." - eval $command - return_code=$? - if [ $return_code != "0" ]; then - exit 1 - fi -} - -ipa_stop() -{ - echo "Stopping ${name}." - - ${command} -k shutdown -} - -ipa_reconfigure() -{ - echo "Reloading ${name} configuration." - - ${command} -k reconfigure -} - -ipa_dump() -{ - echo "Dumping ${name} stats." - - ${command} -k dump -} - -case $1 in - -'start') - ipa_start - ;; - -'stop') - ipa_stop - ;; - -'restart') - ipa_stop - ipa_start - ;; - -'reconfigure') - ipa_reconfigure - ;; - -'dump') - ipa_dump - ;; - -*) - echo "Usage: $0 (start|stop|restart|reconfigure|dump)" - ;; -esac diff --git a/net/ipa/files/ipa.sh b/net/ipa/files/ipa.sh deleted file mode 100644 index d4a85076694..00000000000 --- a/net/ipa/files/ipa.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!@RCD_SCRIPTS_SHELL@ -# -# $NetBSD: ipa.sh,v 1.1 2003/05/30 11:53:17 salo Exp $ -# - -# PROVIDE: ipa -# REQUIRE: ipfilter - -. /etc/rc.subr - -name="ipa" -rcvar=$name -command="@PREFIX@/bin/${name}" -required_files="@PKG_SYSCONFDIR@/$name.conf" -required_dir="/var/${name}" -stop_cmd="ipa_stop" -reconfigure_cmd="ipa_reconfigure" -dump_cmd="ipa_dump" -extra_commands="reconfigure dump" - -ipa_stop() -{ - echo "Stopping ${name}." - - ${command} -k shutdown -} - -ipa_reconfigure() -{ - echo "Reloading ${name} configuration." - - ${command} -k reconfigure -} - -ipa_dump() -{ - echo "Dumping ${name} stats." - - ${command} -k dump -} - -load_rc_config $name -run_rc_command "$1" diff --git a/net/ipa/patches/patch-aa b/net/ipa/patches/patch-aa deleted file mode 100644 index f4d1efe9486..00000000000 --- a/net/ipa/patches/patch-aa +++ /dev/null @@ -1,86 +0,0 @@ -$NetBSD: patch-aa,v 1.10 2006/06/04 22:21:27 joerg Exp $ - ---- Makefile.orig 2003-11-11 10:24:34.000000000 +0000 -+++ Makefile -@@ -38,7 +38,7 @@ CC?= /usr/bin/cc - # -Ox - optimize; - # -g - produce debugging information. - # --CFLAGS= -Wall -O1 -g -+#CFLAGS= -Wall -O1 -g - - # - # PREFIX - prefix for all below listed paths -@@ -58,7 +58,7 @@ DST_MAN_DIR= ${PREFIX}/man - # - # DST_ETC_DIR - where to install template configuration - # --DST_ETC_DIR= ${PREFIX}/etc -+DST_ETC_DIR= ${DST_EXAMPLE_DIR} - - # - # DST_RC_DIR - where to install sample rc-script -@@ -81,10 +81,10 @@ MKDIR?= /bin/mkdir - # - # INSTALL_* variables - # --INSTALL_MAN= ${INSTALL} -c -g wheel -o root -m 0444 --INSTALL_DATA= ${INSTALL} -c -g wheel -o root -m 0444 --INSTALL_PROGRAM= ${INSTALL} -c -g wheel -o root -m 0555 --INSTALL_SCRIPT= ${INSTALL} -c -g wheel -o root -m 0500 -+INSTALL_MAN= ${BSD_INSTALL_MAN} -+INSTALL_DATA= ${BSD_INSTALL_DATA} -+INSTALL_PROGRAM= ${BSD_INSTALL_PROGRAM} -+INSTALL_SCRIPT= ${BSD_INSTALL_SCRIPT} - INSTALL_MAN_DIR= ${INSTALL} -d -m 0555 -g wheel -o root - INSTALL_DATA_DIR= ${INSTALL} -d -m 0555 -g wheel -o root - -@@ -98,7 +98,7 @@ IPASTAT= ipastat.o common.o - .MAIN: checkos ${OS} - - checkos: --.if ${OS} != "FreeBSD" && ${OS} != "NetBSD" && ${OS} != "OpenBSD" -+.if ${OS} != "FreeBSD" && ${OS} != "NetBSD" && ${OS} != "OpenBSD" && ${OS} != "DragonFly" - @${ECHO} - @${ECHO} ">> IPA-`${CAT} Version` is designed for FreeBSD, NetBSD and OpenBSD." - @${ECHO} ">> Your operating system is ${OS}." -@@ -139,7 +139,7 @@ CFLAGS+= -I${PF_INCLUDE_DIR} - .endif - .endif - --.ifmake FreeBSD -+.if make(FreeBSD) || make(DragonFly) - IPA+= kipfw.o kip6fw.o - .endif - -@@ -147,7 +147,7 @@ IPA+= kipfw.o kip6fw.o - IPA+= kpf.o - .endif - --FreeBSD NetBSD OpenBSD: ipa ipastat -+DragonFly FreeBSD NetBSD OpenBSD: ipa ipastat - - ipa: ${IPA} - ${CC} -o ${.TARGET} ${IPA} -@@ -214,21 +214,8 @@ install: - ${INSTALL_PROGRAM} ipa ipastat ${DST_BIN_DIR} - ${INSTALL_MAN} man/ipa.5 man/ipa.conf.5 ${DST_MAN_DIR}/man5 - ${INSTALL_MAN} man/ipa.8 man/ipastat.8 ${DST_MAN_DIR}/man8 --.if !exists(${DST_MAN_DIR}/ru_RU.KOI8-R/man5) -- ${INSTALL_MAN_DIR} ${DST_MAN_DIR}/ru_RU.KOI8-R/man5 --.endif --.if !exists(${DST_MAN_DIR}/ru_RU.KOI8-R/man8) -- ${INSTALL_MAN_DIR} ${DST_MAN_DIR}/ru_RU.KOI8-R/man8 --.endif --.if !exists(${DST_MAN_DIR}/ru_SU.KOI8-R) -- ${LN} -s ${DST_MAN_DIR}/ru_RU.KOI8-R ${DST_MAN_DIR}/ru_SU.KOI8-R --.endif -- ${INSTALL_MAN} man/ru_RU.KOI8-R/ipa.5 man/ru_RU.KOI8-R/ipa.conf.5 ${DST_MAN_DIR}/ru_RU.KOI8-R/man5 -- ${INSTALL_MAN} man/ru_RU.KOI8-R/ipa.8 man/ru_RU.KOI8-R/ipastat.8 ${DST_MAN_DIR}/ru_RU.KOI8-R/man8 -- ${INSTALL_DATA_DIR} ${DST_EXAMPLE_DIR} - ${INSTALL_DATA} examples/* ${DST_EXAMPLE_DIR} - .if exists(${DST_RC_DIR}) -- ${INSTALL_SCRIPT} etc/ipa.sh.sample ${DST_RC_DIR} - .else - @${ECHO} - @${ECHO} ">> Can't find directory ${DST_RC_DIR}, the ipa.sh.sample file was not installed (not a problem)." diff --git a/net/ipa/patches/patch-ab b/net/ipa/patches/patch-ab deleted file mode 100644 index 0023983f20f..00000000000 --- a/net/ipa/patches/patch-ab +++ /dev/null @@ -1,14 +0,0 @@ -$NetBSD: patch-ab,v 1.3 2002/06/30 03:47:55 jlam Exp $ - ---- path.h.orig Tue Oct 16 18:44:37 2001 -+++ path.h -@@ -29,7 +29,9 @@ - #ifndef IPA_PATH_H - #define IPA_PATH_H - -+#ifndef CFGFILE - #define CFGFILE "/usr/local/etc/ipa.conf" -+#endif - #define DBDIR "/var/ipa" - #define PIDFILE "/var/run/ipa.pid" - diff --git a/net/ipa/patches/patch-ac b/net/ipa/patches/patch-ac deleted file mode 100644 index 222eeb8c25b..00000000000 --- a/net/ipa/patches/patch-ac +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ac,v 1.3 2003/05/30 11:53:17 salo Exp $ - ---- man/ipa.5.orig 2003-04-17 22:47:42.000000000 +0200 -+++ man/ipa.5 2003-05-30 12:49:59.000000000 +0200 -@@ -152,7 +152,7 @@ - .SH FILES - /var/ipa/ - .br --/usr/local/etc/ipa.conf -+@PKG_SYSCONFDIR@/ipa.conf - .SH SEE ALSO - ipa(8), ipa.conf(5), ipastat(8) - .SH AUTHOR diff --git a/net/ipa/patches/patch-ad b/net/ipa/patches/patch-ad deleted file mode 100644 index 5ab76e7fc90..00000000000 --- a/net/ipa/patches/patch-ad +++ /dev/null @@ -1,38 +0,0 @@ -$NetBSD: patch-ad,v 1.1 2003/05/30 11:53:18 salo Exp $ - ---- man/ipa.8.orig 2003-02-20 07:26:57.000000000 +0100 -+++ man/ipa.8 2003-05-30 12:49:10.000000000 +0200 -@@ -47,7 +47,7 @@ - on FreeBSD, NetBSD and OpenBSD, stores all accounting information in the database, - supports database locking, allows to set up limits for each accounting rule, - understands time intervals like "end of day", "end of week", etc. \fBipa\fP(8) --reads its configuration from the file \fB/usr/local/etc/ipa.conf\fP or from -+reads its configuration from the file \fB@PKG_SYSCONFDIR@/ipa.conf\fP or from - other one given in the command line. Read manual page \fBipa.conf\fP(5) for - detail description of \fBipa\fP(8) features. - .PP -@@ -81,7 +81,7 @@ - IPFW/IPF/PF accounting rules. - .IP \fB-f\fP\ <config-file> - Use given <config-file> instead of using default configuration file --\fB/usr/local/etc/ipa.conf\fP. \fINOTE\fP: a configuration file should be given -+\fB@PKG_SYSCONFDIR@/ipa.conf\fP. \fINOTE\fP: a configuration file should be given - with absolute pathname (i.e. starts with the `/' character). - .IP \fB-h\fP - Print help message about available options and exit. -@@ -214,13 +214,10 @@ - .br - /var/ipa/ - .br --/usr/local/etc/ipa.conf -+@PKG_SYSCONFDIR@/ipa.conf - .br --${PREFIX}/etc/ipa.conf.default -+@PREFIX@/share/examples/ipa/ - .br --${PREFIX}/share/examples/ipa/ --.PP --(by default ${PREFIX} is /usr/local) - .SH SEE ALSO - ipa(5), ipa.conf(5), ipastat(8), ipf(1), ipfw(8), ip6fw(8), pf(4), pf.conf(5), - pfctl(8), syslogd(8) diff --git a/net/ipa/patches/patch-ae b/net/ipa/patches/patch-ae deleted file mode 100644 index 37948807fd5..00000000000 --- a/net/ipa/patches/patch-ae +++ /dev/null @@ -1,68 +0,0 @@ -$NetBSD: patch-ae,v 1.1 2003/05/30 11:53:18 salo Exp $ - ---- man/ipa.conf.5.orig 2003-05-27 20:57:17.000000000 +0200 -+++ man/ipa.conf.5 2003-05-30 12:53:00.000000000 +0200 -@@ -29,7 +29,7 @@ - ipa.conf \- ipa(8) configuration file - .SH DESCRIPTION - The \fBipa.conf\fP file is a configuration file for \fBipa\fP(8). --The \fB/usr/local/etc/ipa.conf\fP file or any other one specified in -+The \fB@PKG_SYSCONFDIR@/ipa.conf\fP file or any other one specified in - the \fBipa\fP(8) command line (the \fB-f\fP option for \fBipa\fP(8)) is read - when \fBipa\fP(8) starts working or receives signal HUP. - The complete description of the file format and possible parameters -@@ -996,28 +996,28 @@ - .PP - include { - .br -- file = /usr/local/etc/ipa/myaccout -+ file = @PKG_SYSCONFDIR@/ipa/myaccout - .br -- file(?) = /usr/local/etc/ipa/mytestaccount -+ file(?) = @PKG_SYSCONFDIR@/ipa//mytestaccount - .br -- files(/usr/local/etc/ipa/192.168.0) = . -+ files(@PKG_SYSCONFDIR@/ipa/192.168.0) = . - .br -- files(/usr/local/etc/ipa/10.1) = ^(2|11)\\.* -+ files(@PKG_SYSCONFDIR@/ipa/10.1) = ^(2|11)\\.* - .br -- files(?)(/usr/local/etc/ipa/testconfig) = \\.conf$ -+ files(?)(@PKG_SYSCONFDIR@/ipa/testconfig) = \\.conf$ - .br - } - .PP - The first \fBfile\fP parameter tells \fBipa\fP(8) to include one file named --/usr/local/etc/ipa/myaccout. The second \fBfile\fP parameter also tells to --include one file, but if the /usr/local/etc/ipa/mytestaccount file is not -+@PKG_SYSCONFDIR@/ipa/myaccout. The second \fBfile\fP parameter also tells to -+include one file, but if the @PKG_SYSCONFDIR@/ipa/mytestaccount file is not - present in the file system, then \fBipa\fP(8) will ignore it. - .PP - The first \fBfiles\fP parameter "includes" all files from the --/usr/local/etc/ipa/192.168.0 directory. The second \fBfiles\fP parameter -+@PKG_SYSCONFDIR@/ipa/192.168.0 directory. The second \fBfiles\fP parameter - "includes" all files matched given POSIX regular expression from the --/usr/local/etc/ipa/10.1 directory. And the last \fBfiles\fP parameter "includes" --all files with ".conf" suffix from the /usr/local/etc/ipa/testconfig directory, -+@PKG_SYSCONFDIR@/ipa/10.1 directory. And the last \fBfiles\fP parameter "includes" -+all files with ".conf" suffix from the @PKG_SYSCONFDIR@/ipa/testconfig directory, - but if this directory is not present in the file system, then \fBipa\fP(8) - will ignore it and continue to work. - .PP -@@ -1286,13 +1286,10 @@ - .br - # ... other "rule" sections. - .SH FILES --/usr/local/etc/ipa.conf -+@PKG_SYSCONFDIR@/ipa.conf - .br --${PREFIX}/etc/ipa.conf.default --.br --${PREFIX}/share/examples/ipa/ -+@PREFIX@/share/examples/ipa/ - .PP --(by default ${PREFIX} is /usr/local) - .SH SEE ALSO - ipa(8), ipa(5), ipastat(8), ipf(1), ipf(5), ipfstat(8), ipfw(8), ip6fw(8), - pf.conf(5), pfctl(8) diff --git a/net/ipa/patches/patch-af b/net/ipa/patches/patch-af deleted file mode 100644 index 0f3a5dd1432..00000000000 --- a/net/ipa/patches/patch-af +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-af,v 1.1 2003/05/30 11:53:18 salo Exp $ - ---- man/ipastat.8.orig 2003-02-19 23:04:34.000000000 +0100 -+++ man/ipastat.8 2003-05-30 12:53:56.000000000 +0200 -@@ -307,7 +307,7 @@ - .SH FILES - /var/ipa/ - .br --/usr/local/etc/ipa.conf -+@PKG_SYSCONFDIR@/ipa.conf - .SH SEE ALSO - ipa.conf(5), ipa(8) - .SH AUTHOR diff --git a/net/ipa/patches/patch-ag b/net/ipa/patches/patch-ag deleted file mode 100644 index 3e418c7091d..00000000000 --- a/net/ipa/patches/patch-ag +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-ag,v 1.1 2006/06/04 22:21:27 joerg Exp $ - ---- kpf.c.orig 2006-06-04 22:08:28.000000000 +0000 -+++ kpf.c -@@ -46,7 +46,11 @@ static const char rcsid[] = - #include <sys/socket.h> - #include <net/if.h> - #include <netinet/in.h> -+#if defined(__DragonFly__) -+#include <net/pf/pfvar.h> -+#else - #include <net/pfvar.h> -+#endif - - #include "debug.h" - diff --git a/sysutils/Makefile b/sysutils/Makefile index b12dd6b0a04..c7572034ea6 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.374 2006/10/02 20:09:00 rillig Exp $ +# $NetBSD: Makefile,v 1.375 2006/10/18 11:45:22 markd Exp $ # COMMENT= System utilities @@ -117,6 +117,7 @@ SUBDIR+= hfsutils SUBDIR+= i2ocfg SUBDIR+= idesk SUBDIR+= install-sh +SUBDIR+= ipa SUBDIR+= ipmitool SUBDIR+= ipw-firmware SUBDIR+= ir-account diff --git a/sysutils/ipa/DESCR b/sysutils/ipa/DESCR new file mode 100644 index 00000000000..cabaf6742e2 --- /dev/null +++ b/sysutils/ipa/DESCR @@ -0,0 +1,11 @@ +IPA -- Pluggable Accounting System + +Main features: + +- Flexible general purpose accounting system; +- Supports static and dynamic rules; +- Support limits, sublimits and thresholds; +- Works with external accounting modules; +- Works with external database modules; +- Works with external statistics modules; +- Accounting per specified period of a week. diff --git a/sysutils/ipa/Makefile b/sysutils/ipa/Makefile new file mode 100644 index 00000000000..8492d12d6ae --- /dev/null +++ b/sysutils/ipa/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2006/10/18 11:45:22 markd Exp $ +# + +DISTNAME= ipa-2.0.1 +CATEGORIES= sysutils +MASTER_SITES= http://ipa-system.sourceforge.net/ \ + http://www.mirrors.wiretapped.net/security/network-monitoring/ipa/ \ + ftp://ftp.mirrors.wiretapped.net/pub/security/network-monitoring/ipa/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= simon@comsys.ntu-kpi.kiev.ua +HOMEPAGE= http://ipa-system.sourceforge.net/ +COMMENT= Pluggable accounting system + +GNU_CONFIGURE= yes + +.include "../../mk/bsd.prefs.mk" + +RCD_SCRIPTS= ipa + +.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" +RCD_SCRIPT_SRC.ipa= ${FILESDIR}/ipa.sh +.else +RCD_SCRIPT_SRC.ipa= ${WRKSRC}/etc/ipa.sh.sample +.endif + +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} + +.include "options.mk" + +do-install: + cd ${WRKSRC}/src && ${MAKE} install + cd ${WRKSRC}/man && ${MAKE} install-am + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/ipa/PLIST b/sysutils/ipa/PLIST new file mode 100644 index 00000000000..858d35a537e --- /dev/null +++ b/sysutils/ipa/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1 2006/10/18 11:45:22 markd Exp $ +bin/ipa +bin/ipactl +bin/ipastat +include/ipa_mod.h +man/man3/ipa_mod.3 +man/man5/ipa.conf.5 +man/man5/ipastat.conf.5 +man/man8/ipa.8 +man/man8/ipactl.8 +man/man8/ipastat.8 +share/examples/rc.d/ipa diff --git a/sysutils/ipa/distinfo b/sysutils/ipa/distinfo new file mode 100644 index 00000000000..247decacabd --- /dev/null +++ b/sysutils/ipa/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2006/10/18 11:45:22 markd Exp $ + +SHA1 (ipa-2.0.1.tar.bz2) = 94c05df1600e309caf033895b61f797218dcd564 +RMD160 (ipa-2.0.1.tar.bz2) = b8e972e65d6b55c50f2b0566cf63f5edf181446f +Size (ipa-2.0.1.tar.bz2) = 282407 bytes diff --git a/sysutils/ipa/files/ipa.sh b/sysutils/ipa/files/ipa.sh new file mode 100644 index 00000000000..dd4a46fd375 --- /dev/null +++ b/sysutils/ipa/files/ipa.sh @@ -0,0 +1,23 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: ipa.sh,v 1.1 2006/10/18 11:45:23 markd Exp $ +# + +# If some IPA module requires some services, then they should +# be specified after REQUIRE, by default REQUIRE contains +# only syslogd, since ipa uses syslog for logging by default +# and does not require anything more for running. + +# PROVIDE: ipa +# REQUIRE: syslogd +# BEFORE: LOGIN + +. /etc/rc.subr + +name="ipa" +rcvar=$name +command="@PREFIX@/bin/${name}" +extra_commands="reload" + +load_rc_config $name +run_rc_command "$1" diff --git a/sysutils/ipa/options.mk b/sysutils/ipa/options.mk new file mode 100644 index 00000000000..4f3c7eb9c4e --- /dev/null +++ b/sysutils/ipa/options.mk @@ -0,0 +1,50 @@ +# $NetBSD: options.mk,v 1.1 2006/10/18 11:45:22 markd Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.ipa +PKG_SUPPORTED_OPTIONS= ipa-memfunc-debug ipa-without-autorules \ + ipa-without-limits ipa-without-rules \ + ipa-without-sublimits ipa-without-thresholds + +.include "../../mk/bsd.options.mk" + +### +### Enable ipa_memfunc debugging +### +.if !empty(PKG_OPTIONS:Mipa-memfunc-debug) +CONFIGURE_ARGS+= --enable-memfunc-debug +.endif + +### +### Disable dynamic rules support +### +.if !empty(PKG_OPTIONS:Mipa-without-autorules) +CONFIGURE_ARGS+= --disable-autorules +.endif + +### +### Disable limits support +### +.if !empty(PKG_OPTIONS:Mipa-without-limits) +CONFIGURE_ARGS+= --disable-limits +.endif + +### +### Disable static rules support +### +.if !empty(PKG_OPTIONS:Mipa-without-rules) +CONFIGURE_ARGS+= --disable-rules +.endif + +### +### Disable sublimits support +### +.if !empty(PKG_OPTIONS:Mipa-without-sublimits) +CONFIGURE_ARGS+= --disable-sublimits +.endif + +### +### Disable thresholds support +### +.if !empty(PKG_OPTIONS:Mipa-without-thresholds) +CONFIGURE_ARGS+= --disable-thresholds +.endif |