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
15 PKG_MD5SUM
:=e2911fa9de1b92ef50deda1489ae944d
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://niels.xtdnet.nl
/honeyd
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
21 include $(INCLUDE_DIR
)/package.mk
26 DEPENDS
:=+libpcap
+libdnet
+libevent
27 TITLE
:=A daemon to fake ARP replies
28 URL
:=http
://niels.xtdnet.nl
/honeyd
/
31 define Build
/Configure
32 (cd
$(PKG_BUILD_DIR
); touch \
36 $(call Build
/Configure
/Default
, \
37 --with-libdnet
="$(STAGING_DIR)/usr" \
38 --with-libevent
="$(STAGING_DIR)/usr" \
39 --with-libpcap
="$(STAGING_DIR)/usr" \
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
45 CCOPT
="$(TARGET_CFLAGS)" \
46 INCLS
="-I. -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
47 LIBS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lpcap -ldnet -levent"
50 define Package
/arpd
/install
51 $(INSTALL_DIR
) $(1)/usr
/sbin
52 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/arpd
$(1)/usr
/sbin
/
55 $(eval
$(call BuildPackage
,arpd
))