Create iptraf directories
[openwrt.git] / openwrt / package / iptraf / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=iptraf
6 PKG_VERSION:=3.0.0
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=377371c28ee3c21a76f7024920649ea8
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 $(IDIR_IPTRAF)/var/run/iptraf \
41 $(IDIR_IPTRAF)/var/lib/iptraf
42 install -m0755 $(PKG_BUILD_DIR)/src/iptraf $(IDIR_IPTRAF)/usr/bin/
43 $(RSTRIP) $(IDIR_IPTRAF)
44 $(IPKG_BUILD) $(IDIR_IPTRAF) $(PACKAGE_DIR)
45
46 mostlyclean:
47 -$(MAKE) -C $(PKG_BUILD_DIR) clean
48 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.050988 seconds and 5 git commands to generate.