diff options
Diffstat (limited to 'net-mail/courier-makedat')
-rw-r--r-- | net-mail/courier-makedat/Manifest | 4 | ||||
-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, 165 insertions, 0 deletions
diff --git a/net-mail/courier-makedat/Manifest b/net-mail/courier-makedat/Manifest new file mode 100644 index 000000000000..43d9f075a879 --- /dev/null +++ b/net-mail/courier-makedat/Manifest @@ -0,0 +1,4 @@ +AUX courier-makedat-3.1.0-gentoo.patch 3561 BLAKE2B 5e7b6b0481cc07ddb2e43c61fd90928a0b17c3536268a93d90552c737cf385621423c0a7683e9d7e9ba75fee4e4d5b5de6f23604ab518e6eeda631c3a8968761 SHA512 ec96078e7e345b82ad30c5613d8e32a310903d7e9e527d73e35fa825ec192ef37ecaeb5449e79e71fcc377c35cd468f0dffd0747ce65b4474200aff3ccbf11ca +DIST maildrop-3.1.0.tar.bz2 2154698 BLAKE2B 8eaec33ccb3f117e0cd069eac2af736f5cc3485314ea14ac594f8e716e68d3f1e20143ba47533c08a835707dda1e8ba0fad2eea5d3bf5845668f8ad375e56387 SHA512 4d4ab1acd9f81beb54af9af86d0f8c3145f962f1ff2fd5e9209e31b63054cc41b3e4a1300965a8855a39dbcfa1cdbdef2ad194af1f12e079c1361b12b293ed56 +EBUILD courier-makedat-3.1.0.ebuild 1058 BLAKE2B 3bb0acbcf0fd7911946ef1b771354382fbcd85a83913ce39c4b27a06bfd9059680ef382d9ea833cc49f5befe2db6041bd65cc0d4d3626bfbdc92ae3686c8724e SHA512 b9f890bd13e7d2228186bbe48c9fbd317faee0f10aafba60e54bc3ac59c92ddff9b22c229a9a09a5833dcd8c2991ef7e296782f4f9d11f9554adf4b70263ae71 +MISC metadata.xml 325 BLAKE2B 023d4556dfa6439e94cfab6f1dda984cf895bcc72c0f9f6dec30ab524760c8b6fbfd4ca7b31ac2dd39381648ffe26c03064c77792b9d4b5ff9f2883920ac2413 SHA512 518c12524579e302876f908c7553469e52ca29867b398b3daa85f4f887d77abc424b6d2e9523b7b49c11fafe0a34c633b2448153008fb95d7837676168eaa189 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..3f4249bb4809 --- /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 ~loong ~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> |