[OpenWrt-Devel] [PATCH] [package] OpenSSL: Added source/old to PKG_SOURCE_URL

Alexander Dahl post at lespocky.de
Mon Dec 7 05:01:49 EST 2015


Hei hei,

I try to comment without directly replying, I was not on the list
before and hope to get this right.

The proposed solution works for openssl 1.0.2 branch. However a more
generic solution would be possible. I tried the following successfully
on master and it can be merged to chaos calmer without hassle (the
diff is against CC but you get the idea):

diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile
index 6909f97..3fb7a1f 100644
--- a/package/libs/openssl/Makefile
+++ b/package/libs/openssl/Makefile
@@ -8,7 +8,9 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=openssl
-PKG_VERSION:=1.0.2e
+PKG_BASE:=1.0.2
+PKG_BUGFIX:=e
+PKG_VERSION:=$(PKG_BASE)$(PKG_BUGFIX)
 PKG_RELEASE:=1
 PKG_USE_MIPS16:=0
 
@@ -16,6 +18,7 @@ PKG_BUILD_PARALLEL:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.openssl.org/source/ \
+   http://www.openssl.org/source/old/$(PKG_BASE)/ \
    ftp://ftp.funet.fi/pub/crypt/mirrors/ftp.openssl.org/source \
    ftp://ftp.sunet.se/pub/security/tools/net/openssl/source/
 PKG_MD5SUM:=5262bfa25b60ed9de9f28d5d52d77fc5

Splitting the version in base and bugfix allows using the base part in
the URL. The idea is borrowed from the openssl package in ptxdist.

Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured, 
the first thought forbidden, the first freedom denied, chains us all 
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20151207/21f225b7/attachment.sig>
-------------- next part --------------
_______________________________________________
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