summaryrefslogtreecommitdiff
path: root/package/system/ca-certificates
diff options
context:
space:
mode:
authorDaniel Dickinson <lede@daniel.thecshore.com>2016-05-13 06:30:25 -0400
committerJo-Philipp Wich <jo@mein.io>2016-05-18 22:17:28 +0200
commit3015af96475ad135ecb55b7c1f794191e3d4a587 (patch)
treeeeb98da5f52eaf0ac6272a1283a69a2dc700b542 /package/system/ca-certificates
parent83049ed944f19bddeb9bc012b2a18e5df080d317 (diff)
downloadmtk-20170518-3015af96475ad135ecb55b7c1f794191e3d4a587.zip
mtk-20170518-3015af96475ad135ecb55b7c1f794191e3d4a587.tar.gz
mtk-20170518-3015af96475ad135ecb55b7c1f794191e3d4a587.tar.bz2
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 <lede@daniel.thecshore.com>
Diffstat (limited to 'package/system/ca-certificates')
-rw-r--r--package/system/ca-certificates/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/system/ca-certificates/Makefile b/package/system/ca-certificates/Makefile
index 9b6dbd6..8590952 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))