Browse Source

- ca-bundle: rework build

master
vanhofen 3 years ago
parent
commit
42db7fa780
  1. 19
      package/ca-bundle/ca-bundle.mk

19
package/ca-bundle/ca-bundle.mk

@ -4,17 +4,18 @@
# #
################################################################################ ################################################################################
CA_BUNDLE_VERSION = curl-controlled
CA_BUNDLE_DIR =
CA_BUNDLE_SOURCE = cacert.pem CA_BUNDLE_SOURCE = cacert.pem
CA_BUNDLE_SITE = https://curl.se/ca CA_BUNDLE_SITE = https://curl.se/ca
$(DL_DIR)/$(CA_BUNDLE_SOURCE): CA_BUNDLE_CERTS_DIR = $(sysconfdir)/ssl/certs
$(download) $(CA_BUNDLE_SITE)/$(CA_BUNDLE_SOURCE) CA_BUNDLE_CERT = ca-certificates.crt
CA_BUNDLE_DIR = /etc/ssl/certs define CA_BUNDLE_INSTALL
CA_BUNDLE_CRT = ca-certificates.crt $(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) ca-bundle: | $(TARGET_DIR)
$(CD) $(DL_DIR); \ $(call individual-package,$(PKG_NO_EXTRACT) $(PKG_NO_PATCHES))
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)

Loading…
Cancel
Save