odhcpd/6c: Add config menu for prefix class ext.
authorSteven Barth <cyrus@openwrt.org>
Thu, 5 Dec 2013 12:17:09 +0000 (12:17 +0000)
committerSteven Barth <cyrus@openwrt.org>
Thu, 5 Dec 2013 12:17:09 +0000 (12:17 +0000)
SVN-Revision: 38996

package/network/ipv6/odhcp6c/Makefile
package/network/services/odhcpd/Makefile

index 845dc579e925d8c7d5f3a306f0f5cd9f304e3db9..bd794dc8643a2aad9e3c01e63fa18da49f0df239 100644 (file)
@@ -21,6 +21,10 @@ PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
 include $(INCLUDE_DIR)/package.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
   SECTION:=net
   CATEGORY:=Network
@@ -28,6 +32,13 @@ define Package/odhcp6c
   DEPENDS:=+kmod-ipv6
 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
        $(INSTALL_DIR) $(1)/usr/sbin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/odhcp6c $(1)/usr/sbin/
index e660600fee81422754bbe831996d2b5c8a7f990d..c4f76cbd626e43156b6734c9b71dd8160fa1a271 100644 (file)
@@ -22,6 +22,10 @@ PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
 include $(INCLUDE_DIR)/package.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
   SECTION:=net
   CATEGORY:=Network
@@ -29,6 +33,13 @@ define Package/odhcpd
   DEPENDS:=+libubox +libuci +libubus
 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
  odhcpd is a daemon for serving and relaying IP management protocols to
  configure clients and downstream routers. It tries to follow the RFC 6204