2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=ftp
://ftp.dementia.org
/pub
/net-tools
17 PKG_MD5SUM
:=04e2ca849e758d0b88c8281775ec3b58
19 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=Reverse ARP Daemon
26 URL
:=ftp
://ftp.dementia.org
/pub
/net-tools
/
29 define Package
/rarpd
/description
30 Rarpd is a daemon which responds to RARP requests.
31 RARP is used by some machines at boot time to discover their
32 IP address. They provide their Ethernet address and rarpd
33 responds with their IP address if it finds it in the ethers
37 define Build
/Configure
38 $(call Build
/Configure
/Default
, \
39 --with-libnet
="$(STAGING_DIR)/usr/lib/libnet-1.0.x" \
40 --with-pcap
="$(STAGING_DIR)/usr" \
42 CFLAGS
="$$$$CFLAGS -DNEW_LIBNET_INTERFACE" \
47 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
48 DESTDIR
="$(PKG_INSTALL_DIR)" \
52 define Package
/rarpd
/install
53 $(INSTALL_DIR
) $(1)/usr
/sbin
54 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rarpd
$(1)/usr
/sbin
/
55 $(INSTALL_DIR
) $(1)/etc
/default
56 install -m644 .
/files
/rarpd.default
$(1)/etc
/default
/rarpd
57 $(INSTALL_DIR
) $(1)/etc
/init.d
58 install -m755 .
/files
/rarpd.init
$(1)/etc
/init.d
/rarpd
61 $(eval
$(call BuildPackage
,rarpd
))