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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= pmacct
  5. PKG_VERSION:= 0.12.5
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 5252d7df24e9baefcc5a36ed66e9cac5ae505c9d502c8cffb96e6808acbb2fe8
  8. PKG_DESCR:= ip accounting tools
  9. PKG_SECTION:= net/acct
  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 $(ADK_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 ${ADK_TOPDIR}/mk/pkg-bottom.mk