6d7cb5337e
93abe6f config: fix invalid hoplimit in RA message 2ae08d1 config: fix invalid retranstime in RA message 0005cb4 config: fix invalid reachabletime in RA message 5683dd2 config: limit ra_mtu to 65535 f8d40a5 router: fix interface mtu read error f8f4b87 config: limit ra_retranstime to 60000 a2d8bf6 dhcpv4: display two hex digits per octet in syslog a9e9bc4 config: make RA retransTime configurable via uci 2cb6b48 config: make RA reachableTime configurable via uci e4504db config: make RA curHopLimit configurable via uci 9dd5316 config: make RA mtu configurable via UCI 29cb2ff config: fix dhcpv4 server being started 0ef74ec ndp.c: add switch/case fallthrough comments Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
66 lines
1.9 KiB
Makefile
66 lines
1.9 KiB
Makefile
#
|
|
# Copyright (C) 2013-2015 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=odhcpd
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=$(LEDE_GIT)/project/odhcpd.git
|
|
PKG_SOURCE_DATE:=2017-05-15
|
|
PKG_SOURCE_VERSION:=93abe6f02ad6e050996c4ead2481f103417df64f
|
|
PKG_MIRROR_HASH:=231f80a3ed1bb6f7437eec57da623a38aff660109ff1a5be7cb52246658d7f97
|
|
|
|
PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
CMAKE_OPTIONS += -DUBUS=1
|
|
|
|
ifneq ($(CONFIG_PACKAGE_odhcpd_ext_cer_id),0)
|
|
CMAKE_OPTIONS += -DEXT_CER_ID=$(CONFIG_PACKAGE_odhcpd_ext_cer_id)
|
|
endif
|
|
|
|
|
|
define Package/odhcpd
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=OpenWrt DHCP/DHCPv6(-PD)/RA Server & Relay
|
|
DEPENDS:=+libubox +libuci +libubus +libnl-tiny
|
|
endef
|
|
|
|
define Package/odhcpd/config
|
|
config PACKAGE_odhcpd_ext_cer_id
|
|
int "CER-ID Extension ID (0 = disabled)"
|
|
depends on PACKAGE_odhcpd
|
|
default 0
|
|
endef
|
|
|
|
define Package/odhcpd/description
|
|
odhcpd is a daemon for serving and relaying IP management protocols to
|
|
configure clients and downstream routers. It tries to follow the RFC 6204
|
|
requirements for IPv6 home routers.
|
|
|
|
odhcpd provides server services for DHCP, RA, stateless and stateful DHCPv6,
|
|
prefix delegation and can be used to relay RA, DHCPv6 and NDP between routed
|
|
(non-bridged) interfaces in case no delegated prefixes are available.
|
|
endef
|
|
|
|
define Package/odhcpd/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcpd $(1)/usr/sbin/
|
|
$(INSTALL_BIN) ./files/odhcpd-update $(1)/usr/sbin/
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/odhcpd.init $(1)/etc/init.d/odhcpd
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
|
$(INSTALL_BIN) ./files/odhcpd.defaults $(1)/etc/uci-defaults
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,odhcpd))
|