1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=iptables-snmp
13 PKG_MD5SUM
:=8370d2f0c899461a053da491400119d1
15 PKG_SOURCE_URL
:=http
://www.nobiscuit.com
/iptables-snmp
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
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 DESCRIPTION
:=This is a plugin that makes iptables rules accessable from snmpd.
30 URL
:=http
://www.nobiscuit.com
/iptables-snmp
/
34 $(call Build
/Compile
/Default
, \
35 INSTALL_PREFIX
="$(PKG_INSTALL_DIR)" \
40 define Package
/iptables-snmp
/install
41 install -d
-m0755
$(1)/usr
/lib
42 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/iptables-snmp.so
$(1)/usr
/lib
45 $(eval
$(call BuildPackage
,iptables-snmp
))