summaryrefslogtreecommitdiff
path: root/package/ipcad/Makefile
blob: d238b86ab60865a2e8f2cacaf1c4412b8b4eab38 (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
37
38
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		ipcad
PKG_VERSION:=		3.7.3
PKG_RELEASE:=		1
PKG_BUILDDEP+=		libpcap
PKG_MD5SUM:=		125605249958894148ec26d3c88189f5
PKG_DESCR:=		IP Cisco Accounting Daemon
PKG_SECTION:=		net
PKG_DEPENDS:=		libpcap
PKG_URL:=		http://lionet.info/ipcad
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=ipcad/}

include ${TOPDIR}/mk/package.mk

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

CONFIGURE_STYLE:=	gnu
CONFIGURE_ENV+=		ac_cv_lib_nsl_inet_pton=no
CONFIGURE_ARGS+=	--with-ifst=linux \
			--with-psrc=pcap \
			--with-pcap-include="${STAGING_DIR}/usr/include" \
			--with-pcap-libraries="${STAGING_DIR}/usr/lib"
BUILD_STYLE:=		auto
INSTALL_STYLE:=		auto

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

post-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 ${TOPDIR}/mk/pkg-bottom.mk