| 1 | # $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
|
|---|
| 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 |
|
|---|
| 13 |
|
|---|
| 14 | include $(TOPDIR)/package/rules.mk
|
|---|
| 15 |
|
|---|
| 16 | $(eval $(call PKG_template,IPTABLES_SNMP,iptables-snmp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 17 |
|
|---|
| 18 | $(WRKBUILD)/.configured: $(WRKBUILD)/.prepared
|
|---|
| 19 | (cd $(WRKBUILD); rm -f config.{cache,status}; \
|
|---|
| 20 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 21 | CFLAGS="$(TARGET_CFLAGS) " \
|
|---|
| 22 | CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
|---|
| 23 | ./configure \
|
|---|
| 24 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 25 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 26 | --build=$(GNU_HOST_NAME) \
|
|---|
| 27 | --program-prefix="" \
|
|---|
| 28 | --program-suffix="" \
|
|---|
| 29 | --prefix=/usr \
|
|---|
| 30 | --exec-prefix=/usr \
|
|---|
| 31 | --bindir=/usr/bin \
|
|---|
| 32 | --datadir=/usr/share \
|
|---|
| 33 | --includedir=/usr/include \
|
|---|
| 34 | --infodir=/usr/share/info \
|
|---|
| 35 | --libdir=/usr/lib \
|
|---|
| 36 | --libexecdir=/usr/lib \
|
|---|
| 37 | --localstatedir=/var \
|
|---|
| 38 | --mandir=/usr/share/man \
|
|---|
| 39 | --sbindir=/usr/sbin \
|
|---|
| 40 | --sysconfdir=/etc \
|
|---|
| 41 | --enable-largefile \
|
|---|
| 42 | --disable-nls \
|
|---|
| 43 | );
|
|---|
| 44 | touch $@
|
|---|
| 45 |
|
|---|
| 46 | $(WRKBUILD)/.built:
|
|---|
| 47 | rm -rf $(WRKINST)
|
|---|
| 48 | mkdir -p $(WRKINST)
|
|---|
| 49 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 50 | INSTALL_PREFIX="$(WRKINST)" \
|
|---|
| 51 | all install
|
|---|
| 52 | touch $@
|
|---|
| 53 |
|
|---|
| 54 | $(IPKG_IPTABLES_SNMP):
|
|---|
| 55 | install -d -m0755 $(IDIR_IPTABLES_SNMP)/usr/lib
|
|---|
| 56 | $(CP) $(WRKINST)/usr/lib/iptables-snmp.so $(IDIR_IPTABLES_SNMP)/usr/lib
|
|---|
| 57 | $(RSTRIP) $(IDIR_IPTABLES_SNMP)
|
|---|
| 58 | $(IPKG_BUILD) $(IDIR_IPTABLES_SNMP) $(PACKAGE_DIR)
|
|---|
| 59 |
|
|---|
| 60 | mostlyclean:
|
|---|
| 61 | -$(MAKE) -C $(WRKBUILD) clean
|
|---|
| 62 | rm $(WRKBUILD)/.built
|
|---|