b17e9299a3d1b2bf3fe8c093c3cc0cf762432897
[openwrt/svn-archive/archive.git] / net / iptables-snmp / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=iptables-snmp
12 PKG_VERSION:=0.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.nobiscuit.com/iptables-snmp
17 PKG_MD5SUM:=8370d2f0c899461a053da491400119d1
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/iptables-snmp
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+snmpd
29 TITLE:=An snmpd plugin to access iptables rules
30 DESCRIPTION:=\
31 This is a plugin that makes iptables rules accessable from snmpd.
32 URL:=http://www.nobiscuit.com/iptables-snmp/
33 endef
34
35 define Build/Compile
36 $(call Build/Compile/Default, \
37 INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
38 all install \
39 )
40 endef
41
42 define Package/iptables-snmp/install
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables-snmp.so $(1)/usr/lib
45 endef
46
47 $(eval $(call BuildPackage,iptables-snmp))