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 install -m0755
$(PKG_BUILD_DIR
)/src
/iptraf
$(IDIR_IPTRAF
)/usr
/bin
/
41 $(RSTRIP
) $(IDIR_IPTRAF
)
42 $(IPKG_BUILD
) $(IDIR_IPTRAF
) $(PACKAGE_DIR
)
45 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
46 rm -f
$(PKG_BUILD_DIR
)/.built