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