odhcpd/6c: Add config menu for prefix class ext.

SVN-Revision: 38996
This commit is contained in:
Steven Barth 2013-12-05 12:17:09 +00:00
parent 95065c08b0
commit 4bdd40c08b
2 changed files with 22 additions and 0 deletions

View File

@ -21,6 +21,10 @@ PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk include $(INCLUDE_DIR)/cmake.mk
ifneq ($(CONFIG_PACKAGE_odhcp6c_ext_prefix_class),0)
CMAKE_OPTIONS += -DEXT_PREFIX_CLASS=$(CONFIG_PACKAGE_odhcp6c_ext_prefix_class)
endif
define Package/odhcp6c define Package/odhcp6c
SECTION:=net SECTION:=net
CATEGORY:=Network CATEGORY:=Network
@ -28,6 +32,13 @@ define Package/odhcp6c
DEPENDS:=+kmod-ipv6 DEPENDS:=+kmod-ipv6
endef endef
define Package/odhcp6c/config
config PACKAGE_odhcp6c_ext_prefix_class
int "Prefix Class Extension ID (0 = disabled)"
depends on PACKAGE_odhcp6c
default 0
endef
define Package/odhcp6c/install define Package/odhcp6c/install
$(INSTALL_DIR) $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcp6c $(1)/usr/sbin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcp6c $(1)/usr/sbin/

View File

@ -22,6 +22,10 @@ PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk include $(INCLUDE_DIR)/cmake.mk
ifneq ($(CONFIG_PACKAGE_odhcpd_ext_prefix_class),0)
CMAKE_OPTIONS += -DEXT_PREFIX_CLASS=$(CONFIG_PACKAGE_odhcpd_ext_prefix_class)
endif
define Package/odhcpd define Package/odhcpd
SECTION:=net SECTION:=net
CATEGORY:=Network CATEGORY:=Network
@ -29,6 +33,13 @@ define Package/odhcpd
DEPENDS:=+libubox +libuci +libubus DEPENDS:=+libubox +libuci +libubus
endef endef
define Package/odhcpd/config
config PACKAGE_odhcpd_ext_prefix_class
int "Prefix Class Extension ID (0 = disabled)"
depends on PACKAGE_odhcpd
default 0
endef
define Package/odhcpd/description define Package/odhcpd/description
odhcpd is a daemon for serving and relaying IP management protocols to odhcpd is a daemon for serving and relaying IP management protocols to
configure clients and downstream routers. It tries to follow the RFC 6204 configure clients and downstream routers. It tries to follow the RFC 6204