Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 7e4196c0f87f1382a8eed4eb1bdecdc1
  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. PKG_SUBPKGS:= NFACCTD PMACCTD SFACCTD PMACCT_CLIENT
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,NFACCTD,nfacctd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,PMACCTD,pmacctd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,SFACCTD,sfacctd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,PMACCT_CLIENT,pmacct-client,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIGURE_ARGS+= --with-pcap-includes="$(STAGING_TARGET_DIR)/usr/include" \
  21. --with-pcap-libs="$(STAGING_TARGET_DIR)/usr/lib"
  22. post-install:
  23. ${INSTALL_DIR} $(IDIR_SFACCTD)/usr/sbin
  24. ${INSTALL_BIN} $(WRKINST)/usr/sbin/sfacctd $(IDIR_SFACCTD)/usr/sbin/
  25. ${INSTALL_DIR} $(IDIR_NFACCTD)/usr/sbin $(IDIR_NFACCTD)/etc
  26. ${INSTALL_BIN} $(WRKINST)/usr/sbin/nfacctd $(IDIR_NFACCTD)/usr/sbin/
  27. ${INSTALL_DATA} ./files/nfacctd.conf $(IDIR_NFACCTD)/etc
  28. ${INSTALL_DIR} $(IDIR_PMACCTD)/usr/sbin $(IDIR_PMACCTD)/etc
  29. ${INSTALL_BIN} $(WRKINST)/usr/sbin/pmacctd $(IDIR_PMACCTD)/usr/sbin/
  30. ${INSTALL_DATA} ./files/pmacctd.conf $(IDIR_PMACCTD)/etc
  31. ${INSTALL_DIR} $(IDIR_PMACCT_CLIENT)/usr/bin
  32. ${INSTALL_BIN} $(WRKINST)/usr/bin/pmacct $(IDIR_PMACCT_CLIENT)/usr/bin/
  33. include ${TOPDIR}/mk/pkg-bottom.mk