Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.11.6
  6. PKG_RELEASE:= 1
  7. PKG_BUILDDEP+= libpcap
  8. ifneq ($(ADK_COMPILE_PMACCT_MYSQL),)
  9. PKG_BUILDDEP+= mysql
  10. endif
  11. ifneq ($(ADK_COMPILE_PMACCT_PGSQL),)
  12. PKG_BUILDDEP+= postgresql
  13. endif
  14. ifneq ($(ADK_COMPILE_PMACCT_SQLITE),)
  15. PKG_BUILDDEP+= sqlite
  16. endif
  17. PKG_MD5SUM:= e0f3bcba9a73b7a70bbf5a303cd22f77
  18. PKG_DESCR:= IP accounting daemons
  19. PKG_SECTION:= net
  20. PKG_DEPENDS:= libpcap
  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_ENV+= --with-pcap-includes="$(STAGING_DIR)/usr/include" \
  29. --with-pcap-libs="$(STAGING_DIR)/usr/lib"
  30. CONFIGURE_STYLE:= gnu
  31. BUILD_STYLE:= auto
  32. INSTALL_STYLE:= auto
  33. post-install:
  34. ${INSTALL_DIR} $(IDIR_SFACCTD)/usr/sbin
  35. ${INSTALL_BIN} $(WRKINST)/usr/sbin/sfacctd $(IDIR_SFACCTD)/usr/sbin/
  36. ${INSTALL_DIR} $(IDIR_NFACCTD)/usr/sbin
  37. ${INSTALL_BIN} $(WRKINST)/usr/sbin/nfacctd $(IDIR_NFACCTD)/usr/sbin/
  38. ${INSTALL_DIR} $(IDIR_PMACCTD)/usr/sbin
  39. ${INSTALL_BIN} $(WRKINST)/usr/sbin/pmacctd $(IDIR_PMACCTD)/usr/sbin/
  40. ${INSTALL_DIR} $(IDIR_PMACCT_CLIENT)/usr/bin
  41. ${INSTALL_BIN} $(WRKINST)/usr/bin/pmacct $(IDIR_PMACCT_CLIENT)/usr/bin/
  42. include ${TOPDIR}/mk/pkg-bottom.mk