2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=e2911fa9de1b92ef50deda1489ae944d
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://niels.xtdnet.nl
/honeyd
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
20 include $(INCLUDE_DIR
)/package.mk
25 DEPENDS
:=+libpcap
+libdnet
+libevent
+librt
26 TITLE
:=A daemon to fake ARP replies
27 URL
:=http
://niels.xtdnet.nl
/honeyd
/
30 define Build
/Configure
31 (cd
$(PKG_BUILD_DIR
); touch \
35 $(call Build
/Configure
/Default
, \
36 --with-libdnet
="$(STAGING_DIR)/usr" \
37 --with-libevent
="$(STAGING_DIR)/usr" \
38 --with-libpcap
="$(STAGING_DIR)/usr" \
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
44 CCOPT
="$(TARGET_CFLAGS)" \
45 INCLS
="-I. $(TARGET_CPPFLAGS)" \
46 LIBS
="$(TARGET_LDFLAGS) -lpcap -ldnet -levent"
49 define Package
/arpd
/install
50 $(INSTALL_DIR
) $(1)/usr
/sbin
51 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/arpd
$(1)/usr
/sbin
/
54 $(eval
$(call BuildPackage
,arpd
))