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
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
25 include $(INCLUDE_DIR
)/package.mk
31 TITLE
:=Reverse ARP Daemon
33 Rarpd is a daemon which responds to RARP requests.
\\\
34 RARP is used by some machines at boot time to discover their
\\\
35 IP address. They provide their Ethernet address and rarpd
\\\
36 responds with their IP address if it finds it in the ethers
\\\
38 URL
:=ftp
://ftp.dementia.org
/pub
/net-tools
/
41 define Build
/Configure
42 $(call Build
/Configure
/Default
, \
43 --with-libnet
="$(STAGING_DIR)/usr/lib/libnet-1.0.x" \
44 --with-pcap
="$(STAGING_DIR)/usr" \
46 CFLAGS
="$$$$CFLAGS -DNEW_LIBNET_INTERFACE" \
51 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
52 DESTDIR
="$(PKG_INSTALL_DIR)" \
56 define Package
/rarpd
/install
57 install -d
-m0755
$(1)/usr
/sbin
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rarpd
$(1)/usr
/sbin
/
59 install -d
-m0755
$(1)/etc
/default
60 install -m644 .
/files
/rarpd.default
$(1)/etc
/default
/rarpd
61 install -d
-m0755
$(1)/etc
/init.d
62 install -m755 .
/files
/rarpd.init
$(1)/etc
/init.d
/rarpd
63 ln
-sf rarpd
$(1)/etc
/init.d
/S
$(PKG_INIT_PRIO
)rarpd
66 $(eval
$(call BuildPackage
,rarpd
))