summaryrefslogtreecommitdiff
path: root/package/ipcad/Makefile
blob: de9a4c551e429088371207d226fbdba394d546e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		ipcad
PKG_VERSION:=		3.7.3
PKG_RELEASE:=		2
PKG_HASH:=		72372d46ae35e4d7cc74d96fbaf8bb0ae189aa9ecfd89026487aca790c2f0716
PKG_DESCR:=		ip cisco accounting daemon
PKG_SECTION:=		net/acct
PKG_DEPENDS:=		libpcap
PKG_BUILDDEP:=		libpcap
PKG_URL:=		http://lionet.info/ipcad
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=ipcad/}

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,IPCAD,ipcad,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ARGS+=	--with-ifst=linux \
			--with-psrc=pcap \
			--with-pcap-include="${STAGING_TARGET_DIR}/usr/include" \
			--with-pcap-libraries="${STAGING_TARGET_DIR}/usr/lib"

pre-build:
	touch $(WRKBUILD)/cfglex.c $(WRKBUILD)/cslex.c

ipcad-install:
	${INSTALL_DIR} ${IDIR_IPCAD}/usr/bin ${IDIR_IPCAD}/etc
	${INSTALL_DATA} ${WRKINST}/etc/ipcad.conf ${IDIR_IPCAD}/etc/
	${INSTALL_BIN} ${WRKINST}/usr/bin/ipcad ${IDIR_IPCAD}/usr/bin/

include ${ADK_TOPDIR}/mk/pkg-bottom.mk