3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=377371c28ee3c21a76f7024920649ea8
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
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,IPTRAF
,iptraf
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
25 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
26 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src \
27 $(TARGET_CONFIGURE_OPTS
) \
28 CFLAGS
="$(TARGET_CFLAGS)" \
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)\\\"" \
34 WORKDIR
="/var/lib/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
)
47 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
48 rm -f
$(PKG_BUILD_DIR
)/.built