Author: nbd Date: 2014-09-25 09:38:02 +0200 (Thu, 25 Sep 2014) New Revision: 42660
Modified: trunk/package/system/ca-certificates/Makefile Log: ca-certificates: create symbolic link for certificate hashes Implementing "add-cert.sh" functionality described at http://wiki.openwrt.org/doc/howto/wget-ssl-certs into Makefile otherwise you need to create symbolic links for certificate hashes yourself. Signed-off-by: Christian Schoenebeck <[email protected]> Modified: trunk/package/system/ca-certificates/Makefile =================================================================== --- trunk/package/system/ca-certificates/Makefile 2014-09-24 21:08:17 UTC (rev 42659) +++ trunk/package/system/ca-certificates/Makefile 2014-09-25 07:38:02 UTC (rev 42660) @@ -34,6 +34,15 @@ 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)) _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
