2006-08-07 12:34:24 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=rarpd
|
|
|
|
PKG_VERSION:=1.1
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-03 17:33:08 +00:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.dementia.org/pub/net-tools
|
|
|
|
PKG_MD5SUM:=04e2ca849e758d0b88c8281775ec3b58
|
2006-08-07 12:34:24 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-08-07 12:34:24 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/rarpd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2006-10-03 17:33:08 +00:00
|
|
|
DEPENDS:=+libnet0
|
2006-08-07 12:34:24 +00:00
|
|
|
TITLE:=Reverse ARP Daemon
|
|
|
|
URL:=ftp://ftp.dementia.org/pub/net-tools/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/rarpd/description
|
|
|
|
Rarpd is a daemon which responds to RARP requests.
|
|
|
|
RARP is used by some machines at boot time to discover their
|
|
|
|
IP address. They provide their Ethernet address and rarpd
|
|
|
|
responds with their IP address if it finds it in the ethers
|
|
|
|
database.
|
|
|
|
endef
|
|
|
|
|
2006-08-07 12:34:24 +00:00
|
|
|
define Build/Configure
|
2006-10-03 17:33:08 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.0.x" \
|
|
|
|
--with-pcap="$(STAGING_DIR)/usr" \
|
|
|
|
, \
|
|
|
|
CFLAGS="$$$$CFLAGS -DNEW_LIBNET_INTERFACE" \
|
|
|
|
)
|
2006-08-07 12:34:24 +00:00
|
|
|
endef
|
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
define Package/rarpd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rarpd $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/default
|
2006-08-07 12:34:24 +00:00
|
|
|
install -m644 ./files/rarpd.default $(1)/etc/default/rarpd
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2006-08-07 12:34:24 +00:00
|
|
|
install -m755 ./files/rarpd.init $(1)/etc/init.d/rarpd
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,rarpd))
|