2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=e2911fa9de1b92ef50deda1489ae944d
16 PKG_SOURCE_URL
:=http
://niels.xtdnet.nl
/honeyd
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
28 DEPENDS
:=+libpcap
+libdnet
+libevent
29 TITLE
:=A daemon to fake ARP replies
30 DESCRIPTION
:=A daemon to fake ARP replies
31 URL
:=http
://niels.xtdnet.nl
/honeyd
34 define Build
/Configure
35 $(call Build
/Configure
/Default
,--enable-shared
--disable-static \
36 --with-libdnet
=$(STAGING_DIR
)/usr \
37 --with-libevent
=$(STAGING_DIR
)/usr \
38 --with-libpcap
=$(STAGING_DIR
)/usr \
43 rm -rf
$(PKG_INSTALL_DIR
)
44 mkdir
-p
$(PKG_INSTALL_DIR
)
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 CCOPT
="$(TARGET_CFLAGS)" \
47 INCLS
="-I. -I$(STAGING_DIR)/usr/include" \
48 LIBS
="-L$(STAGING_DIR)/usr/lib -lpcap -ldnet -levent"
51 define Package
/arpd
/install
52 install -d
-m0755
$(1)/usr
/sbin
53 $(CP
) $(PKG_BUILD_DIR
)/$(PKG_NAME
) $(1)/usr
/sbin
/
56 $(eval
$(call BuildPackage
,arpd
))