diff options
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/mailutils/Manifest | 2 | ||||
-rw-r--r-- | net-mail/mailutils/files/hdr.at | 36 | ||||
-rw-r--r-- | net-mail/mailutils/files/mailutils-3.4-MH-testsuite.patch | 70 | ||||
-rw-r--r-- | net-mail/mailutils/files/mailutils-3.4-fix-endianness.patch | 122 | ||||
-rw-r--r-- | net-mail/mailutils/files/mailutils-3.4-fno-common.patch | 11 | ||||
-rw-r--r-- | net-mail/mailutils/files/nohdr.at | 26 | ||||
-rw-r--r-- | net-mail/mailutils/files/twomsg.at | 73 | ||||
-rw-r--r-- | net-mail/mailutils/files/weed.at | 29 | ||||
-rw-r--r-- | net-mail/mailutils/mailutils-3.4-r3.ebuild | 140 | ||||
-rw-r--r-- | net-mail/mailutils/mailutils-3.7.ebuild | 140 |
10 files changed, 0 insertions, 649 deletions
diff --git a/net-mail/mailutils/Manifest b/net-mail/mailutils/Manifest index 06add80a10bc..225b3f015bf6 100644 --- a/net-mail/mailutils/Manifest +++ b/net-mail/mailutils/Manifest @@ -1,4 +1,2 @@ -DIST mailutils-3.4.tar.xz 2619672 BLAKE2B 3a49c319a7171b2659477e6892ae222a342243e84ed2ee93e6d77353e1871d57d101a3a6ee3d2442709adbfb090e4931e134369661e8e8aa407061c1eccdf862 SHA512 548d97a4a036ef0ef5a429c82ffa43dd377b210b4c4d3844e7e5dded0f963060e3733b7766821c06ccf4dc1135002608658bcd6420e75b4ca1f4f17cfc8e2573 -DIST mailutils-3.7.tar.xz 2846864 BLAKE2B d407d370a4823972c060ea6c6a6e16eefe46598fee8302159f9d44fe150ace32b6915e7e3d4ddaca63ed5d5a5cffce48514f7f6297413a97692eb609a295622d SHA512 aa93ee1cde76392808f492dae6c69625ab124a2c31a296449ba217fc26f292871b4d04f8720bf20377177eab33c01cbfe195d6ac3674c35e1db53157a6916a4d DIST mailutils-3.8.tar.xz 2998596 BLAKE2B 4d09c7b5113129b3d2f3b113808d4460d025d4f0eec00dd1209a95f23abe97683b5d50cfe5229f1e5db48ddd6ca66c73fa6b0c1bfe03b324dbf40b6a26ff76f5 SHA512 4d081ae492beb0f9c1945541d63b52f155f11ca172abaedbe465955ac11097037f440e1aaed8d512cd3aab65f7792b755a7e4b9428a90ad7a833de87b1c4f1f9 DIST mailutils-3.9.tar.xz 3075268 BLAKE2B 43ee5bf297951b3c894b467a46d3983dac3e115c02169da0ee2ccbc23f8b71d7439083093f4b0710f19c78f108df99dee3310f5f6adc5b7c1792a0a7be33aab6 SHA512 1eef9bebeeafbf974e54b87705444ee02b663a86e22442a9ec5db16ade38e6e9a3079ee8a8267393e97d6e9e477917617b2e1d57d3287ab19e4df73b66e5a8d4 diff --git a/net-mail/mailutils/files/hdr.at b/net-mail/mailutils/files/hdr.at deleted file mode 100644 index 7c9d5e85c693..000000000000 --- a/net-mail/mailutils/files/hdr.at +++ /dev/null @@ -1,36 +0,0 @@ -# This file is part of GNU Mailutils. -*- Autotest -*- -# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc. -# -# GNU Mailutils is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 3, or (at -# your option) any later version. -# -# GNU Mailutils is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -READMSGTEST([readmsg -h],[hdr], -[readmsg -h SOMETHING], -[0], -[From bar@dontmailme.org Fri Dec 28 23:28:09 2001 -Received: (from bar@dontmailme.org) - by dontmailme.org id fERKR9N16790 - for foobar@nonexistent.net; Fri, 28 Dec 2001 22:18:08 +0200 -Date: Fri, 28 Dec 2001 23:28:08 +0200 -From: Bar <bar@dontmailme.org> -To: Foo Bar <foobar@nonexistent.net> -Message-Id: <200112232808.fERKR9N16790@dontmailme.org> -Subject: Re: Jabberwocky - -It seems very pretty, but it's *rather* hard to understand!' -Somehow it seems to fill my head with ideas -- only I don't -exactly know what they are! However, SOMEBODY killed SOMETHING: -that's clear, at any rate... - - -]) diff --git a/net-mail/mailutils/files/mailutils-3.4-MH-testsuite.patch b/net-mail/mailutils/files/mailutils-3.4-MH-testsuite.patch deleted file mode 100644 index 919b6619e5f1..000000000000 --- a/net-mail/mailutils/files/mailutils-3.4-MH-testsuite.patch +++ /dev/null @@ -1,70 +0,0 @@ -From 696754b9332922a00e977903d6df3def6ddb3fb6 Mon Sep 17 00:00:00 2001 -From: Sergey Poznyakoff <gray@gnu.org> -Date: Fri, 10 Nov 2017 21:28:17 +0200 -Subject: Minor fix in MH testsuite - -Running fmtcheck without .mh_profile triggers mh_install, which -surprises the testsuite with unexpected output "I'm going to -create the standard MH path for you." Defining the MH envar to -an existing file name suppresses it. - -* mh/tests/fmtcnd00.at: Always define MH prior to starting fmtcheck. -* mh/tests/fmtcomp.at: Likewise. -* mh/tests/fmtfunc.at: Likewise. ---- - mh/tests/fmtcnd00.at | 2 +- - mh/tests/fmtcomp.at | 4 ++-- - mh/tests/fmtfunc.at | 2 +- - 3 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/mh/tests/fmtcnd00.at b/mh/tests/fmtcnd00.at -index 507e8e5..f674d41 100644 ---- a/mh/tests/fmtcnd00.at -+++ b/mh/tests/fmtcnd00.at -@@ -28,7 +28,7 @@ m4_pushdef([FMTCOND],[ - AT_SETUP([$1]) - AT_KEYWORDS([format fmtcond fmtcnd00]) - AT_DATA([msg],[$2]) --AT_CHECK([fmtcheck -format 'FORMAT' msg -+AT_CHECK([MH=/dev/null fmtcheck -format 'FORMAT' msg - ], - [0], - [$3]) -diff --git a/mh/tests/fmtcomp.at b/mh/tests/fmtcomp.at -index 72cd823..615470a 100644 ---- a/mh/tests/fmtcomp.at -+++ b/mh/tests/fmtcomp.at -@@ -22,7 +22,7 @@ dnl - m4_pushdef([FMTCOMP],[ - AT_SETUP([$1]) - AT_KEYWORDS([format fmtcomp]) --AT_CHECK([fmtcheck -disass -dump -format '$2' -+AT_CHECK([MH=/dev/null fmtcheck -disass -dump -format '$2' - ], - [m4_if([$4],[],[0],[1])], - [$3],[$4]) -@@ -296,7 +296,7 @@ m4_pushdef([FMTCOMP],[ - AT_SETUP([$1]) - AT_KEYWORDS([format fmtdiag]) - AT_DATA([input.fmt],[$2]) --AT_CHECK([fmtcheck -form input.fmt -+AT_CHECK([MH=/dev/null fmtcheck -form input.fmt - ], - [1], - [], -diff --git a/mh/tests/fmtfunc.at b/mh/tests/fmtfunc.at -index 844a777..0829d45 100644 ---- a/mh/tests/fmtfunc.at -+++ b/mh/tests/fmtfunc.at -@@ -212,7 +212,7 @@ AT_DATA([input.fmt],[%(getenv MH_TEST) - AT_DATA([message],[ - - ]) --AT_CHECK([MH_TEST=defined fmtcheck -form input.fmt -width 80 message -+AT_CHECK([MH=/dev/null MH_TEST=defined fmtcheck -form input.fmt -width 80 message - ], - [0], - [defined --- -cgit v1.0-41-gc330 - diff --git a/net-mail/mailutils/files/mailutils-3.4-fix-endianness.patch b/net-mail/mailutils/files/mailutils-3.4-fix-endianness.patch deleted file mode 100644 index 0e52fae20c1b..000000000000 --- a/net-mail/mailutils/files/mailutils-3.4-fix-endianness.patch +++ /dev/null @@ -1,122 +0,0 @@ -From feecde8c46cdb597a76df5e6ef02b854843a8a5c Mon Sep 17 00:00:00 2001 -From: Sergey Poznyakoff <gray@gnu.org> -Date: Thu, 21 Jun 2018 09:46:43 +0300 -Subject: Fix endianness bug in string to IP conversion - -* libmailutils/cidr/fromsa.c (_mu_inaddr_to_bytes) -(_mu_sockaddr_to_bytes): Fix improper endianness conversion. -* libmailutils/cidr/tosa.c (mu_cidr_to_sockaddr): Simplify conversion. ---- - libmailutils/cidr/fromsa.c | 45 ++++++++++++++++++++------------------------- - libmailutils/cidr/tosa.c | 9 ++------- - 2 files changed, 22 insertions(+), 32 deletions(-) - -diff --git a/libmailutils/cidr/fromsa.c b/libmailutils/cidr/fromsa.c -index f57aadc..39d24fd 100644 ---- a/libmailutils/cidr/fromsa.c -+++ b/libmailutils/cidr/fromsa.c -@@ -29,55 +29,50 @@ - #include <mailutils/cidr.h> - #include <mailutils/errno.h> - --static void --uint32_to_bytes (unsigned char *bytes, uint32_t u) --{ -- int i; -- -- for (i = 0; i < 4; i++) -- { -- bytes[i] = u & 0xff; -- u >>= 8; -- } --} -- - int - _mu_inaddr_to_bytes (int af, void *buf, unsigned char *bytes) - { -- uint32_t u; -+ size_t len; - - switch (af) - { - case AF_INET: -- memcpy (&u, buf, sizeof u); -- uint32_to_bytes (bytes, u); -- return 4; -- -+ len = 4; -+ break; -+ - #ifdef MAILUTILS_IPV6 - case AF_INET6: -- memcpy (bytes, buf, 16); -- return 16; -+ len = 16; -+ break; - #endif -+ -+ default: -+ len = 0; - } -- return 0; -+ memcpy (bytes, buf, len); -+ return len; - } - - int - _mu_sockaddr_to_bytes (unsigned char *bytes, struct sockaddr const *sa) - { -+ void *buf; - switch (sa->sa_family) - { - case AF_INET: -- uint32_to_bytes (bytes, ((struct sockaddr_in*)sa)->sin_addr.s_addr); -- return 4; -+ buf = &(((struct sockaddr_in*)sa)->sin_addr.s_addr); -+ break; - - #ifdef MAILUTILS_IPV6 - case AF_INET6: -- memcpy (bytes, &((struct sockaddr_in6*)sa)->sin6_addr, 16); -- return 16; -+ buf = &(((struct sockaddr_in6*)sa)->sin6_addr); -+ break; - #endif -+ -+ default: -+ return 0; - } -- return 0; -+ return _mu_inaddr_to_bytes (sa->sa_family, buf, bytes); - } - - int -diff --git a/libmailutils/cidr/tosa.c b/libmailutils/cidr/tosa.c -index 33715e1..2b372b1 100644 ---- a/libmailutils/cidr/tosa.c -+++ b/libmailutils/cidr/tosa.c -@@ -42,19 +42,14 @@ mu_cidr_to_sockaddr (struct mu_cidr *cidr, struct sockaddr **psa) - } addr; - struct sockaddr *sa; - int socklen; -- int i; -- -+ - memset (&addr, 0, sizeof (addr)); - addr.sa.sa_family = cidr->family; - switch (cidr->family) - { - case AF_INET: - socklen = sizeof (addr.s_in); -- for (i = 0; i < cidr->len; i++) -- { -- addr.s_in.sin_addr.s_addr <<= 8; -- addr.s_in.sin_addr.s_addr |= cidr->address[i]; -- } -+ memcpy (&addr.s_in.sin_addr.s_addr, cidr->address, 4); - break; - - #ifdef MAILUTILS_IPV6 --- -cgit v1.0-41-gc330 - diff --git a/net-mail/mailutils/files/mailutils-3.4-fno-common.patch b/net-mail/mailutils/files/mailutils-3.4-fno-common.patch deleted file mode 100644 index d981ae6891a8..000000000000 --- a/net-mail/mailutils/files/mailutils-3.4-fno-common.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/lib/tcpwrap.h -+++ b/lib/tcpwrap.h -@@ -18,7 +18,7 @@ - #include <mailutils/types.h> - - extern int mu_tcp_wrapper_enable; --const char *mu_tcp_wrapper_daemon; -+extern const char *mu_tcp_wrapper_daemon; - extern int mu_tcpwrapper_access (int fd); - extern void mu_tcpwrapper_cfg_init (void); - extern int mu_tcp_wrapper_prefork (int fd, diff --git a/net-mail/mailutils/files/nohdr.at b/net-mail/mailutils/files/nohdr.at deleted file mode 100644 index 4caf85570f1e..000000000000 --- a/net-mail/mailutils/files/nohdr.at +++ /dev/null @@ -1,26 +0,0 @@ -# This file is part of GNU Mailutils. -*- Autotest -*- -# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc. -# -# GNU Mailutils is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 3, or (at -# your option) any later version. -# -# GNU Mailutils is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -READMSGTEST([readmsg -n],[nohdr], -[readmsg -n SOMETHING], -[0], -[It seems very pretty, but it's *rather* hard to understand!' -Somehow it seems to fill my head with ideas -- only I don't -exactly know what they are! However, SOMEBODY killed SOMETHING: -that's clear, at any rate... - - -]) diff --git a/net-mail/mailutils/files/twomsg.at b/net-mail/mailutils/files/twomsg.at deleted file mode 100644 index 20af66173d6a..000000000000 --- a/net-mail/mailutils/files/twomsg.at +++ /dev/null @@ -1,73 +0,0 @@ -# This file is part of GNU Mailutils. -*- Autotest -*- -# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc. -# -# GNU Mailutils is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 3, or (at -# your option) any later version. -# -# GNU Mailutils is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -READMSGTEST([readmsg 1 2],[twomsg], -[1 2], -[0], -[Date: Fri, 28 Dec 2001 22:18:08 +0200 -From: Foo Bar <foobar@nonexistent.net> -To: Bar <bar@dontmailme.org> -Subject: Jabberwocky - -`Twas brillig, and the slithy toves -Did gyre and gimble in the wabe; -All mimsy were the borogoves, -And the mome raths outgrabe. - -`Beware the Jabberwock, my son! -The jaws that bite, the claws that catch! -Beware the Jujub bird, and shun -The frumious Bandersnatch!' - -He took his vorpal sword in hand: -Long time the manxome foe he sought -- -So rested he by the Tumtum gree, -And stood awhile in thought. - -And as in uffish thought he stood, -The Jabberwock, with eyes of flame, -Came whiffling through the tulgey wook, -And burbled as it came! - -One, two! One, two! And through and through -The vorpal blade went snicker-snack! -He left it dead, and with its head -He went galumphing back. - -`And has thou slain the Jabberwock? -Come to my arms, my beamish boy! -O frabjous day! Calloh! Callay! -He chortled in his joy. - -`Twas brillig, and the slithy toves -Did gyre and gimble in the wabe; -All mimsy were the borogoves, -And the mome raths outgrabe. - - -Date: Fri, 28 Dec 2001 23:28:08 +0200 -From: Bar <bar@dontmailme.org> -To: Foo Bar <foobar@nonexistent.net> -Subject: Re: Jabberwocky - -It seems very pretty, but it's *rather* hard to understand!' -Somehow it seems to fill my head with ideas -- only I don't -exactly know what they are! However, SOMEBODY killed SOMETHING: -that's clear, at any rate... - - -]) - diff --git a/net-mail/mailutils/files/weed.at b/net-mail/mailutils/files/weed.at deleted file mode 100644 index ec82c6ce23b5..000000000000 --- a/net-mail/mailutils/files/weed.at +++ /dev/null @@ -1,29 +0,0 @@ -# This file is part of GNU Mailutils. -*- Autotest -*- -# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc. -# -# GNU Mailutils is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 3, or (at -# your option) any later version. -# -# GNU Mailutils is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -READMSGTEST([readmsg -w],[weed], -[-w date,subject SOMETHING], -[0], -[Date: Fri, 28 Dec 2001 23:28:08 +0200 -Subject: Re: Jabberwocky - -It seems very pretty, but it's *rather* hard to understand!' -Somehow it seems to fill my head with ideas -- only I don't -exactly know what they are! However, SOMEBODY killed SOMETHING: -that's clear, at any rate... - - -]) diff --git a/net-mail/mailutils/mailutils-3.4-r3.ebuild b/net-mail/mailutils/mailutils-3.4-r3.ebuild deleted file mode 100644 index 67cffc2dc93e..000000000000 --- a/net-mail/mailutils/mailutils-3.4-r3.ebuild +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -PYTHON_COMPAT=( python2_7 ) - -inherit autotools elisp-common eutils flag-o-matic python-single-r1 toolchain-funcs - -DESCRIPTION="A useful collection of mail servers, clients, and filters" -HOMEPAGE="https://www.gnu.org/software/mailutils/mailutils.html" -SRC_URI="mirror://gnu/mailutils/${P}.tar.xz" - -LICENSE="GPL-2 LGPL-2.1" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 ~sparc x86 ~ppc-macos ~x64-macos ~x86-macos" -IUSE="berkdb bidi +clients emacs gdbm sasl guile ipv6 kerberos kyotocabinet \ - ldap mysql nls pam postgres python servers split-usr ssl static-libs +threads tcpd \ - tokyocabinet" - -RDEPEND="!mail-client/nmh - !mail-filter/libsieve - !mail-client/mailx - !mail-client/nail - sys-libs/ncurses:= - sys-libs/readline:= - dev-libs/libltdl:0 - virtual/mta - berkdb? ( sys-libs/db:= ) - bidi? ( dev-libs/fribidi ) - emacs? ( >=app-editors/emacs-23.1:* ) - gdbm? ( sys-libs/gdbm ) - guile? ( dev-scheme/guile:12/22 ) - kerberos? ( virtual/krb5 ) - kyotocabinet? ( dev-db/kyotocabinet ) - ldap? ( net-nds/openldap ) - mysql? ( virtual/mysql ) - nls? ( sys-devel/gettext ) - pam? ( sys-libs/pam ) - postgres? ( dev-db/postgresql:= ) - python? ( ${PYTHON_DEPS} ) - sasl? ( virtual/gsasl ) - ssl? ( net-libs/gnutls:= ) - tcpd? ( sys-apps/tcp-wrappers ) - tokyocabinet? ( dev-db/tokyocabinet )" - -DEPEND="${RDEPEND} - virtual/pkgconfig" - -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) - servers? ( tcpd )" - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_prepare() { - # Disable bytecompilation of Python modules. - echo "#!/bin/sh" > build-aux/py-compile - eapply \ - "${FILESDIR}"/${P}-MH-testsuite.patch \ - "${FILESDIR}"/${P}-fix-endianness.patch \ - "${FILESDIR}"/${PN}-3.4-fno-common.patch - # add missing tests so that make check doesn't fail - cp "${FILESDIR}"/{hdr,nohdr,twomsg,weed}.at "${S}"/readmsg/tests || die - if use mysql; then - sed -i -e /^INCLUDES/"s:$:$(mysql_config --include):" \ - sql/Makefile.am || die - fi - eapply_user - eautoreconf -} - -src_configure() { - append-flags -fno-strict-aliasing - - # maildir is the Gentoo default - econf MU_DEFAULT_SCHEME=maildir \ - CURSES_LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)" \ - $(use_with berkdb berkeley-db) \ - $(use_with bidi fribidi) \ - $(use_enable ipv6) \ - $(use_with gdbm) \ - $(use_with sasl gsasl) \ - $(use_with guile) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - $(use_with mysql) \ - $(use_enable nls) \ - $(use_enable pam) \ - $(use_with postgres) \ - $(use_enable python) \ - $(use_with ssl gnutls) \ - $(use_enable static-libs static) \ - $(use_enable threads pthread) \ - $(use_with tokyocabinet) \ - $(use_with kyotocabinet) \ - $(use_with tcpd tcp-wrappers) \ - $(use_enable servers build-servers) \ - $(use_enable clients build-clients) \ - EMACS=$(usex emacs emacs no) \ - --with-lispdir="${EPREFIX}${SITELISP}/${PN}" \ - --with-mail-spool=/var/spool/mail \ - --with-readline \ - --enable-sendmail \ - --disable-debug \ - --disable-rpath -} - -src_install() { - default - - insinto /etc - # bug 613112 - newins "${FILESDIR}/mailutils.rc" mailutils.conf - keepdir /etc/mailutils.d/ - insinto /etc/mailutils.d - doins "${FILESDIR}/mail" - - if use python; then - python_optimize - if use static-libs; then - rm -r "${D}$(python_get_sitedir)/mailutils"/*.{a,la} || die - fi - fi - - if use servers; then - newinitd "${FILESDIR}"/imap4d.initd imap4d - newinitd "${FILESDIR}"/pop3d.initd pop3d - newinitd "${FILESDIR}"/comsatd.initd comsatd - fi - - # compatibility link - if use clients && use split-usr; then - dosym ../usr/bin/mail /bin/mail - fi - - if ! use static-libs; then - find "${D}" -name "*.la" -delete || die - fi -} diff --git a/net-mail/mailutils/mailutils-3.7.ebuild b/net-mail/mailutils/mailutils-3.7.ebuild deleted file mode 100644 index b5489a43e492..000000000000 --- a/net-mail/mailutils/mailutils-3.7.ebuild +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) - -inherit autotools elisp-common eutils flag-o-matic python-single-r1 toolchain-funcs - -DESCRIPTION="A useful collection of mail servers, clients, and filters" -HOMEPAGE="https://www.gnu.org/software/mailutils/mailutils.html" -SRC_URI="mirror://gnu/mailutils/${P}.tar.xz" - -LICENSE="GPL-2 LGPL-2.1" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos" -IUSE="berkdb bidi +clients emacs gdbm sasl guile ipv6 kerberos kyotocabinet \ - ldap mysql nls pam postgres python servers split-usr ssl static-libs +threads tcpd \ - tokyocabinet" - -RDEPEND="!mail-client/nmh - !mail-filter/libsieve - !mail-client/mailx - !mail-client/nail - sys-libs/ncurses:= - sys-libs/readline:= - dev-libs/libltdl:0 - virtual/mta - berkdb? ( sys-libs/db:= ) - bidi? ( dev-libs/fribidi ) - emacs? ( >=app-editors/emacs-23.1:* ) - gdbm? ( sys-libs/gdbm ) - guile? ( dev-scheme/guile:12/2.2-1 ) - kerberos? ( virtual/krb5 ) - kyotocabinet? ( dev-db/kyotocabinet ) - ldap? ( net-nds/openldap ) - mysql? ( dev-db/mysql-connector-c ) - nls? ( sys-devel/gettext ) - pam? ( sys-libs/pam ) - postgres? ( dev-db/postgresql:= ) - python? ( ${PYTHON_DEPS} ) - sasl? ( virtual/gsasl ) - servers? ( virtual/libiconv dev-libs/libunistring ) - ssl? ( net-libs/gnutls:= ) - tcpd? ( sys-apps/tcp-wrappers ) - tokyocabinet? ( dev-db/tokyocabinet )" - -DEPEND="${RDEPEND} - virtual/pkgconfig" - -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) - servers? ( tcpd ldap )" - -DOCS=( ABOUT-NLS AUTHORS COPYING COPYING.LESSER ChangeLog INSTALL NEWS README THANKS TODO ) -PATCHES=( - "${FILESDIR}"/${PN}-3.5-add-include.patch - "${FILESDIR}"/${PN}-3.6-underlinking.patch - "${FILESDIR}"/${PN}-3.8-fno-common.patch -) - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_prepare() { - default - if use mysql; then - sed -i -e /^INCLUDES/"s:$:$(mysql_config --include):" \ - sql/Makefile.am || die - fi - eautoreconf -} - -src_configure() { - append-flags -fno-strict-aliasing - - # maildir is the Gentoo default - econf MU_DEFAULT_SCHEME=maildir \ - CURSES_LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)" \ - $(use_with berkdb berkeley-db) \ - $(use_with bidi fribidi) \ - $(use_enable ipv6) \ - $(use_with gdbm) \ - $(use_with sasl gsasl) \ - $(use_with guile) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - $(use_with mysql) \ - $(use_enable nls) \ - $(use_enable pam) \ - $(use_with postgres) \ - $(use_enable python) \ - $(use_with ssl gnutls) \ - $(use_enable static-libs static) \ - $(use_enable threads pthread) \ - $(use_with tokyocabinet) \ - $(use_with kyotocabinet) \ - $(use_with tcpd tcp-wrappers) \ - $(use_enable servers build-servers) \ - $(use_with servers unistring ) \ - $(use_enable clients build-clients) \ - EMACS=$(usex emacs emacs no) \ - --with-lispdir="${EPREFIX}${SITELISP}/${PN}" \ - --with-mail-spool=/var/spool/mail \ - --with-readline \ - --enable-sendmail \ - --disable-debug -} - -src_install() { - default - - insinto /etc - # bug 613112 - newins "${FILESDIR}/mailutils.rc" mailutils.conf - keepdir /etc/mailutils.d/ - insinto /etc/mailutils.d - doins "${FILESDIR}/mail" - - if use python; then - python_optimize - if use static-libs; then - rm -r "${D}$(python_get_sitedir)/mailutils"/*.{a,la} || die - fi - fi - - if use servers; then - newinitd "${FILESDIR}"/imap4d.initd imap4d - newinitd "${FILESDIR}"/pop3d.initd pop3d - newinitd "${FILESDIR}"/comsatd.initd comsatd - fi - - # compatibility link - if use clients && use split-usr; then - dosym ../usr/bin/mail /bin/mail - fi - - if ! use static-libs; then - find "${D}" -name "*.la" -delete || die - fi -} |