summaryrefslogtreecommitdiff
path: root/package/iptables-snmp
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2009-08-31 22:50:45 +0200
committerPhil Sutter <phil@nwl.cc>2009-08-31 22:50:45 +0200
commitc4abebdb9f0b49dbc5ef623f995aab9e69d7ff68 (patch)
tree9f85ca37cefe2148fbade027885197f4077dda82 /package/iptables-snmp
parent98ee37a938e76d66cd683d66e41eb4df45bf886f (diff)
add back in package iptables-snmp
This basically installs a shared object file for loading into snmpd so iptables information (chains and their counters) can be accessed via snmp.
Diffstat (limited to 'package/iptables-snmp')
-rw-r--r--package/iptables-snmp/Config.in11
-rw-r--r--package/iptables-snmp/Makefile28
2 files changed, 39 insertions, 0 deletions
diff --git a/package/iptables-snmp/Config.in b/package/iptables-snmp/Config.in
new file mode 100644
index 000000000..80a49552b
--- /dev/null
+++ b/package/iptables-snmp/Config.in
@@ -0,0 +1,11 @@
+config ADK_PACKAGE_IPTABLES_SNMP
+ prompt "export iptables information via snmp"
+ tristate
+ default ADK_PACKAGE_IPTABLES
+ depends on ADK_PACKAGE_SNMPD
+ help
+ This is a library for the netkit snmp daemon, allowing it to export
+ various iptables information.
+
+ To use this, add the following line to snmpd.conf:
+ dlmod iptables /root/iptables-snmp-0.1/iptables-snmp.so
diff --git a/package/iptables-snmp/Makefile b/package/iptables-snmp/Makefile
new file mode 100644
index 000000000..a05a07d4d
--- /dev/null
+++ b/package/iptables-snmp/Makefile
@@ -0,0 +1,28 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= iptables-snmp
+PKG_VERSION:= 0.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 8370d2f0c899461a053da491400119d1
+PKG_DESCR:= iptables support for net-snmp
+PKG_SECTION:= net
+PKG_URL:= http://www.nobiscuit.com/iptables-snmp/
+PKG_SITES:= http://www.nobiscuit.com/iptables-snmp/
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,IPTABLES_SNMP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIGURE_STYLE= gnu
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+FAKE_FLAGS+= INSTALL_PREFIX="${WRKINST}"
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_IPTABLES_SNMP}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/iptables-snmp.so ${IDIR_IPTABLES_SNMP}/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk