summaryrefslogtreecommitdiff
path: root/package/system/ca-certificates/Makefile
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 19:26:25 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 19:26:25 +0200
commit4dc1eee385f1b5115976db8d6b60ca0a08ed05ce (patch)
tree8c2562a28e69949dee07563a8bedc6029d7acc9a /package/system/ca-certificates/Makefile
parentbe049529e6a883601fd47303a05165a6a0b9a4a5 (diff)
downloadmtk-20170518-4dc1eee385f1b5115976db8d6b60ca0a08ed05ce.zip
mtk-20170518-4dc1eee385f1b5115976db8d6b60ca0a08ed05ce.tar.gz
mtk-20170518-4dc1eee385f1b5115976db8d6b60ca0a08ed05ce.tar.bz2
package/system: probably from OpenWRT
Diffstat (limited to 'package/system/ca-certificates/Makefile')
-rw-r--r--package/system/ca-certificates/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/package/system/ca-certificates/Makefile b/package/system/ca-certificates/Makefile
index 7f38c86..0caf027 100644
--- a/package/system/ca-certificates/Makefile
+++ b/package/system/ca-certificates/Makefile
@@ -7,12 +7,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ca-certificates
-PKG_VERSION:=20140325
+PKG_VERSION:=20141019
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.xz
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/c/ca-certificates
-PKG_MD5SUM:=0436aba482091da310bd762e1deca8b4
+PKG_MD5SUM:=f619282081c8bfc65ea64c37fa5285ed
PKG_INSTALL:=1
@@ -34,6 +34,15 @@ 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 -s "$$$$CERTFILE" "$(1)/etc/ssl/certs/$$$$HASH.$$$$SUFFIX" ; \
+ done
endef
$(eval $(call BuildPackage,ca-certificates))