[OpenWrt-Devel] [PATCH 3/4] Run c_hash on the certificates

Cristian Morales Vega cristian at samknows.com
Wed Sep 24 10:15:53 EDT 2014


It's needed for OpenSSL to find them.

Signed-off-by: Cristian Morales Vega <cristian at samknows.com>
---
 package/system/ca-certificates/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/system/ca-certificates/Makefile b/package/system/ca-certificates/Makefile
index cd29c0a..492cbb5 100644
--- a/package/system/ca-certificates/Makefile
+++ b/package/system/ca-certificates/Makefile
@@ -14,6 +14,8 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/c/ca-certificates
 PKG_MD5SUM:=0436aba482091da310bd762e1deca8b4
 
+PKG_BUILD_DEPENDS:=openssl-util/host
+
 PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
@@ -34,6 +36,7 @@ endef
 define Package/ca-certificates/install
 	$(INSTALL_DIR) $(1)/etc/ssl/certs
 	$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/ca-certificates/*/*.pem $(1)/etc/ssl/certs/
+	c_rehash $(1)/etc/ssl/certs/
 endef
 
 $(eval $(call BuildPackage,ca-certificates))
-- 
1.9.3
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list