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
:= 4df50a3c6c7bdace3345bbf3bd4f6fa7a6722ec1fb45dfd266ad956b327da98a
10 PKG_DESCR
:= ip accounting tools
11 PKG_SECTION
:= net
/acct
12 PKG_DEPENDS
:= libpcap libcdada
13 PKG_BUILDDEP
:= libpcap libcdada
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" \
30 --without-external-deps
33 ${INSTALL_DIR} $(IDIR_SFACCTD
)/usr
/sbin
34 ${INSTALL_BIN} $(WRKINST
)/usr
/sbin
/sfacctd
$(IDIR_SFACCTD
)/usr
/sbin
/
37 ${INSTALL_DIR} $(IDIR_NFACCTD
)/usr
/sbin
$(IDIR_NFACCTD
)/etc
38 ${INSTALL_BIN} $(WRKINST
)/usr
/sbin
/nfacctd
$(IDIR_NFACCTD
)/usr
/sbin
/
39 ${INSTALL_DATA} .
/files
/nfacctd.conf
$(IDIR_NFACCTD
)/etc
42 ${INSTALL_DIR} $(IDIR_PMACCTD
)/usr
/sbin
$(IDIR_PMACCTD
)/etc
43 ${INSTALL_BIN} $(WRKINST
)/usr
/sbin
/pmacctd
$(IDIR_PMACCTD
)/usr
/sbin
/
44 ${INSTALL_DATA} .
/files
/pmacctd.conf
$(IDIR_PMACCTD
)/etc
46 pmacct-client-install
:
47 ${INSTALL_DIR} $(IDIR_PMACCT_CLIENT
)/usr
/bin
48 ${INSTALL_BIN} $(WRKINST
)/usr
/bin
/pmacct
$(IDIR_PMACCT_CLIENT
)/usr
/bin
/
50 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk