summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2023-05-19 21:10:07 +0200
committerAlfredo Tupone <tupone@gentoo.org>2023-05-19 21:23:58 +0200
commit7da7bc098bf5a57792886f37ea25872b6df00a5b (patch)
treeaffe1af86faf385e681189156e70304e8ae1f132 /net-mail/courier-common
parentsys-apps/osinfo-db: Version bump to 20230518 (diff)
downloadgentoo-7da7bc098bf5a57792886f37ea25872b6df00a5b.tar.gz
gentoo-7da7bc098bf5a57792886f37ea25872b6df00a5b.tar.bz2
gentoo-7da7bc098bf5a57792886f37ea25872b6df00a5b.zip
net-mail/courier-common: new package, add 3.1.5
Bug: https://bugs.gentoo.org/906612 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'net-mail/courier-common')
-rw-r--r--net-mail/courier-common/Manifest1
-rw-r--r--net-mail/courier-common/courier-common-3.1.5.ebuild54
-rw-r--r--net-mail/courier-common/files/courier-common-3.1.5-gentoo.patch94
-rw-r--r--net-mail/courier-common/metadata.xml11
4 files changed, 160 insertions, 0 deletions
diff --git a/net-mail/courier-common/Manifest b/net-mail/courier-common/Manifest
new file mode 100644
index 000000000000..fcbbf90b0448
--- /dev/null
+++ b/net-mail/courier-common/Manifest
@@ -0,0 +1 @@
+DIST maildrop-3.1.5.tar.bz2 2156334 BLAKE2B 374c0436a0e5954171bf942d824123d610057269739f5f76f4353b75065a964fe92d95a80209a07187d3ebcfe59a6d92d54c71fa52325fc4968e10c1b8eeaada SHA512 f722cbdf9aeb628ff68dcd280de5d7d37a3fae3692b7de5483cf0563631ff9b2eba9ef9baf3b3e3f6108d40e19b55dabddacaa3a064e6b71210b18f200bc67b7
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>