2 # Copyright (C) 2012-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
14 PKG_SOURCE_URL
=$(PROJECT_GIT
)/project
/odhcp6c.git
15 PKG_SOURCE_DATE
:=2021-01-09
16 PKG_SOURCE_VERSION
:=53f07e90b7f1da6977143a488dd5cb73a33b233b
17 PKG_MIRROR_HASH
:=ad3665b611d19177996771b11df28d92f066b0125484ea3bdfc0b3185c14f90e
18 PKG_MAINTAINER
:=Hans Dedecker
<dedeckeh@gmail.com
>
21 include $(INCLUDE_DIR
)/package.mk
22 include $(INCLUDE_DIR
)/cmake.mk
27 ifneq ($(CONFIG_PACKAGE_odhcp6c_ext_cer_id
),0)
28 CMAKE_OPTIONS
+= -DEXT_CER_ID
=$(CONFIG_PACKAGE_odhcp6c_ext_cer_id
)
31 define Package
/odhcp6c
34 TITLE
:=Embedded DHCPv6-client for OpenWrt
35 DEPENDS
:=@IPV6
+libubox
38 define Package
/odhcp6c
/config
39 config PACKAGE_odhcp6c_ext_cer_id
40 int
"CER-ID Extension ID (0 = disabled)"
41 depends on PACKAGE_odhcp6c
45 define Package
/odhcp6c
/conffiles
49 define Package
/odhcp6c
/install
50 $(INSTALL_DIR
) $(1)/usr
/sbin
/
51 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/odhcp6c
$(1)/usr
/sbin
/
52 $(INSTALL_DIR
) $(1)/lib
/netifd
/proto
53 $(INSTALL_BIN
) .
/files
/dhcpv6.sh
$(1)/lib
/netifd
/proto
/dhcpv6.sh
54 $(INSTALL_BIN
) .
/files
/dhcpv6.script
$(1)/lib
/netifd
/
55 $(INSTALL_DIR
) $(1)/etc
/
56 $(INSTALL_CONF
) .
/files
/odhcp6c.user
$(1)/etc
/
59 $(eval
$(call BuildPackage
,odhcp6c
))