]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
ipsec-tools: rename options to have proper prefix
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 13 May 2018 19:07:33 +0000 (21:07 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 21 May 2018 21:09:36 +0000 (23:09 +0200)
A number of options in the ipsec-tools package had their Config.in
option prefixed by BR2_PACKAGE_IPSEC, while the prefix should be
BR2_PACKAGE_IPSEC_TOOLS. This commit fixes that, and adds the
necessary Config.in.legacy handling.

Since those options are part of a choice, the legacy handling cannot
select the new name of the options, so the legacy handling only
informs the user of the rename.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Config.in.legacy
package/ipsec-tools/Config.in
package/ipsec-tools/ipsec-tools.mk

index 7ec952671079c2914551f284593096f4c4583e84..4e4f499454e3e9c8973c8d048505efb713add261 100644 (file)
@@ -145,6 +145,30 @@ endif
 ###############################################################################
 comment "Legacy options removed in 2018.05"
 
+config BR2_PACKAGE_IPSEC_SECCTX_DISABLE
+       bool "ipsec-tools security context disable option renamed"
+       select BR2_LEGACY
+       help
+         For consistency reasons, the option
+         BR2_PACKAGE_IPSEC_SECCTX_DISABLE was renamed to
+         BR2_PACKAGE_IPSEC_TOOLS_SECCTX_DISABLE.
+
+config BR2_PACKAGE_IPSEC_SECCTX_ENABLE
+       bool "ipsec-tools SELinux security context enable option renamed"
+       select BR2_LEGACY
+       help
+         For consistency reasons, the option
+         BR2_PACKAGE_IPSEC_SECCTX_ENABLE was renamed to
+         BR2_PACKAGE_IPSEC_TOOLS_SECCTX_ENABLE.
+
+config BR2_PACKAGE_IPSEC_SECCTX_KERNEL
+       bool "ipsec-tools kernel security context enable option renamed"
+       select BR2_LEGACY
+       help
+         For consistency reasons, the option
+         BR2_PACKAGE_IPSEC_SECCTX_KERNEL was renamed to
+         BR2_PACKAGE_IPSEC_TOOLS_SECCTX_KERNEL.
+
 config BR2_PACKAGE_LIBTFDI_CPP
        bool "libftdi C++ bindings option renamed"
        select BR2_LEGACY
index 1635675a36b945bb08bdaab8a6675f26ae1d34a3..59154123e652e4ace3b73402911550b269a73538 100644 (file)
@@ -57,17 +57,17 @@ config BR2_PACKAGE_IPSEC_TOOLS_HYBRID
 
 choice
        prompt "Security context"
-       default BR2_PACKAGE_IPSEC_SECCTX_DISABLE
+       default BR2_PACKAGE_IPSEC_TOOLS_SECCTX_DISABLE
        help
          Selects whether or not to enable security context support.
 
-config BR2_PACKAGE_IPSEC_SECCTX_DISABLE
+config BR2_PACKAGE_IPSEC_TOOLS_SECCTX_DISABLE
        bool "Disable security context support"
 
-config BR2_PACKAGE_IPSEC_SECCTX_ENABLE
+config BR2_PACKAGE_IPSEC_TOOLS_SECCTX_ENABLE
        bool "Enable SELinux security context support"
 
-config BR2_PACKAGE_IPSEC_SECCTX_KERNEL
+config BR2_PACKAGE_IPSEC_TOOLS_SECCTX_KERNEL
        bool "Enable kernel security context"
 
 endchoice
index c0b180de5547d30b8f409d7a551c645fb41760e2..ddae9a75f3a0afc5212be3500c68dd0c4620c2ee 100644 (file)
@@ -68,13 +68,13 @@ else
 IPSEC_TOOLS_CONF_OPTS += --disable-hybrid
 endif
 
-ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_DISABLE),y)
+ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_SECCTX_DISABLE),y)
 IPSEC_TOOLS_CONF_OPTS += --enable-security-context=no
 endif
-ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_ENABLE),y)
+ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_SECCTX_ENABLE),y)
 IPSEC_TOOLS_CONF_OPTS += --enable-security-context=yes
 endif
-ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_KERNEL),y)
+ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_SECCTX_KERNEL),y)
 IPSEC_TOOLS_CONF_OPTS += --enable-security-context=kernel
 endif