update busybox menuconfig to 1.1.1, should fix the "missing reboot" bug
[openwrt.git] / openwrt / package / iptables-snmp / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=iptables-snmp
6 PKG_VERSION:=0.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=8370d2f0c899461a053da491400119d1
9
10 PKG_SOURCE_URL:=http://www.nobiscuit.com/iptables-snmp
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,IPTABLES_SNMP,iptables-snmp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
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" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --program-prefix="" \
31 --program-suffix="" \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --datadir=/usr/share \
36 --includedir=/usr/include \
37 --infodir=/usr/share/info \
38 --libdir=/usr/lib \
39 --libexecdir=/usr/lib \
40 --localstatedir=/var \
41 --mandir=/usr/share/man \
42 --sbindir=/usr/sbin \
43 --sysconfdir=/etc \
44 $(DISABLE_LARGEFILE) \
45 $(DISABLE_NLS) \
46 );
47 touch $@
48
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)" \
54 all install
55 touch $@
56
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)
62
63 mostlyclean:
64 -$(MAKE) -C $(PKG_BUILD_DIR) clean
65 rm $(PKG_BUILD_DIR)/.built
This page took 0.04515 seconds and 5 git commands to generate.