mirror of
				https://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-04 11:18:43 +00:00 
			
		
		
		
	upstream changelog: [ Alexander Kanavin ] * update-ca-certificates: add a --sysroot option [ Julien Cristau ] * Update Mozilla certificate authority bundle to version 2.74. The following certificate authorities were added (+): + D-TRUST BR Root CA 2 2023 + D-TRUST EV Root CA 2 2023 The following certificate authorities were removed (-): - Entrust Root Certification Authority - G4 - SecureSign RootCA11 - Security Communication RootCA3 - SwissSign Silver CA - G2 Signed-off-by: Fengyu Wu <saldry@proton.me> Link: https://github.com/openwrt/openwrt/pull/19462 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
		
			
				
	
	
		
			71 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
#
 | 
						|
# Copyright (C) 2006-2017 OpenWrt.org
 | 
						|
#
 | 
						|
# This is free software, licensed under the GNU General Public License v2.
 | 
						|
# See /LICENSE for more information.
 | 
						|
#
 | 
						|
include $(TOPDIR)/rules.mk
 | 
						|
 | 
						|
PKG_NAME:=ca-certificates
 | 
						|
PKG_VERSION:=20250419
 | 
						|
PKG_RELEASE:=1
 | 
						|
PKG_MAINTAINER:=
 | 
						|
 | 
						|
PKG_LICENSE:=GPL-2.0-or-later MPL-2.0
 | 
						|
PKG_LICENSE_FILES:=debian/copyright
 | 
						|
 | 
						|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.xz
 | 
						|
PKG_SOURCE_URL:=@DEBIAN/pool/main/c/ca-certificates
 | 
						|
PKG_HASH:=33b44ef78653ecd3f0f2f13e5bba6be466be2e7da72182f737912b81798ba5d2
 | 
						|
PKG_INSTALL:=1
 | 
						|
 | 
						|
include $(INCLUDE_DIR)/package.mk
 | 
						|
 | 
						|
TAR_OPTIONS+= --strip-components 1
 | 
						|
TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
 | 
						|
 | 
						|
define Package/ca-certificates
 | 
						|
  SECTION:=base
 | 
						|
  CATEGORY:=Base system
 | 
						|
  TITLE:=System CA certificates
 | 
						|
  PKGARCH:=all
 | 
						|
  PROVIDES:=ca-certs
 | 
						|
endef
 | 
						|
 | 
						|
define Package/ca-bundle
 | 
						|
  SECTION:=base
 | 
						|
  CATEGORY:=Base system
 | 
						|
  TITLE:=System CA certificates as a bundle
 | 
						|
  PKGARCH:=all
 | 
						|
  PROVIDES:=ca-certs
 | 
						|
endef
 | 
						|
 | 
						|
define Build/Install
 | 
						|
	mkdir -p \
 | 
						|
		$(PKG_INSTALL_DIR)/usr/sbin \
 | 
						|
		$(PKG_INSTALL_DIR)/usr/share/ca-certificates
 | 
						|
	$(call Build/Install/Default,)
 | 
						|
endef
 | 
						|
 | 
						|
define Package/ca-certificates/install
 | 
						|
	$(INSTALL_DIR) $(1)/etc/ssl/certs
 | 
						|
	$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/ca-certificates/*/*.crt $(1)/etc/ssl/certs/
 | 
						|
 | 
						|
	for CERTFILE in `ls -1 $(1)/etc/ssl/certs`; do \
 | 
						|
		HASH=`openssl x509 -hash -noout -in $(1)/etc/ssl/certs/$$$$CERTFILE` ; \
 | 
						|
		SUFFIX=0 ; \
 | 
						|
		while [ -h "$(1)/etc/ssl/certs/$$$$HASH.$$$$SUFFIX" ]; do \
 | 
						|
			let "SUFFIX += 1" ; \
 | 
						|
		done ; \
 | 
						|
		$(LN) "$$$$CERTFILE" "$(1)/etc/ssl/certs/$$$$HASH.$$$$SUFFIX" ; \
 | 
						|
	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
 | 
						|
	$(LN) /etc/ssl/certs/ca-certificates.crt $(1)/etc/ssl/cert.pem
 | 
						|
endef
 | 
						|
$(eval $(call BuildPackage,ca-bundle))
 | 
						|
$(eval $(call BuildPackage,ca-certificates))
 |