3 include $(TOPDIR
)/rules.mk
5 PKG_NAME
:=iptables-snmp
8 PKG_MD5SUM
:=8370d2f0c899461a053da491400119d1
10 PKG_SOURCE_URL
:=http
://www.nobiscuit.com
/iptables-snmp
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,IPTABLES_SNMP
,iptables-snmp
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
22 (cd
$(PKG_BUILD_DIR
); rm -f config.
{cache
,status
}; \
23 $(TARGET_CONFIGURE_OPTS
) \
24 CFLAGS
="$(TARGET_CFLAGS) " \
25 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
27 --target
=$(GNU_TARGET_NAME
) \
28 --host
=$(GNU_TARGET_NAME
) \
29 --build
=$(GNU_HOST_NAME
) \
35 --datadir=/usr
/share \
36 --includedir=/usr
/include \
37 --infodir=/usr
/share
/info \
39 --libexecdir
=/usr
/lib \
40 --localstatedir
=/var \
41 --mandir=/usr
/share
/man \
44 $(DISABLE_LARGEFILE
) \
49 $(PKG_BUILD_DIR
)/.built
:
50 rm -rf
$(PKG_INSTALL_DIR
)
51 mkdir
-p
$(PKG_INSTALL_DIR
)
52 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
53 INSTALL_PREFIX
="$(PKG_INSTALL_DIR)" \
57 $(IPKG_IPTABLES_SNMP
):
58 install -d
-m0755
$(IDIR_IPTABLES_SNMP
)/usr
/lib
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/iptables-snmp.so
$(IDIR_IPTABLES_SNMP
)/usr
/lib
60 $(RSTRIP
) $(IDIR_IPTABLES_SNMP
)
61 $(IPKG_BUILD
) $(IDIR_IPTABLES_SNMP
) $(PACKAGE_DIR
)
64 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
65 rm $(PKG_BUILD_DIR
)/.built