2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=iptables-snmp
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.nobiscuit.com
/iptables-snmp
17 PKG_MD5SUM
:=8370d2f0c899461a053da491400119d1
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/iptables-snmp
28 TITLE
:=An snmpd plugin to access iptables rules
29 URL
:=http
://www.nobiscuit.com
/iptables-snmp
/
33 define Package
/iptables-snmp
/description
34 This is a plugin that makes iptables rules accessable from snmpd.
38 $(call Build
/Compile
/Default
, \
39 INSTALL_PREFIX
="$(PKG_INSTALL_DIR)" \
44 define Package
/iptables-snmp
/install
45 $(INSTALL_DIR
) $(1)/usr
/lib
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/iptables-snmp.so
$(1)/usr
/lib
49 $(eval
$(call BuildPackage
,iptables-snmp
))