summaryrefslogtreecommitdiff
path: root/package/arpd/Makefile
blob: 9e556d80a83ce0a407811cf2fe38b39298897c62 (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
# 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:=		arpd
PKG_VERSION:=		0.2
PKG_RELEASE:=		3
PKG_HASH:=		21d55de1506b3dbbfddb1b57e782a5fbf7140d299fbb08f4a8e48daaaa8489e7
PKG_DESCR:=		generates arp responses for ip address ranges
PKG_SECTION:=		net/route
PKG_DEPENDS:=		libpcap libdnet libevent
PKG_BUILDDEP:=		libpcap libdnet libevent
PKG_URL:=		http://niels.xtdnet.nl/honeyd/
PKG_SITES:=		http://niels.xtdnet.nl/honeyd/

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

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,ARPD,arpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ARGS+=	--with-libdnet=${STAGING_TARGET_DIR}/usr \
			--with-libevent=${STAGING_TARGET_DIR}/usr \
			--with-libpcap=${STAGING_TARGET_DIR}/usr
MAKE_FLAGS+=		CFLAGS="${TARGET_CFLAGS}" \
			INCLS="-I. ${TARGET_CPPFLAGS}" \
			LIBS="-lpcap -ldnet -levent"

arpd-install:
	${INSTALL_DIR} ${IDIR_ARPD}/usr/sbin
	${INSTALL_BIN} ${WRKBUILD}/arpd ${IDIR_ARPD}/usr/sbin/

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