From 7958603268e64f668d1841d3998506a4c055fb10 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Fonzo?= Date: Tue, 27 Nov 2018 17:01:16 -0300 Subject: [PATCH] recipes: libs/libetpan: enhance and update it up to commit #b84742d (post 1.9.1 version) --- recipes/libs/libetpan/recipe | 51 ++++++++++++++++++---------------- sources/SOURCELIST.txt | 1 + sources/libetpan-b84742d.tar.lz.sha256 | 1 + 3 files changed, 29 insertions(+), 24 deletions(-) create mode 100644 sources/libetpan-b84742d.tar.lz.sha256 diff --git a/recipes/libs/libetpan/recipe b/recipes/libs/libetpan/recipe index f48349e7..601e4681 100644 --- a/recipes/libs/libetpan/recipe +++ b/recipes/libs/libetpan/recipe @@ -1,6 +1,7 @@ # Build recipe for libetpan. # # Copyright (c) 2018 Markus Tornow, . +# Copyright (c) 2018 Matias Fonzo, . # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,31 +16,29 @@ # limitations under the License. program=libetpan -version=1.8 +version=b84742d release=1 # Set 'outdir' for a nice and well-organized output directory outdir="${outdir}/${arch}/libs" -tarname=${version}.tar.gz +tarname=${program}-${version}.tar.lz # Remote source(s) -fetch=http://github.com/dinhviethoa/libetpan/archive/"$tarname" +fetch=http://rsync.dragora.org/current/sources/$tarname +#fetch=http://github.com/dinhviethoa/libetpan/archive/${version}/$tarname description=" -libEtPan is a mail library is to provide a portable, efficient -middleware for different kinds of mail access +A library that will handle all kind of mailbox access. -The purpose of this mail library is to provide a portable, efficient framework -for different kinds of mail access: IMAP, SMTP, POP and NNTP. +The purpose of this mail library is to provide a portable, efficient +framework for different kinds of mail access: IMAP, SMTP, POP and NNTP. -It provides an API for C language. - -It's the low-level API used by MailCore and MailCore 2. +It provides an API for C language. " -homepage=http://www.etpan.org/ -licence="Copyright (C) 2001 - 2005 - DINH Viet Hoa" +homepage=http://www.etpan.org/libetpan.html +license="3-clause BSD" # Source documentation docs="AUTHORS COPYRIGHT NEWS README.md" @@ -53,24 +52,29 @@ build() cd "$srcdir" - ./autogen.sh + # Set sane permissions + chmod -R u+w,go-w,a+rX-s . + + sh ./autogen.sh + + # TODO: SASL support for build against `--with-sasl'. + ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \ $configure_args \ --libdir=/usr/lib${libSuffix} \ - --infodir=$infodir \ --mandir=$mandir \ - --docdir=$docdir \ + --docdir=$docsdir \ + --enable-static=no \ + --enable-shared=yes \ + --enable-db \ + --enable-ipv6 \ + --with-zlib \ + --with-sasl=no \ + --with-openssl=no --with-gnutls=yes \ --build="$(cc -dumpmachine)" make -j${jobs} V=1 - make -j${jobs} DESTDIR="$destdir" install - - # Compress info documents deleting index file for the package - if test -d "${destdir}/$infodir" - then - rm -f "${destdir}/${infodir}/dir" - lzip -9 "${destdir}/${infodir}"/* - fi + make -j${jobs} DESTDIR="$destdir" install-strip # Compress and link man pages (if needed) if test -d "${destdir}/$mandir" @@ -91,4 +95,3 @@ build() cp -p $docs "${destdir}${docsdir}/" } - diff --git a/sources/SOURCELIST.txt b/sources/SOURCELIST.txt index d0bef40b..57861557 100644 --- a/sources/SOURCELIST.txt +++ b/sources/SOURCELIST.txt @@ -447,3 +447,4 @@ http://prdownloads.sourceforge.net/tcl/tcl8.6.9-src.tar.gz http://prdownloads.sourceforge.net/tcl/tk8.6.9.1-src.tar.gz http://ftp.gnu.org/gnu/nettle/nettle-3.4.tar.gz http://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/gnutls-3.6.4.tar.xz +http://rsync.dragora.org/current/sources/libetpan-b84742d.tar.lz diff --git a/sources/libetpan-b84742d.tar.lz.sha256 b/sources/libetpan-b84742d.tar.lz.sha256 new file mode 100644 index 00000000..691a8d4a --- /dev/null +++ b/sources/libetpan-b84742d.tar.lz.sha256 @@ -0,0 +1 @@ +e516554a69e53f1c20433937e16e42aca9578771acc86131b900e8864269687c libetpan-b84742d.tar.lz -- 2.11.4.GIT