summaryrefslogtreecommitdiffstats
path: root/dev-libs
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/skyutils/Manifest2
-rw-r--r--dev-libs/skyutils/files/skyutils-2.9-libs.patch (renamed from dev-libs/skyutils/files/skyutils-2.8-libs.patch)0
-rw-r--r--dev-libs/skyutils/files/without-ssl3.patch14
-rw-r--r--dev-libs/skyutils/skyutils-2.9.ebuild (renamed from dev-libs/skyutils/skyutils-2.8-r5.ebuild)19
4 files changed, 28 insertions, 7 deletions
diff --git a/dev-libs/skyutils/Manifest b/dev-libs/skyutils/Manifest
index c7dbe942..54350da7 100644
--- a/dev-libs/skyutils/Manifest
+++ b/dev-libs/skyutils/Manifest
@@ -1 +1 @@
-DIST skyutils-2.8.tar.gz 357571 SHA256 724c23673f060ec14e452ff8d28a9592993d22328eac5213c780ac674d2a8518 SHA512 65073067f8cd3c81587e6a3b718cd4903004d681f6852afb7de8cb91249fc655afe8234aa780409843649dd0996d877892a97cc5073445ad687c7c2eb6619a01 WHIRLPOOL 1a223fce1fff2f37a0f9cbc20314e19018f4cd7ab50a6b0a12a13ad428442ed9cb58eef586d9e5ca96f7a2d0c76aca3388702a80986c9686ef5ff38d7b3cf64f
+DIST skyutils-2.9.tar.gz 394187 BLAKE2B c460f1de20e06615bfa0571cdc4332a701bcd357277e442f68a63be5047ab377b50f0bbdda7114592f3a479714bcfbdef4e978a1299e0f48a4d655b8707a080e SHA512 c6e2e1c5f96d8edb3e3fc148bd1c670621fc58c93b67194a56e5776af44d205b200dce5dd796f3760c8b58480c3e98a93621f4e87a48e747df1e54c61e473262
diff --git a/dev-libs/skyutils/files/skyutils-2.8-libs.patch b/dev-libs/skyutils/files/skyutils-2.9-libs.patch
index 990b5faf..990b5faf 100644
--- a/dev-libs/skyutils/files/skyutils-2.8-libs.patch
+++ b/dev-libs/skyutils/files/skyutils-2.9-libs.patch
diff --git a/dev-libs/skyutils/files/without-ssl3.patch b/dev-libs/skyutils/files/without-ssl3.patch
new file mode 100644
index 00000000..7cd824a6
--- /dev/null
+++ b/dev-libs/skyutils/files/without-ssl3.patch
@@ -0,0 +1,14 @@
+--- a/src/web.c.orig 2006-04-24 08:44:09 UTC
++++ b/src/web.c
+@@ -123,7 +123,11 @@ SSL_CTX *SU_SSL_InitializeCTX(char *pcEr
+ char errormsg[1024];
+ SSL_CTX *sslctx;
+
++#ifndef OPENSSL_NO_SSL3
+ sslctx = SSL_CTX_new(SSLv3_client_method());
++#else
++ sslctx = SSL_CTX_new(SSLv23_client_method());
++#endif
+ if(sslctx == NULL)
+ {
+ ERR_error_string(ERR_get_error(), errormsg);
diff --git a/dev-libs/skyutils/skyutils-2.8-r5.ebuild b/dev-libs/skyutils/skyutils-2.9.ebuild
index adcce570..4134169d 100644
--- a/dev-libs/skyutils/skyutils-2.8-r5.ebuild
+++ b/dev-libs/skyutils/skyutils-2.9.ebuild
@@ -6,9 +6,12 @@ EAPI="7"
inherit flag-o-matic autotools
+# Don't use Gentoo mirrors
+RESTRICT="mirror"
+
DESCRIPTION="Library of assorted C utility functions"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
-SRC_URI="mirror://gentoo/${P}.tar.gz"
+SRC_URI="https://mirror.amdmi3.ru/distfiles/${P}.tar.gz"
LICENSE="LGPL-2.1+"
SLOT="0"
@@ -16,25 +19,29 @@ KEYWORDS="amd64 ppc ppc64 sparc x86"
IUSE="ssl libressl"
DEPEND="ssl? (
- !libressl? ( dev-libs/openssl:=[sslv3] )
- libressl? ( dev-libs/libressl:=[sslv3] )
- )"
+ !libressl? ( dev-libs/openssl:= )
+ libressl? ( dev-libs/libressl:= )
+ )"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${P}-libs.patch"
"${FILESDIR}/fix-Wformat-security-warnings.patch"
+ "${FILESDIR}/without-ssl3.patch"
)
+S="${WORKDIR}/${PN}"
+
src_prepare() {
default
- sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in \
+ mv "${S}"/configure.in "${S}"/configure.ac
+ sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac \
|| die 'failed to rename AM_CONFIG_HEADER macro'
eautoreconf
}
src_configure() {
- append-flags -D_GNU_SOURCE
+ append-cppflags -D_GNU_SOURCE
econf $(use_enable ssl)
}