Ensure we use the right includes (#1036)
[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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/arpd
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libpcap +libdnet +libevent
28 TITLE:=A daemon to fake ARP replies
29 URL:=http://niels.xtdnet.nl/honeyd/
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default, \
34 --with-libdnet="$(STAGING_DIR)/usr" \
35 --with-libevent="$(STAGING_DIR)/usr" \
36 --with-libpcap="$(STAGING_DIR)/usr" \
37 )
38 endef
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 CCOPT="$(TARGET_CFLAGS)" \
43 INCLS="-I. -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
44 LIBS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lpcap -ldnet -levent"
45 endef
46
47 define Package/arpd/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/arpd $(1)/usr/sbin/
50 endef
51
52 $(eval $(call BuildPackage,arpd))