summaryrefslogtreecommitdiff
path: root/fetchmail
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2019-01-17 09:20:29 +0100
committerJuergen Daubert <jue@jue.li>2019-01-17 09:20:29 +0100
commita02f17115bcd01d88b070485e7075cd1e963f7b6 (patch)
tree83e85e92268f0713f14100aca5a6da112fbef781 /fetchmail
parentf73d5b59dc768cb2f3f4dd3cf8faa041d285c624 (diff)
downloadopt-a02f17115bcd01d88b070485e7075cd1e963f7b6.tar.gz
opt-a02f17115bcd01d88b070485e7075cd1e963f7b6.tar.xz
fetchmail: fix build with openssl 1.1.1
Diffstat (limited to 'fetchmail')
-rw-r--r--fetchmail/.signature5
-rw-r--r--fetchmail/Pkgfile8
-rw-r--r--fetchmail/disable-sslv3.patch20
3 files changed, 29 insertions, 4 deletions
diff --git a/fetchmail/.signature b/fetchmail/.signature
index 9fe28703b..552f012b8 100644
--- a/fetchmail/.signature
+++ b/fetchmail/.signature
@@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
-RWSE3ohX2g5d/STKnEB8uQ5Qoop85f0eyj32GFQwgiDl5X9oRMs4/lTtJuEQMLeWpyMlDcwEPGjnNtfnc2Eaz14CgHOA6p28Aw4=
-SHA256 (Pkgfile) = f2b2d7cdc21b0445673b89ce8578ab61aeee64a7a801151e10b0fd5f5a44d548
+RWSE3ohX2g5d/Y0n3vcwSPgXj3R4bxyNKLUuwVUz99sDAYw5pKiCqWqyTpKUqO0IhQXny6vBJm1YiVZp8uYkN6ogmdDtxF9/JAA=
+SHA256 (Pkgfile) = f8f9a42c504f55f24f5600c1518d15d1be9a4578a7b9bc5d97b750ea697da0e6
SHA256 (.footprint) = c52f9b61b3ffbab88aa941546c7721245d6c825056bd4948b84b94966203996d
SHA256 (fetchmail-6.3.26.tar.xz) = 79b4c54cdbaf02c1a9a691d9948fcb1a77a1591a813e904283a8b614b757e850
+SHA256 (disable-sslv3.patch) = b6494164df52de475930c964ba8b293482deb29a817d31af7ff9816a30db8d31
diff --git a/fetchmail/Pkgfile b/fetchmail/Pkgfile
index 4191a467e..eda4748b7 100644
--- a/fetchmail/Pkgfile
+++ b/fetchmail/Pkgfile
@@ -5,12 +5,16 @@
name=fetchmail
version=6.3.26
-release=2
-source=(http://downloads.sourceforge.net/project/$name/branch_6.3/$name-$version.tar.xz)
+release=3
+source=(http://downloads.sourceforge.net/project/$name/branch_6.3/$name-$version.tar.xz
+ disable-sslv3.patch)
build() {
cd $name-$version
+ # fix build with openssl 1.1.1
+ patch -p1 -i $SRC/disable-sslv3.patch
+
# don't build python stuff
sed -i '19,21s/^/#/' Makefile.am
autoreconf -vi
diff --git a/fetchmail/disable-sslv3.patch b/fetchmail/disable-sslv3.patch
new file mode 100644
index 000000000..2edc41e2b
--- /dev/null
+++ b/fetchmail/disable-sslv3.patch
@@ -0,0 +1,20 @@
+diff -u -r fetchmail-6.3.26/socket.c fetchmail-6.3.26-nossl3/socket.c
+--- fetchmail-6.3.26/socket.c 2013-04-23 22:00:45.000000000 +0200
++++ fetchmail-6.3.26-nossl3/socket.c 2016-03-03 18:18:46.688881618 +0100
+@@ -907,14 +907,11 @@
+ _ssl_context[sock] = NULL;
+ if(myproto) {
+ if(!strcasecmp("ssl2",myproto)) {
+-#if HAVE_DECL_SSLV2_CLIENT_METHOD + 0 > 0
+- _ctx[sock] = SSL_CTX_new(SSLv2_client_method());
+-#else
+ report(stderr, GT_("Your operating system does not support SSLv2.\n"));
+ return -1;
+-#endif
+ } else if(!strcasecmp("ssl3",myproto)) {
+- _ctx[sock] = SSL_CTX_new(SSLv3_client_method());
++ report(stderr, GT_("Your operating system does not support SSLv3.\n"));
++ return -1;
+ } else if(!strcasecmp("tls1",myproto)) {
+ _ctx[sock] = SSL_CTX_new(TLSv1_client_method());
+ } else if (!strcasecmp("ssl23",myproto)) {

Generated by cgit