summaryrefslogtreecommitdiff
path: root/package/iptraf-ng
diff options
context:
space:
mode:
authorMartin Thomas <m.thomas@infodas.de>2023-02-22 12:13:13 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2023-02-22 15:24:50 +0100
commitef86b6fe05387e30406e628315ff6bffb6320091 (patch)
tree7a448c854f239534ba2fe3dfe2e9a6350550ecdb /package/iptraf-ng
parentb33a5a985f0413a212da7f5d9d46e8a8db06da4c (diff)
adds iptraf-ng
Signed-off-by: Martin Thomas <m.thomas@infodas.de>
Diffstat (limited to 'package/iptraf-ng')
-rw-r--r--package/iptraf-ng/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/iptraf-ng/Makefile b/package/iptraf-ng/Makefile
new file mode 100644
index 000000000..50199ae5d
--- /dev/null
+++ b/package/iptraf-ng/Makefile
@@ -0,0 +1,32 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${ADK_TOPDIR}/rules.mk
+
+PKG_NAME:= iptraf-ng
+PKG_GIT:= tag
+PKG_HASH:= cf385d3a0d2344f0159be0ab859651de2f750b661d88d1f22f96b82a7cd4ae13
+PKG_VERSION:= v1.2.1
+PKG_RELEASE:= 1
+PKG_DESCR:= a console-based network monitoring program
+PKG_SECTION:= net/perf
+PKG_DEPENDS:= libncurses
+PKG_BUILDDEP:= ncurses
+PKG_URL:= https://github.com/iptraf-ng/iptraf-ng
+PKG_SITES:= https://github.com/iptraf-ng/iptraf-ng.git
+
+include ${ADK_TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,IPTRAF_NG,iptraf-ng,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+TARGET_LDFLAGS+= -ltinfo -lncurses -lpanel
+XAKE_FLAGS+= PLATFORM="-DPLATFORM=\\\"Linux/${ARCH}\\\"" \
+ TARGET="/usr/bin" \
+ WORKDIR="/var/lib/iptraf-ng" V=1
+
+iptraf-ng-install:
+ ${INSTALL_DIR} ${IDIR_IPTRAF_NG}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/sbin/iptraf-ng ${IDIR_IPTRAF_NG}/usr/bin
+
+include ${ADK_TOPDIR}/mk/pkg-bottom.mk