aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2018-07-05 18:51:54 +0800
committerChristian Lamparter <chunkeey@gmail.com>2019-04-20 13:41:20 +0200
commite74b264231176eef2b5432eb705c74a007623d77 (patch)
tree4cde1549bc3612eafc011b7a45dbf4d99c8ddfc4
parent3e7fd9275dfe272acd9315665419f5462363881e (diff)
downloadupstream-e74b264231176eef2b5432eb705c74a007623d77.tar.gz
upstream-e74b264231176eef2b5432eb705c74a007623d77.tar.bz2
upstream-e74b264231176eef2b5432eb705c74a007623d77.zip
ca-certificates: ca-bundle: add symlink for openssl default setting
OpenSSL defaults X509_CERT_FILE to /etc/ssl/cert.pem. This change is needed for wget-ssl and possibly others to work seamlessly with fresh ca-bundle installation Fixes openwrt/packages#6152 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (cherry-picked from commit: 191078e83d127f5ed9a38366d2edaac49f9333c5)
-rw-r--r--package/system/ca-certificates/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/system/ca-certificates/Makefile b/package/system/ca-certificates/Makefile
index 537cf2f4e9..6de00b7161 100644
--- a/package/system/ca-certificates/Makefile
+++ b/package/system/ca-certificates/Makefile
@@ -8,6 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ca-certificates
PKG_VERSION:=20180409
+PKG_RELEASE:=2
PKG_MAINTAINER:=Christian Schoenebeck <christian.schoenebeck@gmail.com>
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.xz
@@ -57,6 +58,7 @@ endef
define Package/ca-bundle/install
$(INSTALL_DIR) $(1)/etc/ssl/certs
cat $(PKG_INSTALL_DIR)/usr/share/ca-certificates/*/*.crt >$(1)/etc/ssl/certs/ca-certificates.crt
+ $(LN) /etc/ssl/certs/ca-certificates.crt $(1)/etc/ssl/cert.pem
endef
$(eval $(call BuildPackage,ca-certificates))
$(eval $(call BuildPackage,ca-bundle))