From: Daniel Dickinson Date: Fri, 13 May 2016 10:30:25 +0000 (-0400) Subject: ca-certificates: Add certificate bundle package X-Git-Tag: v17.01.0-rc1~2763 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=commitdiff_plain;h=3015af96475ad135ecb55b7c1f794191e3d4a587 ca-certificates: Add certificate bundle package Some SSL applications requires a certificates bundle rather than a directory containing certificates. For thos applications we build the ca-bundle package Signed-off-by: Daniel Dickinson --- diff --git a/package/system/ca-certificates/Makefile b/package/system/ca-certificates/Makefile index 9b6dbd61fe..8590952154 100644 --- a/package/system/ca-certificates/Makefile +++ b/package/system/ca-certificates/Makefile @@ -26,6 +26,13 @@ define Package/ca-certificates PKGARCH:=all endef +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 \ @@ -47,4 +54,9 @@ define Package/ca-certificates/install done 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 +endef $(eval $(call BuildPackage,ca-certificates)) +$(eval $(call BuildPackage,ca-bundle))