diff options
Diffstat (limited to 'net-mail/courier-common')
-rw-r--r-- | net-mail/courier-common/Manifest | 4 | ||||
-rw-r--r-- | net-mail/courier-common/courier-common-3.1.5.ebuild | 54 | ||||
-rw-r--r-- | net-mail/courier-common/files/courier-common-3.1.5-gentoo.patch | 94 | ||||
-rw-r--r-- | net-mail/courier-common/metadata.xml | 11 |
4 files changed, 163 insertions, 0 deletions
diff --git a/net-mail/courier-common/Manifest b/net-mail/courier-common/Manifest new file mode 100644 index 000000000000..4ada167c352a --- /dev/null +++ b/net-mail/courier-common/Manifest @@ -0,0 +1,4 @@ +AUX courier-common-3.1.5-gentoo.patch 3593 BLAKE2B 2041a74546b98037e0e6a9aa510b02be0bb35fd21bba78f0c5df01dfafb95de9fe2467c22b21d3f95f0c55aab92948127c818c7e59be190518952015d8068c86 SHA512 9de9851b3825f365e109833d8c2c8a8f7ed34b3042ba946c3719acbd1297fde4405f597ce41b92b65515ded27277e33ce16c9361bb53e3a6599ade6f61c8ebea +DIST maildrop-3.1.5.tar.bz2 2156334 BLAKE2B 374c0436a0e5954171bf942d824123d610057269739f5f76f4353b75065a964fe92d95a80209a07187d3ebcfe59a6d92d54c71fa52325fc4968e10c1b8eeaada SHA512 f722cbdf9aeb628ff68dcd280de5d7d37a3fae3692b7de5483cf0563631ff9b2eba9ef9baf3b3e3f6108d40e19b55dabddacaa3a064e6b71210b18f200bc67b7 +EBUILD courier-common-3.1.5.ebuild 1086 BLAKE2B 4f26d51e135919803dbdfd64f05f94b19b5ff9b8f1b0bc9cc3f95b4491763a48bec47d22ddbf01eb77a69728f747d8f1256f63c2524ab42cb43b24ad63990c01 SHA512 d4cbb52e4351277e6191962d5f94fb05863c09ab17d1f02c0ce6e62d6f5a0f4943cf7c74747839e219bbfec74ca5b73a19f32eb52f1319b66a5faf70006e6600 +MISC metadata.xml 325 BLAKE2B 023d4556dfa6439e94cfab6f1dda984cf895bcc72c0f9f6dec30ab524760c8b6fbfd4ca7b31ac2dd39381648ffe26c03064c77792b9d4b5ff9f2883920ac2413 SHA512 518c12524579e302876f908c7553469e52ca29867b398b3daa85f4f887d77abc424b6d2e9523b7b49c11fafe0a34c633b2448153008fb95d7837676168eaa189 diff --git a/net-mail/courier-common/courier-common-3.1.5.ebuild b/net-mail/courier-common/courier-common-3.1.5.ebuild new file mode 100644 index 000000000000..f6c77def74b2 --- /dev/null +++ b/net-mail/courier-common/courier-common-3.1.5.ebuild @@ -0,0 +1,54 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit autotools + +MYP=maildrop-${PV} + +DESCRIPTION="Mail delivery agent/filter" +HOMEPAGE="https://www.courier-mta.org/maildrop/" +SRC_URI="mirror://sourceforge/courier/${MYP}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="berkdb +gdbm" + +RDEPEND="!mail-mta/courier + !<=net-mail/courier-imap-5.2.3 + !<=mail-filter/maildrop-3.1.4 + !net-mail/courier-makedat + gdbm? ( >=sys-libs/gdbm-1.8.0:= ) + !gdbm? ( berkdb? ( >=sys-libs/db-3:= ) )" +DEPEND="${RDEPEND}" + +REQUIRED_USE="|| ( berkdb gdbm )" + +S=${WORKDIR}/${MYP} + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_prepare() { + # Prefer gdbm over berkdb + if use gdbm ; then + use berkdb && elog "Both gdbm and berkdb selected. Using gdbm." + fi + + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --without-devel + ) + + if use gdbm ; then + myeconfargs+=( --with-db=gdbm ) + else + myeconfargs+=( --with-db=db ) + fi + + econf "${myeconfargs[@]}" +} diff --git a/net-mail/courier-common/files/courier-common-3.1.5-gentoo.patch b/net-mail/courier-common/files/courier-common-3.1.5-gentoo.patch new file mode 100644 index 000000000000..93be9b370cbd --- /dev/null +++ b/net-mail/courier-common/files/courier-common-3.1.5-gentoo.patch @@ -0,0 +1,94 @@ +--- a/Makefile.am 2023-01-23 20:26:38.281754514 +0100 ++++ b/Makefile.am 2023-01-23 20:56:23.015425918 +0100 +@@ -10,7 +10,7 @@ + + 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 @DBSUBDIR@ libs/makedat libs/maildir + + DIST_SUBDIRS=libs/numlib libs/liblock libs/rfc822 libs/rfc2045 libs/gdbmobj libs/bdbobj libs/makedat libs/maildir libs/maildrop + +@@ -31,7 +31,7 @@ + DELIVERQUOTAHTMLSOURCE=maildirquota.html deliverquota.html + + DELIVERQUOTAHTML=$(DELIVERQUOTAHTMLSOURCE) +-DELIVERQUOTAMAN=maildirquota.7 deliverquota.8 ++DELIVERQUOTAMAN=deliverquota.8 + + # Install deliverquota into libdir/bin + # +@@ -51,21 +51,13 @@ + uninstall-deliverquota: + rm -f $(DESTDIR)$(bindir)/deliverquota + +-MAILDROPHTML=lockmail.html maildiracl.html maildirkw.html \ +- maildirwatch.html \ +- maildirmake.html maildropex.html \ +- maildir.html \ +- maildropfilter.html maildropgdbm.html maildrop.html mailbot.html \ +- makemime.html reformail.html reformime.html ++MAILDROPHTML=maildirkw.html + + if HAVE_DBLIBRARY + MAILDROPHTML += makedat.html + endif + +-MAILDROPMAN=lockmail.1 maildirmake.1 maildrop.1 mailbot.1 maildropex.7 \ +- maildirkw.1 maildirwatch.1 \ +- maildir.5 \ +- maildropfilter.7 maildropgdbm.7 makemime.1 reformail.1 reformime.1 ++MAILDROPMAN=maildirkw.1 + + if HAVE_DBLIBRARY + MAILDROPMAN += makedat.1 +@@ -83,7 +80,7 @@ + lib_LTLIBRARIES=@DEVEL_LIBS@ + + htmldataclean=$(DELIVERQUOTAHTML) \ +- $(MAILDROPHTML) rfc822.html rfc2045.html ++ $(MAILDROPHTML) + + html_DATA=$(htmldataclean) manpage.css + +@@ -130,21 +122,11 @@ + + install-maildrop: + $(mkinstalldirs) $(DESTDIR)$(bindir) +- for f in maildrop mailbot reformail ; do \ +- $(INSTALL_PROGRAM) libs/maildrop/$$f $(DESTDIR)$(bindir)/$$f ; \ +- 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 + + uninstall-maildrop: + for f in maildrop mailbot maildirmake reformail lockmail makemime reformime maildirkw maildirwatch; do \ +--- a/configure.ac 2023-01-23 20:25:07.119321103 +0100 ++++ b/configure.ac 2023-01-23 20:30:33.445719448 +0100 +@@ -129,7 +129,6 @@ + AC_MSG_ERROR([libidn not found]) + fi + +-AX_COURIER_UNICODE_VERSION(2.1) + + AC_ARG_WITH(plentyofbeer, + [ --enable-sendmail=prog set sendmail location +@@ -203,7 +202,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/gdbmobj libs/bdbobj libs/makedat libs/maildir) + + AC_CONFIG_FILES([Makefile + courier-debuild diff --git a/net-mail/courier-common/metadata.xml b/net-mail/courier-common/metadata.xml new file mode 100644 index 000000000000..f546727ff5dc --- /dev/null +++ b/net-mail/courier-common/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>tupone@gentoo.org</email> + <name>Tupone Alfredo</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">courier</remote-id> + </upstream> +</pkgmetadata> |