diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2023-05-19 21:23:38 +0200 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2023-05-19 21:24:06 +0200 |
commit | 7601b5f762afeacbd46073ea792f95ff0a6f1f60 (patch) | |
tree | 6fc9b7186714fae78040b6d5609c9b5c6291d86b /mail-filter | |
parent | net-mail/courier-imap: add 5.2.4 (diff) | |
download | gentoo-7601b5f762afeacbd46073ea792f95ff0a6f1f60.tar.gz gentoo-7601b5f762afeacbd46073ea792f95ff0a6f1f60.tar.bz2 gentoo-7601b5f762afeacbd46073ea792f95ff0a6f1f60.zip |
mail-filter/maildrop: add 3.1.5
Closes: https://bugs.gentoo.org/906612
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/maildrop/Manifest | 1 | ||||
-rw-r--r-- | mail-filter/maildrop/files/maildrop-3.1.5-common.patch | 103 | ||||
-rw-r--r-- | mail-filter/maildrop/maildrop-3.1.5.ebuild | 139 |
3 files changed, 243 insertions, 0 deletions
diff --git a/mail-filter/maildrop/Manifest b/mail-filter/maildrop/Manifest index 31415703bc04..0a4e6c4b39b0 100644 --- a/mail-filter/maildrop/Manifest +++ b/mail-filter/maildrop/Manifest @@ -1,2 +1,3 @@ DIST maildrop-3.0.2.tar.bz2 2129406 BLAKE2B 10572c9c0fcb7a31f10fdfb005562afd425d157fe515f31d7fc6721247b0a5d5d381b51da39f0161de0c8722af89da225273728928510fd9d79c18c18b5759e5 SHA512 a2e6ad9c6982e468b4f778fe6956312aa1da54c93269311922f247a89ede49349a6cbce869b08ced22354d18259ebc043e4f4adf1e0b364d8e110797b24efbc8 DIST maildrop-3.1.4.tar.bz2 2156148 BLAKE2B e7de4e30ee23d8d2f88de7b0398a41c84af6d34207e9f26fd7b22e7ac1b5171c309c6304b312a75e621bc860e5a2d3f59613e47ff5a73ae6412761179f787f53 SHA512 b8f373e142c61ba9cdf32fd939aa7fc5c24ec873f734be048e94561e35977b6fb663ff4a1c35fc22dc7dc2075e04e4c4a09e37c0e7c7c0dd96555fcda9c7fd26 +DIST maildrop-3.1.5.tar.bz2 2156334 BLAKE2B 374c0436a0e5954171bf942d824123d610057269739f5f76f4353b75065a964fe92d95a80209a07187d3ebcfe59a6d92d54c71fa52325fc4968e10c1b8eeaada SHA512 f722cbdf9aeb628ff68dcd280de5d7d37a3fae3692b7de5483cf0563631ff9b2eba9ef9baf3b3e3f6108d40e19b55dabddacaa3a064e6b71210b18f200bc67b7 diff --git a/mail-filter/maildrop/files/maildrop-3.1.5-common.patch b/mail-filter/maildrop/files/maildrop-3.1.5-common.patch new file mode 100644 index 000000000000..9a9342ca8c53 --- /dev/null +++ b/mail-filter/maildrop/files/maildrop-3.1.5-common.patch @@ -0,0 +1,103 @@ +--- a/Makefile.am 2023-01-23 22:21:20.376505977 +0100 ++++ b/Makefile.am 2023-01-23 22:22:18.655565802 +0100 +@@ -10,9 +10,9 @@ + + HTML2TXT=elinks -dump -no-numbering -no-references + +-SUBDIRS=libs/numlib libs/liblock libs/rfc822 libs/rfc2045 @DBSUBDIR@ libs/makedat libs/maildir libs/maildrop ++SUBDIRS=libs/numlib libs/liblock libs/rfc822 libs/rfc2045 @DBSUBDIR@ libs/maildir libs/maildrop + +-DIST_SUBDIRS=libs/numlib libs/liblock libs/rfc822 libs/rfc2045 libs/gdbmobj libs/bdbobj libs/makedat libs/maildir libs/maildrop ++DIST_SUBDIRS=libs/numlib libs/liblock libs/rfc822 libs/rfc2045 libs/gdbmobj libs/bdbobj libs/maildir libs/maildrop + + HTMLWWW=index.html documentation.html download.html links.html + EXTRA_DIST=README.html INSTALL.html UPGRADE.html README.postfix\ +@@ -31,7 +31,7 @@ + DELIVERQUOTAHTMLSOURCE=maildirquota.html deliverquota.html + + DELIVERQUOTAHTML=$(DELIVERQUOTAHTMLSOURCE) +-DELIVERQUOTAMAN=maildirquota.7 deliverquota.8 ++DELIVERQUOTAMAN=maildirquota.7 + + # Install deliverquota into libdir/bin + # +@@ -51,7 +51,7 @@ + uninstall-deliverquota: + rm -f $(DESTDIR)$(bindir)/deliverquota + +-MAILDROPHTML=lockmail.html maildiracl.html maildirkw.html \ ++MAILDROPHTML=lockmail.html maildiracl.html \ + maildirwatch.html \ + maildirmake.html maildropex.html \ + maildir.html \ +@@ -59,11 +59,10 @@ + makemime.html reformail.html reformime.html + + if HAVE_DBLIBRARY +-MAILDROPHTML += makedat.html + endif + + MAILDROPMAN=lockmail.1 maildirmake.1 maildrop.1 mailbot.1 maildropex.7 \ +- maildirkw.1 maildirwatch.1 \ ++ maildirwatch.1 \ + maildir.5 \ + maildropfilter.7 maildropgdbm.7 makemime.1 reformail.1 reformime.1 + +@@ -68,7 +67,6 @@ + maildropfilter.7 maildropgdbm.7 makemime.1 reformail.1 reformime.1 + + if HAVE_DBLIBRARY +-MAILDROPMAN += makedat.1 + endif + + EXTRA_LTLIBRARIES=librfc822.la librfc2045.la +@@ -88,14 +86,12 @@ + html_DATA=$(htmldataclean) manpage.css + + if !HAVE_DBLIBRARY +-html_DATA += makedat.html + endif + + man_MANS=$(DELIVERQUOTAMAN) \ + $(MAILDROPMAN) $(DEVEL_MAN) + + if !HAVE_DBLIBRARY +-man_MANS += makedat.1 + endif + + DISTCLEANFILES=$(htmldataclean) $(man_MANS) +@@ -104,7 +104,7 @@ + librfc822_la_LDFLAGS=-rpath $(libdir) -version-info @LIBVERSION_INFO@ + librfc2045_la_LDFLAGS=-rpath $(libdir) -version-info @LIBVERSION_INFO@ + +-install-data-local: install-man install-deliverquota install-maildrop ++install-data-local: install-man install-maildrop + + uninstall-local: uninstall-deliverquota uninstall-maildrop + +@@ -131,14 +131,9 @@ + done + $(INSTALL_PROGRAM) libs/liblock/lockmail $(DESTDIR)$(bindir)/lockmail + $(INSTALL_PROGRAM) libs/maildir/maildirmake $(DESTDIR)$(bindir)/maildirmake +- $(INSTALL_PROGRAM) libs/maildir/maildirkw $(DESTDIR)$(bindir)/maildirkw + $(INSTALL_PROGRAM) libs/maildir/maildirwatch $(DESTDIR)$(bindir)/maildirwatch + $(INSTALL_PROGRAM) libs/rfc2045/reformime $(DESTDIR)$(bindir)/reformime + $(INSTALL_PROGRAM) libs/rfc2045/makemime $(DESTDIR)$(bindir)/makemime +- test "@USE_DB@@USE_GDBM@" = "00" && exit 0; \ +- $(INSTALL_PROGRAM) libs/makedat/makedatprog $(DESTDIR)$(bindir)/makedatprog +- test "@USE_DB@@USE_GDBM@" = "00" && exit 0; \ +- $(INSTALL_SCRIPT) libs/makedat/makedat $(DESTDIR)$(bindir)/makedat + . libs/maildrop/uidgid ; test -z "$$gid" && exit 0; test -w /etc || exit 0; cd $(DESTDIR)$(bindir) && chgrp $$gid maildrop lockmail + . libs/maildrop/uidgid ; test -z "$$uid" && exit 0; test -w /etc || exit 0; cd $(DESTDIR)$(bindir) && chown $$uid maildrop lockmail && chmod 755 maildrop lockmail + +--- a/configure.ac 2023-01-23 22:19:39.236136459 +0100 ++++ b/configure.ac 2023-01-23 22:22:33.810321247 +0100 +@@ -203,7 +203,7 @@ + + AC_SUBST(REPOSITORY) + +-AC_CONFIG_SUBDIRS(libs/numlib libs/liblock libs/rfc822 libs/rfc2045 libs/gdbmobj libs/bdbobj libs/makedat libs/maildir libs/maildrop) ++AC_CONFIG_SUBDIRS(libs/numlib libs/liblock libs/rfc822 libs/rfc2045 libs/gdbmobj libs/bdbobj libs/maildir libs/maildrop) + + AC_CONFIG_FILES([Makefile + courier-debuild diff --git a/mail-filter/maildrop/maildrop-3.1.5.ebuild b/mail-filter/maildrop/maildrop-3.1.5.ebuild new file mode 100644 index 000000000000..320e66ca5380 --- /dev/null +++ b/mail-filter/maildrop/maildrop-3.1.5.ebuild @@ -0,0 +1,139 @@ +# 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:= + net-mail/courier-common[berkdb?,gdbm?] + 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.1.1-testsuite.patch + "${FILESDIR}"/${P}-common.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 +} |