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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= iptraf
  5. PKG_VERSION:= 3.0.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 377371c28ee3c21a76f7024920649ea8
  8. PKG_DESCR:= A console-based network monitoring program.
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libncurses
  11. PKG_URL:= http://iptraf.seul.org
  12. PKG_SITES:= ftp://iptraf.seul.org/pub/iptraf/ \
  13. ftp://the.wiretapped.net/pub/security/network-monitoring/iptraf/
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,IPTRAF,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. do-build:
  17. ${MAKE} -C ${WRKBUILD}/src \
  18. ${TARGET_CONFIGURE_OPTS} \
  19. CFLAGS="${TARGET_CFLAGS}" \
  20. DEBUG="" \
  21. INCLUDEDIR="-I../support -I${STAGING_DIR}/usr/include" \
  22. LDOPTS="-L${STAGING_DIR}/usr/lib -L${STAGING_DIR}/lib" \
  23. PLATFORM="-DPLATFORM=\\\"Linux/${ARCH}\\\"" \
  24. TARGET="/usr/bin" \
  25. WORKDIR="/var/lib/iptraf" \
  26. all
  27. do-install:
  28. ${INSTALL_DIR} ${IDIR_IPTRAF}/usr/bin
  29. ${INSTALL_BIN} ${WRKBUILD}/src/iptraf ${IDIR_IPTRAF}/usr/bin/
  30. include ${TOPDIR}/mk/pkg-bottom.mk