2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-08-03 08:55:48 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=iptables-snmp
|
|
|
|
PKG_VERSION:=0.1
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.nobiscuit.com/iptables-snmp
|
|
|
|
PKG_MD5SUM:=8370d2f0c899461a053da491400119d1
|
2006-08-03 08:55:48 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/iptables-snmp
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2009-08-01 23:18:22 +00:00
|
|
|
DEPENDS:=+snmpd +libiptc
|
2006-08-03 08:55:48 +00:00
|
|
|
TITLE:=An snmpd plugin to access iptables rules
|
|
|
|
URL:=http://www.nobiscuit.com/iptables-snmp/
|
2011-03-12 01:13:55 +00:00
|
|
|
SUBMENU:=Firewall
|
2006-08-03 08:55:48 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/iptables-snmp/description
|
|
|
|
This is a plugin that makes iptables rules accessable from snmpd.
|
|
|
|
endef
|
|
|
|
|
2014-03-27 07:03:32 +00:00
|
|
|
define Build/Compile
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Compile/Default, \
|
2006-08-03 08:55:48 +00:00
|
|
|
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
|
2009-08-01 23:18:22 +00:00
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
2006-08-18 21:21:06 +00:00
|
|
|
all install \
|
2006-10-30 13:51:50 +00:00
|
|
|
)
|
2006-08-03 08:55:48 +00:00
|
|
|
endef
|
2014-03-27 07:03:32 +00:00
|
|
|
|
|
|
|
define Package/iptables-snmp/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-08-03 08:55:48 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables-snmp.so $(1)/usr/lib
|
2014-03-27 07:03:32 +00:00
|
|
|
endef
|
2006-08-03 08:55:48 +00:00
|
|
|
|
|
|
|
$(eval $(call BuildPackage,iptables-snmp))
|