Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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_MD5SUM:= e0f3bcba9a73b7a70bbf5a303cd22f77
  8. PKG_DESCR:= IP accounting daemons
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libpcap
  11. PKG_URL:= http://www.pmacct.net
  12. PKG_SITES:= http://www.pmacct.net/
  13. include $(TOPDIR)/mk/package.mk
  14. $(eval $(call PKG_template,NFACCTD,nfacctd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. $(eval $(call PKG_template,PMACCTD,pmacctd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. $(eval $(call PKG_template,SFACCTD,sfacctd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,PMACCT_CLIENT,pmacct-client,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIGURE_ENV+= --with-pcap-includes="$(STAGING_DIR)/usr/include" \
  19. --with-pcap-libs="$(STAGING_DIR)/usr/lib"
  20. CONFIGURE_STYLE:= gnu
  21. BUILD_STYLE:= auto
  22. INSTALL_STYLE:= auto
  23. post-install:
  24. ${INSTALL_DIR} $(IDIR_SFACCTD)/usr/sbin
  25. ${INSTALL_BIN} $(WRKINST)/usr/sbin/sfacctd $(IDIR_SFACCTD)/usr/sbin/
  26. ${INSTALL_DIR} $(IDIR_NFACCTD)/usr/sbin
  27. ${INSTALL_BIN} $(WRKINST)/usr/sbin/nfacctd $(IDIR_NFACCTD)/usr/sbin/
  28. ${INSTALL_DIR} $(IDIR_PMACCTD)/usr/sbin
  29. ${INSTALL_BIN} $(WRKINST)/usr/sbin/pmacctd $(IDIR_PMACCTD)/usr/sbin/
  30. ${INSTALL_DIR} $(IDIR_PMACCT_CLIENT)/usr/bin
  31. ${INSTALL_BIN} $(WRKINST)/usr/bin/pmacct $(IDIR_PMACCT_CLIENT)/usr/bin/
  32. include ${TOPDIR}/mk/pkg-bottom.mk