Merge pull request #10007 from neheb/lcdg
[feed/packages.git] / net / dhcpcd / Makefile
1 #
2 # Copyright (C) 2014 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:=dhcpcd
11 PKG_VERSION:=7.2.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=ftp://roy.marples.name/pub/dhcpcd \
15 http://roy.marples.name/downloads/dhcpcd
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
17 PKG_HASH:=3db7ff18cba9274da1d2176fb3c7cbe23926a8e58d5c8e244ad55c62d38ba09e
18
19 PKG_LICENSE:=BSD-2c
20 PKG_LICENSE_FILES:=
21 PKG_CPE_ID:=cpe:/a:roy_marples:dhcpcd
22
23 PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
24
25 PKG_BUILD_PARALLEL:=1
26 PKG_INSTALL:=1
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/dhcpcd
31 SECTION:=net
32 CATEGORY:=Network
33 TITLE:=DHCPv4/IPv4LL/IPv6RS/DHCPv6 quad stack client
34 URL:=http://roy.marples.name/projects/dhcpcd
35 endef
36
37 define Package/dhcpcd/description
38 DHCPv4, IPv6RS and DHCPv6 client with IPv4LL support
39 dhcpcd is a one stop network management daemon which includes
40 * RFC compliant DHCPv4 and DHCPv6 clients
41 * DHCPv6 Prefix Delegation support
42 * IPv4LL (aka ZeroConf) support
43 * ARP address conflict resolution
44 * Link carrier detection
45 * Wireless SSID profiles
46 * ARP ping profiles
47 endef
48
49 CONFIGURE_ARGS+= \
50 --prefix=/ \
51 --sbindir=/sbin \
52 --libexecdir=/lib/dhcpcd \
53 --dbdir=/var/dhcpcd
54
55 define Package/dhcpcd/install
56 $(INSTALL_DIR) $(1)/sbin $(1)/etc $(1)/lib/dhcpcd/dhcpcd-hooks
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/dhcpcd $(1)/sbin/
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/dhcpcd/dhcpcd-run-hooks \
59 $(1)/lib/dhcpcd/
60 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/lib/dhcpcd/dhcpcd-hooks/* \
61 $(1)/lib/dhcpcd/dhcpcd-hooks/
62 $(INSTALL_DIR) $(1)/etc/init.d
63 $(INSTALL_BIN) ./files/dhcpcd.init $(1)/etc/init.d/dhcpcd
64 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/dhcpcd.conf $(1)/etc/dhcpcd.conf
65 endef
66
67 $(eval $(call BuildPackage,dhcpcd))