Browse Source

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.
Phil Sutter 14 years ago
parent
commit
c4abebdb9f
4 changed files with 42 additions and 0 deletions
  1. 2 0
      package/Config.in
  2. 1 0
      package/Makefile
  3. 11 0
      package/iptables-snmp/Config.in
  4. 28 0
      package/iptables-snmp/Makefile

+ 2 - 0
package/Config.in

@@ -252,6 +252,8 @@ source "package/fakeidentd/Config.in"
 source "package/gkrellmd/Config.in"
 source "package/git/Config.in"
 source "package/net-snmp/Config.in"
+# intentionally inserted here, as it depends on the above
+source "package/iptables-snmp/Config.in"
 source "package/nut/Config.in"
 source "package/openldap/Config.in"
 source "package/p910nd/Config.in"

+ 1 - 0
package/Makefile

@@ -152,6 +152,7 @@ package-$(ADK_COMPILE_IPROUTE2) += iproute2
 package-$(ADK_PACKAGE_IPSEC_TOOLS) += ipsec-tools
 package-$(ADK_PACKAGE_IPSET) += ipset
 package-$(ADK_COMPILE_IPTABLES) += iptables
+package-$(ADK_PACKAGE_IPTABLES_SNMP) += iptables-snmp
 package-$(ADK_PACKAGE_IPTRAF) += iptraf
 package-$(ADK_PACKAGE_IRSSI) += irssi
 package-$(ADK_PACKAGE_IW) += iw

+ 11 - 0
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

+ 28 - 0
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