odhcpd: Upstep to git HEAD version
[openwrt/openwrt.git] / package / network / services / odhcpd / Makefile
1 #
2 # Copyright (C) 2013-2015 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:=odhcpd
11 PKG_VERSION:=2016-09-22
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL:=https://github.com/sbyx/odhcpd.git
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_VERSION:=6292fcd5c2b73cdc3cbc8942672cf7a4173354b1
19 PKG_MIRROR_MD5SUM:=76224223eead65d1736c09c3fdadf0314f7e2cbac288255849a90b580ca2f3fd
20
21 PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
22 PKG_LICENSE:=GPL-2.0
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/cmake.mk
26
27 CMAKE_OPTIONS += -DUBUS=1
28
29 ifneq ($(CONFIG_PACKAGE_odhcpd_ext_cer_id),0)
30 CMAKE_OPTIONS += -DEXT_CER_ID=$(CONFIG_PACKAGE_odhcpd_ext_cer_id)
31 endif
32
33
34 define Package/odhcpd
35 SECTION:=net
36 CATEGORY:=Network
37 TITLE:=OpenWrt DHCP/DHCPv6(-PD)/RA Server & Relay
38 DEPENDS:=+libubox +libuci +libubus
39 endef
40
41 define Package/odhcpd/config
42 config PACKAGE_odhcpd_ext_cer_id
43 int "CER-ID Extension ID (0 = disabled)"
44 depends on PACKAGE_odhcpd
45 default 0
46 endef
47
48 define Package/odhcpd/description
49 odhcpd is a daemon for serving and relaying IP management protocols to
50 configure clients and downstream routers. It tries to follow the RFC 6204
51 requirements for IPv6 home routers.
52
53 odhcpd provides server services for DHCP, RA, stateless and stateful DHCPv6,
54 prefix delegation and can be used to relay RA, DHCPv6 and NDP between routed
55 (non-bridged) interfaces in case no delegated prefixes are available.
56 endef
57
58 define Package/odhcpd/install
59 $(INSTALL_DIR) $(1)/usr/sbin/
60 $(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcpd $(1)/usr/sbin/
61 $(INSTALL_BIN) ./files/odhcpd-update $(1)/usr/sbin/
62 $(INSTALL_DIR) $(1)/etc/init.d
63 $(INSTALL_BIN) ./files/odhcpd.init $(1)/etc/init.d/odhcpd
64 $(INSTALL_DIR) $(1)/etc/uci-defaults
65 $(INSTALL_BIN) ./files/odhcpd.defaults $(1)/etc/uci-defaults
66 endef
67
68 $(eval $(call BuildPackage,odhcpd))