mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
CC: ca-certificages: Add certificate bundle for packages that need it
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>
This commit is contained in:
committed by
Zoltan HERPAI
parent
3807ba2d10
commit
aa112f7610
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user