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-14
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:=https://github.com/sbyx/odhcpd.git
18 PKG_SOURCE_VERSION:=6292fcd5c2b73cdc3cbc8942672cf7a4173354b1
19 PKG_MIRROR_MD5SUM:=76224223eead65d1736c09c3fdadf0314f7e2cbac288255849a90b580ca2f3fd
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))