2006-07-30 17:40:39 +00:00
|
|
|
#
|
2009-04-29 12:56:17 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-07-30 17:40:39 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=arpd
|
|
|
|
PKG_VERSION:=0.2
|
2009-09-20 12:23:08 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-07-30 17:40:39 +00:00
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_MD5SUM:=e2911fa9de1b92ef50deda1489ae944d
|
2006-07-30 17:40:39 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://niels.xtdnet.nl/honeyd
|
2006-07-30 17:40:39 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/arpd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2010-02-18 13:10:21 +00:00
|
|
|
DEPENDS:=+libpcap +libdnet +libevent +librt @BROKEN
|
2006-07-30 17:40:39 +00:00
|
|
|
TITLE:=A daemon to fake ARP replies
|
2006-10-30 13:51:50 +00:00
|
|
|
URL:=http://niels.xtdnet.nl/honeyd/
|
2006-07-30 17:40:39 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2007-01-23 19:11:57 +00:00
|
|
|
(cd $(PKG_BUILD_DIR); touch \
|
|
|
|
stamp-h.in \
|
|
|
|
config.h.in \
|
|
|
|
);
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--with-libdnet="$(STAGING_DIR)/usr" \
|
|
|
|
--with-libevent="$(STAGING_DIR)/usr" \
|
|
|
|
--with-libpcap="$(STAGING_DIR)/usr" \
|
|
|
|
)
|
2006-07-30 17:40:39 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CCOPT="$(TARGET_CFLAGS)" \
|
2009-04-29 12:56:17 +00:00
|
|
|
INCLS="-I. $(TARGET_CPPFLAGS)" \
|
|
|
|
LIBS="$(TARGET_LDFLAGS) -lpcap -ldnet -levent"
|
2006-07-30 17:40:39 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/arpd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/arpd $(1)/usr/sbin/
|
2006-07-30 17:40:39 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,arpd))
|