1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= 5252d7df24e9baefcc5a36ed66e9cac5ae505c9d502c8cffb96e6808acbb2fe8
10 PKG_DESCR
:= ip accounting tools
11 PKG_SECTION
:= net
/acct
13 PKG_BUILDDEP
:= libpcap
14 PKG_URL
:= http
://www.pmacct.net
/
15 PKG_SITES
:= http
://www.pmacct.net
/
17 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
19 PKG_SUBPKGS
:= NFACCTD PMACCTD SFACCTD PMACCT_CLIENT
21 include $(ADK_TOPDIR
)/mk
/package.mk
23 $(eval
$(call PKG_template
,NFACCTD
,nfacctd
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
24 $(eval
$(call PKG_template
,PMACCTD
,pmacctd
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
25 $(eval
$(call PKG_template
,SFACCTD
,sfacctd
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
26 $(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_TARGET_DIR)/usr/include" \
29 --with-pcap-libs
="$(STAGING_TARGET_DIR)/usr/lib"
32 ${INSTALL_DIR} $(IDIR_SFACCTD
)/usr
/sbin
33 ${INSTALL_BIN} $(WRKINST
)/usr
/sbin
/sfacctd
$(IDIR_SFACCTD
)/usr
/sbin
/
36 ${INSTALL_DIR} $(IDIR_NFACCTD
)/usr
/sbin
$(IDIR_NFACCTD
)/etc
37 ${INSTALL_BIN} $(WRKINST
)/usr
/sbin
/nfacctd
$(IDIR_NFACCTD
)/usr
/sbin
/
38 ${INSTALL_DATA} .
/files
/nfacctd.conf
$(IDIR_NFACCTD
)/etc
41 ${INSTALL_DIR} $(IDIR_PMACCTD
)/usr
/sbin
$(IDIR_PMACCTD
)/etc
42 ${INSTALL_BIN} $(WRKINST
)/usr
/sbin
/pmacctd
$(IDIR_PMACCTD
)/usr
/sbin
/
43 ${INSTALL_DATA} .
/files
/pmacctd.conf
$(IDIR_PMACCTD
)/etc
45 pmacct-client-install
:
46 ${INSTALL_DIR} $(IDIR_PMACCT_CLIENT
)/usr
/bin
47 ${INSTALL_BIN} $(WRKINST
)/usr
/bin
/pmacct
$(IDIR_PMACCT_CLIENT
)/usr
/bin
/
49 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk