Skip to content

Commit 5aae9bf

Browse files
committed
package: system: ca-certificates: add alternatives
This two packages are meant to be installed side-by-side,add a semi-dummy ALTERNATIVES field to tell apk to make their provide name "ca-certs" a virtual(non-versioned) name. Assign a higher priority to ca-bundle since it is the prefered method for store certificades[1]. (apk will select ca-bundle lexicographically if two provider have the same priority, but it is a good example of how the alternative priority can be used for provider-priority) (DEFAULT_VARIANT would be a bit forced here) [1]: dd29980 ("ca-certificates: provide ca-certs by both ca-certificates and ca-bundle") Signed-off-by: Mario Andrés Pérez <mapb_@outlook.com>
1 parent f03fb62 commit 5aae9bf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

package/system/ca-certificates/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ define Package/ca-certificates
3030
TITLE:=System CA certificates
3131
PKGARCH:=all
3232
PROVIDES:=ca-certs
33+
ALTERNATIVES:=100:/etc/ssl/certs/__ca-certificates.alternatives:/dev/null
3334
endef
3435

3536
define Package/ca-bundle
@@ -38,6 +39,7 @@ define Package/ca-bundle
3839
TITLE:=System CA certificates as a bundle
3940
PKGARCH:=all
4041
PROVIDES:=ca-certs
42+
ALTERNATIVES:=200:/etc/ssl/certs/__ca-bundle.alternatives:/dev/null
4143
endef
4244

4345
define Build/Install

0 commit comments

Comments
 (0)