[packages_10.03.2] rarpd: merge r28921, r29215
[openwrt/svn-archive/archive.git] / net / rarpd / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=rarpd
11 PKG_VERSION:=1.1
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.dementia.org/pub/net-tools
16 PKG_MD5SUM:=04e2ca849e758d0b88c8281775ec3b58
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/rarpd
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=IP Addresses and Names
26 DEPENDS:=+libnet0
27 TITLE:=Reverse ARP Daemon
28 URL:=ftp://ftp.dementia.org/pub/net-tools/
29 endef
30
31 define Package/rarpd/description
32 Rarpd is a daemon which responds to RARP requests.
33 RARP is used by some machines at boot time to discover their
34 IP address. They provide their Ethernet address and rarpd
35 responds with their IP address if it finds it in the ethers
36 database.
37 endef
38
39 CONFIGURE_ARGS+= \
40 --with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.0.x" \
41 --with-pcap="$(STAGING_DIR)/usr" \
42
43 CONFIGURE_VARS+= \
44 CFLAGS="$$$$CFLAGS -DNEW_LIBNET_INTERFACE" \
45
46 define Package/rarpd/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rarpd $(1)/usr/sbin/
49 $(INSTALL_DIR) $(1)/etc/config
50 $(INSTALL_DATA) ./files/rarpd.config $(1)/etc/config/rarpd
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_BIN) ./files/rarpd.init $(1)/etc/init.d/rarpd
53 endef
54
55 define Package/rarpd/conffiles
56 /etc/config/rarpd
57 endef
58
59 $(eval $(call BuildPackage,rarpd))