[packages] libxkbui: Add libXt and libxkbfile deps
[openwrt/svn-archive/archive.git] / net / arpd / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=arpd
12 PKG_VERSION:=0.2
13 PKG_RELEASE:=1
14
15 PKG_MD5SUM:=e2911fa9de1b92ef50deda1489ae944d
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://niels.xtdnet.nl/honeyd
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/arpd
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libpcap +libdnet +libevent
27 TITLE:=A daemon to fake ARP replies
28 URL:=http://niels.xtdnet.nl/honeyd/
29 endef
30
31 define Build/Configure
32 (cd $(PKG_BUILD_DIR); touch \
33 stamp-h.in \
34 config.h.in \
35 );
36 $(call Build/Configure/Default, \
37 --with-libdnet="$(STAGING_DIR)/usr" \
38 --with-libevent="$(STAGING_DIR)/usr" \
39 --with-libpcap="$(STAGING_DIR)/usr" \
40 )
41 endef
42
43 define Build/Compile
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"
48 endef
49
50 define Package/arpd/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/arpd $(1)/usr/sbin/
53 endef
54
55 $(eval $(call BuildPackage,arpd))