Some packages don't use /etc/ssl/certs but instead use /etc/ssl/certs/ca-certificates.crt.
For those packages add a ca-bundle package>.
Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
+define Package/ca-bundle
+ SECTION:=base
+ CATEGORY:=Base system
+ TITLE:=System CA certificates as a bundle
+ PKGARCH:=all
+endef
+
define Build/Install
mkdir -p \
$(PKG_INSTALL_DIR)/usr/sbin \
define Build/Install
mkdir -p \
$(PKG_INSTALL_DIR)/usr/sbin \
+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
+endef
$(eval $(call BuildPackage,ca-certificates))
$(eval $(call BuildPackage,ca-certificates))
+$(eval $(call BuildPackage,ca-bundle))