build the transitional iptables-extra meta-package too (port of changeset:2558)
[openwrt.git] / package / iptraf / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=iptraf
4 PKG_VERSION:=2.7.0
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=7ff0bc933a0a57a4ca9e2b0443307539
7
8 PKG_SOURCE_URL:=ftp://iptraf.seul.org/pub/iptraf/ \
9 ftp://the.wiretapped.net/pub/security/network-monitoring/iptraf/
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
11 PKG_CAT:=zcat
12
13 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
14 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,IPTRAF,iptraf,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 touch $@
22
23 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
24 $(MAKE) -C $(PKG_BUILD_DIR)/src \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 DEBUG="" \
28 INCLUDEDIR="-I../support -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
29 LDOPTS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
30 PLATFORM="-DPLATFORM=\\\"Linux/$(ARCH)\\\"" \
31 TARGET="/usr/bin" \
32 WORKDIR="/var/lib/iptraf" \
33 all
34 touch $@
35
36 $(IPKG_IPTRAF):
37 install -d -m0755 $(IDIR_IPTRAF)/usr/bin
38 install -m0755 $(PKG_BUILD_DIR)/src/iptraf $(IDIR_IPTRAF)/usr/bin/
39 $(RSTRIP) $(IDIR_IPTRAF)
40 $(IPKG_BUILD) $(IDIR_IPTRAF) $(PACKAGE_DIR)
41
42 mostlyclean:
43 -$(MAKE) -C $(PKG_BUILD_DIR) clean
44 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.058673 seconds and 5 git commands to generate.