1
0

Makefile 1.2 KB

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