touch some autoconf files to prevent autoheader invocation, since configure is modifi...
[packages.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         (cd $(PKG_BUILD_DIR); touch \
34                 stamp-h.in \
35                 config.h.in \
36         );
37         $(call Build/Configure/Default, \
38                 --with-libdnet="$(STAGING_DIR)/usr" \
39                 --with-libevent="$(STAGING_DIR)/usr" \
40                 --with-libpcap="$(STAGING_DIR)/usr" \
41         )
42 endef
43
44 define Build/Compile
45         $(MAKE) -C $(PKG_BUILD_DIR) \
46                 CCOPT="$(TARGET_CFLAGS)" \
47                 INCLS="-I. -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
48                 LIBS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lpcap -ldnet -levent"
49 endef
50
51 define Package/arpd/install
52         $(INSTALL_DIR) $(1)/usr/sbin
53         $(INSTALL_BIN) $(PKG_BUILD_DIR)/arpd $(1)/usr/sbin/
54 endef
55
56 $(eval $(call BuildPackage,arpd))