diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2023-01-23 21:47:25 +0100 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2023-01-23 21:55:59 +0100 |
commit | b39a25dcf5017d7d6abb3119bebe463c6178bd65 (patch) | |
tree | 2821a613b284c0e6eee46e92fb38051f80eb3f1f /net-mail/courier-makedat | |
parent | dev-cpp/folly: depend on newer >=liburing-2.3 for IORING_RECV_MULTISHOT (diff) | |
download | gentoo-b39a25dcf5017d7d6abb3119bebe463c6178bd65.tar.gz gentoo-b39a25dcf5017d7d6abb3119bebe463c6178bd65.tar.bz2 gentoo-b39a25dcf5017d7d6abb3119bebe463c6178bd65.zip |
net-mail/courier-makedat: new package, add 3.1.0
Bug: https://bugs.gentoo.org/884591
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'net-mail/courier-makedat')
-rw-r--r-- | net-mail/courier-makedat/Manifest | 1 | ||||
-rw-r--r-- | net-mail/courier-makedat/courier-makedat-3.1.0.ebuild | 53 | ||||
-rw-r--r-- | net-mail/courier-makedat/files/courier-makedat-3.1.0-gentoo.patch | 97 | ||||
-rw-r--r-- | net-mail/courier-makedat/metadata.xml | 11 |
4 files changed, 162 insertions, 0 deletions
diff --git a/net-mail/courier-makedat/Manifest b/net-mail/courier-makedat/Manifest new file mode 100644 index 000000000000..3c9d3e35aa05 --- /dev/null +++ b/net-mail/courier-makedat/Manifest @@ -0,0 +1 @@ +DIST maildrop-3.1.0.tar.bz2 2154698 BLAKE2B 8eaec33ccb3f117e0cd069eac2af736f5cc3485314ea14ac594f8e716e68d3f1e20143ba47533c08a835707dda1e8ba0fad2eea5d3bf5845668f8ad375e56387 SHA512 4d4ab1acd9f81beb54af9af86d0f8c3145f962f1ff2fd5e9209e31b63054cc41b3e4a1300965a8855a39dbcfa1cdbdef2ad194af1f12e079c1361b12b293ed56 diff --git a/net-mail/courier-makedat/courier-makedat-3.1.0.ebuild b/net-mail/courier-makedat/courier-makedat-3.1.0.ebuild new file mode 100644 index 000000000000..11936a49d9e6 --- /dev/null +++ b/net-mail/courier-makedat/courier-makedat-3.1.0.ebuild @@ -0,0 +1,53 @@ +# 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 ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="berkdb gdbm" + +RDEPEND="!mail-mta/courier + !<=net-mail/courier-imap-5.2.1 + !<=mail-filter/maildrop-3.0.2 + 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-makedat/files/courier-makedat-3.1.0-gentoo.patch b/net-mail/courier-makedat/files/courier-makedat-3.1.0-gentoo.patch new file mode 100644 index 000000000000..d8517d7d483d --- /dev/null +++ b/net-mail/courier-makedat/files/courier-makedat-3.1.0-gentoo.patch @@ -0,0 +1,97 @@ +--- 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=@DBSUBDIR@ libs/makedat + + DIST_SUBDIRS=libs/numlib libs/liblock libs/rfc822 libs/rfc2045 libs/gdbmobj libs/bdbobj libs/makedat libs/maildir libs/maildrop + +@@ -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= + + 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= + + if HAVE_DBLIBRARY + MAILDROPMAN += makedat.1 +@@ -82,8 +74,8 @@ + + lib_LTLIBRARIES=@DEVEL_LIBS@ + +-htmldataclean=$(DELIVERQUOTAHTML) \ +- $(MAILDROPHTML) rfc822.html rfc2045.html ++htmldataclean= \ ++ $(MAILDROPHTML) + + html_DATA=$(htmldataclean) manpage.css + +@@ -91,7 +83,7 @@ + html_DATA += makedat.html + endif + +-man_MANS=$(DELIVERQUOTAMAN) \ ++man_MANS= \ + $(MAILDROPMAN) $(DEVEL_MAN) + + if !HAVE_DBLIBRARY +@@ -108,7 +100,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 + +@@ -130,21 +122,10 @@ + + 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 +@@ -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/gdbmobj libs/bdbobj libs/makedat) + + AC_CONFIG_FILES([Makefile + courier-debuild diff --git a/net-mail/courier-makedat/metadata.xml b/net-mail/courier-makedat/metadata.xml new file mode 100644 index 000000000000..f546727ff5dc --- /dev/null +++ b/net-mail/courier-makedat/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> |