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>
master
Yousong Zhou 6 years ago committed by Hauke Mehrtens
parent 9f451ec698
commit 191078e83d
  1. 2
      package/system/ca-certificates/Makefile

@ -8,6 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ca-certificates PKG_NAME:=ca-certificates
PKG_VERSION:=20180409 PKG_VERSION:=20180409
PKG_RELEASE:=2
PKG_MAINTAINER:=Christian Schoenebeck <christian.schoenebeck@gmail.com> PKG_MAINTAINER:=Christian Schoenebeck <christian.schoenebeck@gmail.com>
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.xz
@ -57,6 +58,7 @@ endef
define Package/ca-bundle/install define Package/ca-bundle/install
$(INSTALL_DIR) $(1)/etc/ssl/certs $(INSTALL_DIR) $(1)/etc/ssl/certs
cat $(PKG_INSTALL_DIR)/usr/share/ca-certificates/*/*.crt >$(1)/etc/ssl/certs/ca-certificates.crt 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 endef
$(eval $(call BuildPackage,ca-certificates)) $(eval $(call BuildPackage,ca-certificates))
$(eval $(call BuildPackage,ca-bundle)) $(eval $(call BuildPackage,ca-bundle))

Loading…
Cancel
Save