1
0

Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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:= pmacct
  5. PKG_VERSION:= 0.12.5
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 3d10f9301a17f034a0f221490a99a5d0
  8. PKG_DESCR:= IP accounting daemons
  9. PKG_SECTION:= net/misc
  10. PKG_DEPENDS:= libpcap
  11. PKG_BUILDDEP:= libpcap
  12. PKG_URL:= http://www.pmacct.net/
  13. PKG_SITES:= http://www.pmacct.net/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_SUBPKGS:= NFACCTD PMACCTD SFACCTD PMACCT_CLIENT
  16. include $(TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,NFACCTD,nfacctd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,PMACCTD,pmacctd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,SFACCTD,sfacctd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,PMACCT_CLIENT,pmacct-client,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. CONFIGURE_ARGS+= --with-pcap-includes="$(STAGING_TARGET_DIR)/usr/include" \
  22. --with-pcap-libs="$(STAGING_TARGET_DIR)/usr/lib"
  23. sfacctd-install:
  24. ${INSTALL_DIR} $(IDIR_SFACCTD)/usr/sbin
  25. ${INSTALL_BIN} $(WRKINST)/usr/sbin/sfacctd $(IDIR_SFACCTD)/usr/sbin/
  26. nfacctd-install:
  27. ${INSTALL_DIR} $(IDIR_NFACCTD)/usr/sbin $(IDIR_NFACCTD)/etc
  28. ${INSTALL_BIN} $(WRKINST)/usr/sbin/nfacctd $(IDIR_NFACCTD)/usr/sbin/
  29. ${INSTALL_DATA} ./files/nfacctd.conf $(IDIR_NFACCTD)/etc
  30. pmacctd-install:
  31. ${INSTALL_DIR} $(IDIR_PMACCTD)/usr/sbin $(IDIR_PMACCTD)/etc
  32. ${INSTALL_BIN} $(WRKINST)/usr/sbin/pmacctd $(IDIR_PMACCTD)/usr/sbin/
  33. ${INSTALL_DATA} ./files/pmacctd.conf $(IDIR_PMACCTD)/etc
  34. pmacct-client-install:
  35. ${INSTALL_DIR} $(IDIR_PMACCT_CLIENT)/usr/bin
  36. ${INSTALL_BIN} $(WRKINST)/usr/bin/pmacct $(IDIR_PMACCT_CLIENT)/usr/bin/
  37. include ${TOPDIR}/mk/pkg-bottom.mk