summaryrefslogtreecommitdiff
path: root/sysutils/ipa
diff options
context:
space:
mode:
authormarkd <markd>2006-10-18 11:45:22 +0000
committermarkd <markd>2006-10-18 11:45:22 +0000
commit4bbba8530a9e38d57a90350e1110223340bc2115 (patch)
tree7ed974cd8b6982c55281b519cbaf7d8398746d4d /sysutils/ipa
parent0a69f723840441306566f90ea0cef01b22d58fef (diff)
downloadpkgsrc-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.
Diffstat (limited to 'sysutils/ipa')
-rw-r--r--sysutils/ipa/DESCR11
-rw-r--r--sysutils/ipa/Makefile35
-rw-r--r--sysutils/ipa/PLIST12
-rw-r--r--sysutils/ipa/distinfo5
-rw-r--r--sysutils/ipa/files/ipa.sh23
-rw-r--r--sysutils/ipa/options.mk50
6 files changed, 136 insertions, 0 deletions
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