odhcpd: update to the latest 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_RELEASE:=1
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL=$(LEDE_GIT)/project/odhcpd.git
15 PKG_SOURCE_DATE:=2017-07-04
16 PKG_SOURCE_VERSION:=f0d78e7ebfa785fd6037e1f1f711d6c382450c3b
17 PKG_MIRROR_HASH:=e8889e1364128502741cdc58b28281e4efdb03adb6eb4f51f4f7015ddd35ac6d
18
19 PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
20 PKG_LICENSE:=GPL-2.0
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
24
25 CMAKE_OPTIONS += -DUBUS=1
26
27 ifneq ($(CONFIG_PACKAGE_odhcpd_ext_cer_id),0)
28 CMAKE_OPTIONS += -DEXT_CER_ID=$(CONFIG_PACKAGE_odhcpd_ext_cer_id)
29 endif
30
31
32 define Package/odhcpd
33 SECTION:=net
34 CATEGORY:=Network
35 TITLE:=OpenWrt DHCP/DHCPv6(-PD)/RA Server & Relay
36 DEPENDS:=+libubox +libuci +libubus +libnl-tiny
37 endef
38
39 define Package/odhcpd/config
40 config PACKAGE_odhcpd_ext_cer_id
41 int "CER-ID Extension ID (0 = disabled)"
42 depends on PACKAGE_odhcpd
43 default 0
44 endef
45
46 define Package/odhcpd/description
47 odhcpd is a daemon for serving and relaying IP management protocols to
48 configure clients and downstream routers. It tries to follow the RFC 6204
49 requirements for IPv6 home routers.
50
51 odhcpd provides server services for DHCP, RA, stateless and stateful DHCPv6,
52 prefix delegation and can be used to relay RA, DHCPv6 and NDP between routed
53 (non-bridged) interfaces in case no delegated prefixes are available.
54 endef
55
56 define Package/odhcpd/install
57 $(INSTALL_DIR) $(1)/usr/sbin/
58 $(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcpd $(1)/usr/sbin/
59 $(INSTALL_BIN) ./files/odhcpd-update $(1)/usr/sbin/
60 $(INSTALL_DIR) $(1)/etc/init.d
61 $(INSTALL_BIN) ./files/odhcpd.init $(1)/etc/init.d/odhcpd
62 $(INSTALL_DIR) $(1)/etc/uci-defaults
63 $(INSTALL_BIN) ./files/odhcpd.defaults $(1)/etc/uci-defaults
64 endef
65
66 $(eval $(call BuildPackage,odhcpd))