2 # Copyright (C) 2013-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
11 PKG_VERSION:=2016-11-21
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL:=git://git.lede-project.org/project/odhcpd.git
18 PKG_SOURCE_VERSION:=371a80c7257d9207e242db15e257b12d4c0238b2
19 PKG_MIRROR_MD5SUM:=90b872f5b079be5b12d21c470746d5adbc88ae9ddb1800a97aa0d31574de677c
21 PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/cmake.mk
27 CMAKE_OPTIONS += -DUBUS=1
29 ifneq ($(CONFIG_PACKAGE_odhcpd_ext_cer_id),0)
30 CMAKE_OPTIONS += -DEXT_CER_ID=$(CONFIG_PACKAGE_odhcpd_ext_cer_id)
37 TITLE:=OpenWrt DHCP/DHCPv6(-PD)/RA Server & Relay
38 DEPENDS:=+libubox +libuci +libubus
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
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.
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.
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
68 $(eval $(call BuildPackage,odhcpd))