1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 95a069af8c4d22206985f6ce69acc27cfcfef1d58ad6ab8dbb10c698642ac08a
10 PKG_DESCR
:= console-based network monitoring program.
11 PKG_SECTION
:= net
/perf
12 PKG_DEPENDS
:= libncurses
13 PKG_BUILDDEP
:= ncurses
14 PKG_URL
:= http
://iptraf.seul.org
/
15 PKG_SITES
:= ftp
://iptraf.seul.org
/pub
/iptraf
/
17 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
18 WRKSRC
= ${WRKDIST}/src
20 include ${ADK_TOPDIR}/mk
/package.mk
22 $(eval
$(call PKG_template
,IPTRAF
,iptraf
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
25 INSTALL_STYLE
:= manual
27 TARGET_CPPFLAGS
+= -D_GNU_SOURCE
28 TARGET_LDFLAGS
+= -ltinfo
29 XAKE_FLAGS
+= PLATFORM
="-DPLATFORM=\\\"Linux/${ARCH}\\\"" \
31 WORKDIR
="/var/lib/iptraf"
34 ${INSTALL_DIR} ${IDIR_IPTRAF}/usr
/bin
35 ${INSTALL_BIN} ${WRKBUILD}/iptraf
${IDIR_IPTRAF}/usr
/bin
/
37 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk