|
|
@ -4,17 +4,18 @@ |
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
CA_BUNDLE_VERSION = curl-controlled |
|
|
|
CA_BUNDLE_DIR = |
|
|
|
CA_BUNDLE_SOURCE = cacert.pem |
|
|
|
CA_BUNDLE_SITE = https://curl.se/ca |
|
|
|
|
|
|
|
$(DL_DIR)/$(CA_BUNDLE_SOURCE): |
|
|
|
$(download) $(CA_BUNDLE_SITE)/$(CA_BUNDLE_SOURCE) |
|
|
|
CA_BUNDLE_CERTS_DIR = $(sysconfdir)/ssl/certs |
|
|
|
CA_BUNDLE_CERT = ca-certificates.crt |
|
|
|
|
|
|
|
CA_BUNDLE_DIR = /etc/ssl/certs |
|
|
|
CA_BUNDLE_CRT = ca-certificates.crt |
|
|
|
define CA_BUNDLE_INSTALL |
|
|
|
$(INSTALL_DATA) -D $(DL_DIR)/$($(PKG)_SOURCE) $(TARGET_DIR)/$(CA_BUNDLE_CERTS_DIR)/$(CA_BUNDLE_CERT) |
|
|
|
endef |
|
|
|
CA_BUNDLE_INDIVIDUAL_HOOKS += CA_BUNDLE_INSTALL |
|
|
|
|
|
|
|
ca-bundle: $(DL_DIR)/$(CA_BUNDLE_SOURCE) | $(TARGET_DIR) |
|
|
|
$(CD) $(DL_DIR); \
|
|
|
|
curl --remote-name --remote-time -z $(PKG_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) || true |
|
|
|
$(INSTALL_DATA) -D $(DL_DIR)/$(PKG_SOURCE) $(TARGET_DIR)/$(CA_BUNDLE_DIR)/$(CA_BUNDLE_CRT) |
|
|
|
$(call TOUCH) |
|
|
|
ca-bundle: | $(TARGET_DIR) |
|
|
|
$(call individual-package,$(PKG_NO_EXTRACT) $(PKG_NO_PATCHES)) |
|
|
|