| 1 | # $FreeWRT$
|
|---|
| 2 | #-
|
|---|
| 3 | # This file is part of the FreeWRT project. FreeWRT is copyrighted
|
|---|
| 4 | # material, please see the LICENCE file in the top-level directory
|
|---|
| 5 | # or at http://www.freewrt.org/licence for details.
|
|---|
| 6 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 |
|
|---|
| 9 | PKG_NAME:= iptables-snmp
|
|---|
| 10 | PKG_VERSION:= 0.1
|
|---|
| 11 | PKG_RELEASE:= 1
|
|---|
| 12 | PKG_MD5SUM:= 8370d2f0c899461a053da491400119d1
|
|---|
| 13 |
|
|---|
| 14 | PKG_SOURCE_URL:= http://www.nobiscuit.com/iptables-snmp
|
|---|
| 15 | PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|---|
| 16 |
|
|---|
| 17 | include $(TOPDIR)/mk/package.mk
|
|---|
| 18 |
|
|---|
| 19 | $(eval $(call PKG_template,IPTABLES_SNMP,iptables-snmp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 20 |
|
|---|
| 21 | $(WRKBUILD)/.configured: $(WRKBUILD)/.prepared
|
|---|
| 22 | (cd $(WRKBUILD); 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 | --enable-largefile \
|
|---|
| 45 | --disable-nls \
|
|---|
| 46 | );
|
|---|
| 47 | touch $@
|
|---|
| 48 |
|
|---|
| 49 | $(WRKBUILD)/.built:
|
|---|
| 50 | rm -rf $(WRKINST)
|
|---|
| 51 | mkdir -p $(WRKINST)
|
|---|
| 52 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 53 | INSTALL_PREFIX="$(WRKINST)" \
|
|---|
| 54 | all install
|
|---|
| 55 | touch $@
|
|---|
| 56 |
|
|---|
| 57 | $(IPKG_IPTABLES_SNMP):
|
|---|
| 58 | install -d -m0755 $(IDIR_IPTABLES_SNMP)/usr/lib
|
|---|
| 59 | $(CP) $(WRKINST)/usr/lib/iptables-snmp.so $(IDIR_IPTABLES_SNMP)/usr/lib
|
|---|
| 60 | $(RSTRIP) $(IDIR_IPTABLES_SNMP)
|
|---|
| 61 | $(IPKG_BUILD) $(IDIR_IPTABLES_SNMP) $(PACKAGE_DIR)
|
|---|