source: packages/net/rarpd/Makefile @ 26095

Last change on this file since 26095 was 26095, checked in by cshore, 6 years ago

[net] IP Addresses and Names: Moved reverse ARP daemon to IP Addreses and Names submenu.

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=rarpd
11PKG_VERSION:=1.1
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=ftp://ftp.dementia.org/pub/net-tools
16PKG_MD5SUM:=04e2ca849e758d0b88c8281775ec3b58
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define 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/
29endef
30
31define 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.
37endef
38
39define Build/Configure
40        $(call Build/Configure/Default, \
41                --with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.0.x" \
42                --with-pcap="$(STAGING_DIR)/usr" \
43                , \
44                CFLAGS="$$$$CFLAGS -DNEW_LIBNET_INTERFACE" \
45        )
46endef
47
48define Package/rarpd/install
49        $(INSTALL_DIR) $(1)/usr/sbin
50        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rarpd $(1)/usr/sbin/
51        $(INSTALL_DIR) $(1)/etc/default
52        install -m644 ./files/rarpd.default $(1)/etc/default/rarpd
53        $(INSTALL_DIR) $(1)/etc/init.d
54        install -m755 ./files/rarpd.init $(1)/etc/init.d/rarpd
55endef
56
57$(eval $(call BuildPackage,rarpd))
Note: See TracBrowser for help on using the repository browser.