1
0

Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1c656ea9ca13455c54e8efb9f8299b3d
  8. PKG_DESCR:= IP accounting daemons
  9. PKG_SECTION:= net/misc
  10. PKG_DEPENDS:= libpcap
  11. PKG_BUILDDEP+= libpcap
  12. ifneq ($(ADK_COMPILE_PMACCT_MYSQL),)
  13. PKG_BUILDDEP+= mysql
  14. endif
  15. ifneq ($(ADK_COMPILE_PMACCT_PGSQL),)
  16. PKG_BUILDDEP+= postgresql
  17. endif
  18. ifneq ($(ADK_COMPILE_PMACCT_SQLITE),)
  19. PKG_BUILDDEP+= sqlite
  20. endif
  21. PKG_URL:= http://www.pmacct.net/
  22. PKG_SITES:= http://www.pmacct.net/
  23. include $(TOPDIR)/mk/package.mk
  24. $(eval $(call PKG_template,NFACCTD,nfacctd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_template,PMACCTD,pmacctd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. $(eval $(call PKG_template,SFACCTD,sfacctd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. $(eval $(call PKG_template,PMACCT_CLIENT,pmacct-client,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  28. CONFIGURE_ARGS+= --with-pcap-includes="$(STAGING_DIR)/usr/include" \
  29. --with-pcap-libs="$(STAGING_DIR)/usr/lib"
  30. post-install:
  31. ${INSTALL_DIR} $(IDIR_SFACCTD)/usr/sbin
  32. ${INSTALL_BIN} $(WRKINST)/usr/sbin/sfacctd $(IDIR_SFACCTD)/usr/sbin/
  33. ${INSTALL_DIR} $(IDIR_NFACCTD)/usr/sbin $(IDIR_NFACCTD)/etc
  34. ${INSTALL_BIN} $(WRKINST)/usr/sbin/nfacctd $(IDIR_NFACCTD)/usr/sbin/
  35. ${INSTALL_DATA} ./files/nfacctd.conf $(IDIR_NFACCTD)/etc
  36. ${INSTALL_DIR} $(IDIR_PMACCTD)/usr/sbin $(IDIR_PMACCTD)/etc
  37. ${INSTALL_BIN} $(WRKINST)/usr/sbin/pmacctd $(IDIR_PMACCTD)/usr/sbin/
  38. ${INSTALL_DATA} ./files/pmacctd.conf $(IDIR_PMACCTD)/etc
  39. ${INSTALL_DIR} $(IDIR_PMACCT_CLIENT)/usr/bin
  40. ${INSTALL_BIN} $(WRKINST)/usr/bin/pmacct $(IDIR_PMACCT_CLIENT)/usr/bin/
  41. include ${TOPDIR}/mk/pkg-bottom.mk