[arch-commits] Commit in libetpan/repos/extra-x86_64 (PKGBUILD PKGBUILD)
Andreas Radke
andyrtr at archlinux.org
Mon Jan 11 16:58:42 UTC 2021
Date: Monday, January 11, 2021 @ 16:58:41
Author: andyrtr
Revision: 406106
archrelease: copy trunk to extra-x86_64
Added:
libetpan/repos/extra-x86_64/PKGBUILD
(from rev 406105, libetpan/trunk/PKGBUILD)
Deleted:
libetpan/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 109 +++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 64 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-11 16:58:33 UTC (rev 406105)
+++ PKGBUILD 2021-01-11 16:58:41 UTC (rev 406106)
@@ -1,45 +0,0 @@
-# Maintainer: Andreas Radke <andyrtr at archlinux.org>
-
-pkgname=libetpan
-pkgver=1.9.4
-pkgrel=2
-pkgdesc="A portable middleware for email access"
-arch=('x86_64')
-url="https://www.etpan.org/libetpan.html"
-license=("custom:etpan")
-depends=('libgcrypt' 'gnutls' 'libsasl' 'zlib')
-makedepends=('expat')
-source=($pkgname-$pkgver.tar.gz::https://github.com/dinhviethoa/${pkgname}/archive/${pkgver}.tar.gz)
-sha256sums=('82ec8ea11d239c9967dbd1717cac09c8330a558e025b3e4dc6a7594e80d13bb1')
-
-prepare() {
- cd "${pkgname}"-${pkgver}
- libtoolize --force --copy
- aclocal -I m4
- autoheader
- autoconf
- automake --add-missing --foreign --force --copy
-}
-
-build() {
- cd "${pkgname}"-${pkgver}
- ./configure --prefix=/usr \
- --disable-static \
- --disable-db \
- --with-openssl=no \
- --with-gnutls=yes
- make
-}
-
-check() {
- cd "${pkgname}"-${pkgver}
- make check
- cd tests
- make imap-sample
-}
-
-package() {
- cd "${pkgname}"-${pkgver}
- make DESTDIR="${pkgdir}" install
- install -Dm644 COPYRIGHT "${pkgdir}"/usr/share/licenses/$pkgname/license.txt
-}
Copied: libetpan/repos/extra-x86_64/PKGBUILD (from rev 406105, libetpan/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-01-11 16:58:41 UTC (rev 406106)
@@ -0,0 +1,64 @@
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+
+pkgname=libetpan
+pkgver=1.9.4
+pkgrel=3
+pkgdesc="A portable middleware for email access"
+arch=('x86_64')
+url="https://www.etpan.org/libetpan.html"
+license=("custom:etpan")
+depends=('libgcrypt' 'gnutls' 'libsasl' 'zlib')
+makedepends=('expat')
+provides=('libetpan.so')
+source=($pkgname-$pkgver.tar.gz::https://github.com/dinhviethoa/${pkgname}/archive/${pkgver}.tar.gz
+ CVE-2020-15953_1.diff::https://github.com/dinhvh/libetpan/commit/1002a0121a8f5a9aee25357769807f2c519fa50b.patch
+ CVE-2020-15953_2.diff::https://github.com/dinhvh/libetpan/commit/298460a2adaabd2f28f417a0f106cb3b68d27df9.patch
+ avoid_user_LDFLAGS_into_Libs.diff::https://github.com/dinhvh/libetpan/commit/8e904aa1c92bd0993123dd46d5a10a58f0516721.patch
+)
+sha256sums=('82ec8ea11d239c9967dbd1717cac09c8330a558e025b3e4dc6a7594e80d13bb1'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+)
+
+prepare() {
+ cd "${pkgname}"-${pkgver}
+
+ # CVE-2020-15953 - https://bugs.archlinux.org/task/69284
+ patch -Np1 -i ../CVE-2020-15953_1.diff
+ patch -Np1 -i ../CVE-2020-15953_2.diff
+
+ # Don't put user LDFLAGS into Libs
+ patch -Np1 -i ../avoid_user_LDFLAGS_into_Libs.diff
+
+# libtoolize --force --copy
+# aclocal -I m4
+# autoheader
+# autoconf
+# automake --add-missing --foreign --force --copy
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+ cd "${pkgname}"-${pkgver}
+ ./configure --prefix=/usr \
+ --disable-static \
+ --disable-db \
+ --with-openssl=no \
+ --with-gnutls=yes
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+check() {
+ cd "${pkgname}"-${pkgver}
+ make check
+ cd tests
+ make imap-sample
+}
+
+package() {
+ cd "${pkgname}"-${pkgver}
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 COPYRIGHT "${pkgdir}"/usr/share/licenses/$pkgname/license.txt
+}
More information about the arch-commits
mailing list