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-12-13
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
:=5f425ed1e5f92397e27ec4f44820b6ef677b8134
19 PKG_MIRROR_HASH
:=c0f11c25feaf6b9e0e5ee035cb0f18ba7d718b81150475262543500416962e7c
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
))