2015-05-31 17:45:54 +00:00
|
|
|
#
|
2017-08-15 18:44:17 +00:00
|
|
|
# Copyright (C) 2006-2017 OpenWrt.org
|
2014-03-21 15:54:22 +00:00
|
|
|
#
|
|
|
|
# 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
|
2024-02-17 23:58:54 +00:00
|
|
|
PKG_VERSION:=20240203
|
2020-06-07 15:22:02 +00:00
|
|
|
PKG_RELEASE:=1
|
2018-07-30 19:28:00 +00:00
|
|
|
PKG_MAINTAINER:=
|
2014-03-21 15:54:22 +00:00
|
|
|
|
2024-03-13 11:41:38 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0-or-later MPL-2.0
|
|
|
|
PKG_LICENSE_FILES:=debian/copyright
|
|
|
|
|
2014-03-21 15:54:22 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.xz
|
2021-02-20 20:17:26 +00:00
|
|
|
PKG_SOURCE_URL:=@DEBIAN/pool/main/c/ca-certificates
|
2024-02-17 23:58:54 +00:00
|
|
|
PKG_HASH:=3286d3fc42c4d11b7086711a85f865b44065ce05cf1fb5376b2abed07622a9c6
|
2014-03-21 15:54:22 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2023-05-26 04:09:47 +00:00
|
|
|
TAR_OPTIONS+= --strip-components 1
|
|
|
|
TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
|
|
|
|
|
2014-03-21 15:54:22 +00:00
|
|
|
define Package/ca-certificates
|
|
|
|
SECTION:=base
|
|
|
|
CATEGORY:=Base system
|
|
|
|
TITLE:=System CA certificates
|
2016-01-17 11:03:36 +00:00
|
|
|
PKGARCH:=all
|
2019-12-12 10:02:19 +00:00
|
|
|
PROVIDES:=ca-certs
|
2014-03-21 15:54:22 +00:00
|
|
|
endef
|
|
|
|
|
2016-05-13 10:30:25 +00:00
|
|
|
define Package/ca-bundle
|
|
|
|
SECTION:=base
|
|
|
|
CATEGORY:=Base system
|
|
|
|
TITLE:=System CA certificates as a bundle
|
|
|
|
PKGARCH:=all
|
2019-12-12 10:02:19 +00:00
|
|
|
PROVIDES:=ca-certs
|
2016-05-13 10:30:25 +00:00
|
|
|
endef
|
|
|
|
|
2014-03-21 15:54:22 +00:00
|
|
|
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
|
2014-03-23 11:59:37 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/ssl/certs
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/ca-certificates/*/*.crt $(1)/etc/ssl/certs/
|
2014-09-25 07:38:02 +00:00
|
|
|
|
|
|
|
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 ; \
|
2015-04-03 00:07:43 +00:00
|
|
|
$(LN) "$$$$CERTFILE" "$(1)/etc/ssl/certs/$$$$HASH.$$$$SUFFIX" ; \
|
2014-09-25 07:38:02 +00:00
|
|
|
done
|
2014-03-21 15:54:22 +00:00
|
|
|
endef
|
|
|
|
|
2016-05-13 10:30:25 +00:00
|
|
|
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
|
2018-07-05 10:51:54 +00:00
|
|
|
$(LN) /etc/ssl/certs/ca-certificates.crt $(1)/etc/ssl/cert.pem
|
2016-05-13 10:30:25 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,ca-bundle))
|
2019-12-12 10:02:19 +00:00
|
|
|
$(eval $(call BuildPackage,ca-certificates))
|