From c1de5231980e19e0616edcbb4ff687c8b504b87e Mon Sep 17 00:00:00 2001 From: Cristian Othón Martínez Vera Date: Wed, 8 Feb 2023 17:15:52 -0600 Subject: mail-filter/maildrop-3.1.0: fix library deps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Maildrop depends on PCRE2 since version 3.0.4. Since last version (3.1.0), it also depends on libidn2 Signed-off-by: Cristian Othón Martínez Vera Closes: https://github.com/gentoo/gentoo/pull/29501 Signed-off-by: Alfredo Tupone --- mail-filter/maildrop/maildrop-3.1.0-r1.ebuild | 138 ++++++++++++++++++++++++++ mail-filter/maildrop/maildrop-3.1.0.ebuild | 138 -------------------------- 2 files changed, 138 insertions(+), 138 deletions(-) create mode 100644 mail-filter/maildrop/maildrop-3.1.0-r1.ebuild delete mode 100644 mail-filter/maildrop/maildrop-3.1.0.ebuild diff --git a/mail-filter/maildrop/maildrop-3.1.0-r1.ebuild b/mail-filter/maildrop/maildrop-3.1.0-r1.ebuild new file mode 100644 index 000000000000..68fa7df9873d --- /dev/null +++ b/mail-filter/maildrop/maildrop-3.1.0-r1.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit flag-o-matic autotools + +DESCRIPTION="Mail delivery agent/filter" +[[ -z ${PV/?.?/} ]] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +[[ -z ${PV/?.?.?/} ]] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +[[ -z ${SRC_URI} ]] && SRC_URI="https://www.courier-mta.org/beta/${PN}/${P%%_pre}.tar.bz2" +HOMEPAGE="https://www.courier-mta.org/maildrop/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="berkdb debug dovecot gdbm ldap mysql postgres static-libs authlib +tools trashquota" + +CDEPEND="!mail-mta/courier + net-mail/mailbase + dev-libs/libpcre2 + net-dns/libidn2:= + >=net-libs/courier-unicode-2.0:= + gdbm? ( >=sys-libs/gdbm-1.8.0:= ) + mysql? ( net-libs/courier-authlib ) + postgres? ( net-libs/courier-authlib ) + ldap? ( net-libs/courier-authlib ) + authlib? ( net-libs/courier-authlib ) + !gdbm? ( + berkdb? ( >=sys-libs/db-3:= ) + ) + gdbm? ( net-mail/courier-imap[gdbm?,berkdb?] ) + berkdb? ( net-mail/courier-imap[gdbm?,berkdb?] ) + tools? ( + !mail-mta/netqmail + !net-mail/courier-imap + )" +DEPEND="${CDEPEND}" +RDEPEND="${CDEPEND} + dev-lang/perl + dovecot? ( net-mail/dovecot )" +BDEPEND="virtual/pkgconfig" + +REQUIRED_USE=" + mysql? ( authlib ) + postgres? ( authlib ) + ldap? ( authlib )" + +S=${WORKDIR}/${P%%_pre} + +PATCHES=( + "${FILESDIR}"/${PN}-3.0.0-testsuite.patch + "${FILESDIR}"/${PN}-3.0.2-makedat.patch +) + +src_prepare() { + # Prefer gdbm over berkdb + if use gdbm ; then + use berkdb && elog "Both gdbm and berkdb selected. Using gdbm." + fi + + # no need to error out if no default - it will be given to econf anyway + sed -i -e \ + 's~AC_MSG_ERROR(Cannot determine default mailbox)~SPOOLDIR="./.maildir"~' \ + "${S}"/libs/maildrop/configure.ac || die "sed failed" + + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --with-devel + --disable-tempdir + --enable-syslog=1 + --enable-use-flock=1 + --enable-use-dotlock=1 + --enable-restrict-trusted=1 + --enable-maildrop-uid=root + --enable-maildrop-gid=mail + --enable-sendmail=/usr/sbin/sendmail + --cache-file="${S}"/configuring.cache + $(use_enable static-libs static) + $(use_enable dovecot dovecotauth) + $(use_with trashquota) + ) + + local mytrustedusers="apache dspam root mail fetchmail" + mytrustedusers+=" daemon postmaster qmaild mmdf vmail alias" + myeconfargs+=( --enable-trusted-users="${mytrustedusers}" ) + + # These flags make maildrop cry + replace-flags -Os -O2 + filter-flags -fomit-frame-pointer + + if use gdbm ; then + myeconfargs+=( --with-db=gdbm ) + elif use berkdb ; then + myeconfargs+=( --with-db=db ) + else + myeconfargs+=( --without-db ) + fi + + if ! use mysql && ! use postgres && ! use ldap && ! use authlib ; then + myeconfargs+=( --disable-authlib ) + fi + + # default mailbox is $HOME/.maildir for Gentoo + maildrop_cv_SYS_INSTALL_MBOXDIR="./.maildir" econf "${myeconfargs[@]}" +} + +src_install() { + default + + if use authlib ; then + fperms 4755 /usr/bin/maildrop + fi + + dodoc AUTHORS ChangeLog INSTALL NEWS README \ + README.postfix README.dovecotauth UPGRADE \ + maildroptips.txt + docinto maildir + dodoc libs/maildir/AUTHORS libs/maildir/INSTALL \ + libs/maildir/README*.txt libs/maildir/*.html + + # bugs 61116, 374009, and 639124 + if ! use tools ; then + for tool in "maildirmake" "deliverquota"; do + rm "${D}/usr/bin/${tool}" || die + rm "${D}/usr/share/man/man"[0-9]"/${tool}."[0-9] || die + done + rm "${D}/usr/share/man/man5/maildir.5" || die + fi + + insinto /etc + doins "${FILESDIR}"/maildroprc + + use static-libs || find "${D}"/usr/lib* -name '*.la' -delete +} diff --git a/mail-filter/maildrop/maildrop-3.1.0.ebuild b/mail-filter/maildrop/maildrop-3.1.0.ebuild deleted file mode 100644 index e024008d00bb..000000000000 --- a/mail-filter/maildrop/maildrop-3.1.0.ebuild +++ /dev/null @@ -1,138 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -inherit flag-o-matic autotools - -DESCRIPTION="Mail delivery agent/filter" -[[ -z ${PV/?.?/} ]] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -[[ -z ${PV/?.?.?/} ]] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -[[ -z ${SRC_URI} ]] && SRC_URI="https://www.courier-mta.org/beta/${PN}/${P%%_pre}.tar.bz2" -HOMEPAGE="https://www.courier-mta.org/maildrop/" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" -IUSE="berkdb debug dovecot gdbm ldap mysql postgres static-libs authlib +tools trashquota" - -CDEPEND="!mail-mta/courier - net-mail/mailbase - dev-libs/libpcre - net-dns/libidn:0= - >=net-libs/courier-unicode-2.0:= - gdbm? ( >=sys-libs/gdbm-1.8.0:= ) - mysql? ( net-libs/courier-authlib ) - postgres? ( net-libs/courier-authlib ) - ldap? ( net-libs/courier-authlib ) - authlib? ( net-libs/courier-authlib ) - !gdbm? ( - berkdb? ( >=sys-libs/db-3:= ) - ) - gdbm? ( net-mail/courier-imap[gdbm?,berkdb?] ) - berkdb? ( net-mail/courier-imap[gdbm?,berkdb?] ) - tools? ( - !mail-mta/netqmail - !net-mail/courier-imap - )" -DEPEND="${CDEPEND}" -RDEPEND="${CDEPEND} - dev-lang/perl - dovecot? ( net-mail/dovecot )" -BDEPEND="virtual/pkgconfig" - -REQUIRED_USE=" - mysql? ( authlib ) - postgres? ( authlib ) - ldap? ( authlib )" - -S=${WORKDIR}/${P%%_pre} - -PATCHES=( - "${FILESDIR}"/${PN}-3.0.0-testsuite.patch - "${FILESDIR}"/${PN}-3.0.2-makedat.patch -) - -src_prepare() { - # Prefer gdbm over berkdb - if use gdbm ; then - use berkdb && elog "Both gdbm and berkdb selected. Using gdbm." - fi - - # no need to error out if no default - it will be given to econf anyway - sed -i -e \ - 's~AC_MSG_ERROR(Cannot determine default mailbox)~SPOOLDIR="./.maildir"~' \ - "${S}"/libs/maildrop/configure.ac || die "sed failed" - - default - eautoreconf -} - -src_configure() { - local myeconfargs=( - --with-devel - --disable-tempdir - --enable-syslog=1 - --enable-use-flock=1 - --enable-use-dotlock=1 - --enable-restrict-trusted=1 - --enable-maildrop-uid=root - --enable-maildrop-gid=mail - --enable-sendmail=/usr/sbin/sendmail - --cache-file="${S}"/configuring.cache - $(use_enable static-libs static) - $(use_enable dovecot dovecotauth) - $(use_with trashquota) - ) - - local mytrustedusers="apache dspam root mail fetchmail" - mytrustedusers+=" daemon postmaster qmaild mmdf vmail alias" - myeconfargs+=( --enable-trusted-users="${mytrustedusers}" ) - - # These flags make maildrop cry - replace-flags -Os -O2 - filter-flags -fomit-frame-pointer - - if use gdbm ; then - myeconfargs+=( --with-db=gdbm ) - elif use berkdb ; then - myeconfargs+=( --with-db=db ) - else - myeconfargs+=( --without-db ) - fi - - if ! use mysql && ! use postgres && ! use ldap && ! use authlib ; then - myeconfargs+=( --disable-authlib ) - fi - - # default mailbox is $HOME/.maildir for Gentoo - maildrop_cv_SYS_INSTALL_MBOXDIR="./.maildir" econf "${myeconfargs[@]}" -} - -src_install() { - default - - if use authlib ; then - fperms 4755 /usr/bin/maildrop - fi - - dodoc AUTHORS ChangeLog INSTALL NEWS README \ - README.postfix README.dovecotauth UPGRADE \ - maildroptips.txt - docinto maildir - dodoc libs/maildir/AUTHORS libs/maildir/INSTALL \ - libs/maildir/README*.txt libs/maildir/*.html - - # bugs 61116, 374009, and 639124 - if ! use tools ; then - for tool in "maildirmake" "deliverquota"; do - rm "${D}/usr/bin/${tool}" || die - rm "${D}/usr/share/man/man"[0-9]"/${tool}."[0-9] || die - done - rm "${D}/usr/share/man/man5/maildir.5" || die - fi - - insinto /etc - doins "${FILESDIR}"/maildroprc - - use static-libs || find "${D}"/usr/lib* -name '*.la' -delete -} -- cgit v1.2.3-65-gdbad