From 6aadea46e902fac3c8ed97a1a72ae8cba8c24c21 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Mon, 28 Oct 2019 22:53:54 -0400 Subject: [PATCH] add alpine-passfile template --- .../alpine-passfile/patches/418e8bc5.patch | 22 +++++++++++ .../alpine-passfile/patches/libressl.patch | 13 +++++++ srcpkgs/alpine-passfile/template | 37 +++++++++++++++++++ srcpkgs/alpine-passfile/update | 2 + 4 files changed, 74 insertions(+) create mode 100644 srcpkgs/alpine-passfile/patches/418e8bc5.patch create mode 100644 srcpkgs/alpine-passfile/patches/libressl.patch create mode 100644 srcpkgs/alpine-passfile/template create mode 100644 srcpkgs/alpine-passfile/update diff --git a/srcpkgs/alpine-passfile/patches/418e8bc5.patch b/srcpkgs/alpine-passfile/patches/418e8bc5.patch new file mode 100644 index 0000000..7cc8dc7 --- /dev/null +++ b/srcpkgs/alpine-passfile/patches/418e8bc5.patch @@ -0,0 +1,22 @@ +From 418e8bc5789d9ef223f043848619b6a648748dcc Mon Sep 17 00:00:00 2001 +From: Eduardo Chappa +Date: Thu, 22 Aug 2019 19:11:53 -0600 +Subject: [PATCH 1/1] * Ignore extra text in challenge from smtp server + during authentication. + +--- + imap/src/c-client/smtp.c | 1 + + pith/pine.hlp | 2 +- + 2 files changed, 2 insertions(+), 1 deletion(-) + +--- imap/src/c-client/smtp.c ++++ imap/src/c-client/smtp.c +@@ -363,6 +363,7 @@ void *smtp_challenge (void *s,unsigned long *len) + sprintf (tmp,"SMTP SERVER BUG (invalid challenge, continuing): %.80s",stream->reply+4); + mm_log (tmp,ERROR); + ret = cpystr(""); /* This is silly: fake a reply, it will be ignored */ ++ *len = 0L; + } + return ret; + } + diff --git a/srcpkgs/alpine-passfile/patches/libressl.patch b/srcpkgs/alpine-passfile/patches/libressl.patch new file mode 100644 index 0000000..65c6857 --- /dev/null +++ b/srcpkgs/alpine-passfile/patches/libressl.patch @@ -0,0 +1,13 @@ +--- imap/src/osdep/unix/ssl_unix.c.orig ++++ imap/src/osdep/unix/ssl_unix.c +@@ -249,9 +249,7 @@ + return NIL; /* out of range? bail out */ + + #ifndef OPENSSL_1_1_0 +- if(client_request == SSL3_VERSION) +- return SSLv3_client_method(); +- else if(client_request == TLS1_VERSION) ++ if(client_request == TLS1_VERSION) + return TLSv1_client_method(); + else if(client_request == TLS1_1_VERSION) + return TLSv1_1_client_method(); diff --git a/srcpkgs/alpine-passfile/template b/srcpkgs/alpine-passfile/template new file mode 100644 index 0000000..d91f478 --- /dev/null +++ b/srcpkgs/alpine-passfile/template @@ -0,0 +1,37 @@ +# Template file for 'alpine-passfile' +_pkgname=alpine +pkgname=alpine-passfile +version=2.21.99999 +revision=2 +_githash=abeb2c25935ef8c75f1e5deef0f81276754dc975 +_gitshort="${_githash:0:7}" +wrksrc="${_pkgname}-${_gitshort}" +build_style=gnu-configure +configure_args="--with-passfile=.pine-passfile --without-tcl --disable-shared + --with-ssl-dir=${XBPS_CROSS_BASE}/usr alpine_SSLPROVIDER=libressl + --with-system-pinerc=/etc/${_pkgname}.d/pine.conf + --with-system-fixed-pinerc=/etc/${_pkgname}.d/pine.conf.fixed" +conflicts=alpine +hostmakedepends="hunspell" +makedepends="pam-devel ncurses-devel gettext-devel libldap-devel mit-krb5-devel" +short_desc="Apache-licensed PINE mail user agent (with Chappa patches)" +maintainer="Leah Neukirchen " +license="Apache-2.0" +homepage="http://repo.or.cz/alpine.git" +distfiles="http://repo.or.cz/alpine.git/snapshot/${_githash}.tar.gz" +checksum=983f04e1c5f1beba767877303c682d3c995e0cd93ad6888f2d9933ef4236c25f + +post_extract() { + sed -i -e '/run test program/s/^/: /' \ + -e 's/linux-gnu/linux-/g' ${wrksrc}/configure +} + +do_build() { + make -C pith help_c_gen help_h_gen \ + CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" CPPFLAGS= LDFLAGS="$BUILD_LDFLAGS" + make ${makejobs} all CC="$CC" +} + +post_install() { + vlicense NOTICE +} diff --git a/srcpkgs/alpine-passfile/update b/srcpkgs/alpine-passfile/update new file mode 100644 index 0000000..6a01206 --- /dev/null +++ b/srcpkgs/alpine-passfile/update @@ -0,0 +1,2 @@ +site='http://repo.or.cz/alpine.git/blob_plain/master:/VERSION' +pattern='[\d.]+'