1
0

Makefile 1.1 KB

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