mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
mail-filter/maildrop: drop 3.1.4, 3.1.5, 3.1.7-r1
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
@@ -1,5 +1,2 @@
|
||||
DIST maildrop-3.1.4.tar.bz2 2156148 BLAKE2B e7de4e30ee23d8d2f88de7b0398a41c84af6d34207e9f26fd7b22e7ac1b5171c309c6304b312a75e621bc860e5a2d3f59613e47ff5a73ae6412761179f787f53 SHA512 b8f373e142c61ba9cdf32fd939aa7fc5c24ec873f734be048e94561e35977b6fb663ff4a1c35fc22dc7dc2075e04e4c4a09e37c0e7c7c0dd96555fcda9c7fd26
|
||||
DIST maildrop-3.1.5.tar.bz2 2156334 BLAKE2B 374c0436a0e5954171bf942d824123d610057269739f5f76f4353b75065a964fe92d95a80209a07187d3ebcfe59a6d92d54c71fa52325fc4968e10c1b8eeaada SHA512 f722cbdf9aeb628ff68dcd280de5d7d37a3fae3692b7de5483cf0563631ff9b2eba9ef9baf3b3e3f6108d40e19b55dabddacaa3a064e6b71210b18f200bc67b7
|
||||
DIST maildrop-3.1.6.tar.bz2 2156136 BLAKE2B fddb718e81d66a393f3bce720edb73c3638c255504d90f7613c05910a3a96ca2ad9ab350167096a2677d51770d26799f8bd89f287dda464163f82c5da8d8b28a SHA512 93364747c603d1d566f756e7ba8b10fd38d10749b269f1bf64596a56fe2b06f529f4b59b6256a5be0c44169f2c8cc9dcd7de91b3cc03288719ffee5db330b1d5
|
||||
DIST maildrop-3.1.7.tar.bz2 2156082 BLAKE2B 734380f8b76882a7b9c04203e971c72544eba6fc0b0a74ed4f48f5c3c1b5c2f2817fa8eff7268c934b840471a554ffe9ce159fc9c232a3c9b717f956c8862474 SHA512 972f3891d6f1daca97971d6cc3e09e4f78ce7bf8bb4520ed2836b8d7d9394546d403a0dd709e6b2e34706f67aae2563523bbc0953a9971cc2107fc0838fa095e
|
||||
DIST maildrop-3.1.8.tar.bz2 2156016 BLAKE2B 640a5dc17f0cc238f8260acf8188bd625501bccda7a23e9c154fedece8ee42087106e27cafee5fbbaa7c09560d796e68548c6d2826e6fe4c9e1b330f2b971511 SHA512 0ee8e36cc5464cbbbef60721da19de7a12b9aa4737e40039c421ee14494c53f87146d50d1b8ae64186d8330121d54a62092435cadb51c3dede31658ff5104eb8
|
||||
|
||||
@@ -1,138 +0,0 @@
|
||||
# Copyright 1999-2024 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="https://downloads.sourceforge.net/courier/${P}.tar.bz2"
|
||||
[[ -z ${PV/?.?.?/} ]] && SRC_URI="https://downloads.sourceforge.net/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/"
|
||||
|
||||
S=${WORKDIR}/${P%%_pre}
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~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:=
|
||||
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 )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.1.1-testsuite.patch
|
||||
"${FILESDIR}"/${PN}-3.0.2-makedat.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
|
||||
}
|
||||
@@ -1,139 +0,0 @@
|
||||
# Copyright 1999-2024 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="https://downloads.sourceforge.net/courier/${P}.tar.bz2"
|
||||
[[ -z ${PV/?.?.?/} ]] && SRC_URI="https://downloads.sourceforge.net/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/"
|
||||
|
||||
S=${WORKDIR}/${P%%_pre}
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~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 )"
|
||||
|
||||
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"; 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
|
||||
}
|
||||
@@ -1,149 +0,0 @@
|
||||
# Copyright 1999-2024 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="https://downloads.sourceforge.net/courier/${P}.tar.bz2"
|
||||
[[ -z ${PV/?.?.?/} ]] && SRC_URI="https://downloads.sourceforge.net/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/"
|
||||
|
||||
S=${WORKDIR}/${P%%_pre}
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~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:=
|
||||
gdbm? ( sys-libs/gdbm:= )
|
||||
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:= )
|
||||
)
|
||||
tools? (
|
||||
!mail-mta/netqmail
|
||||
!<net-mail/courier-imap-5.2.6
|
||||
net-mail/courier-common[gdbm?,berkdb?]
|
||||
)"
|
||||
DEPEND="${CDEPEND}"
|
||||
RDEPEND="${CDEPEND}
|
||||
dev-lang/perl
|
||||
dovecot? ( net-mail/dovecot )"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
REQUIRED_USE="
|
||||
mysql? ( authlib )
|
||||
postgres? ( authlib )
|
||||
ldap? ( authlib )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-testsuite.patch
|
||||
"${FILESDIR}"/${P}-valgrind.patch
|
||||
"${FILESDIR}"/${PN}-3.1.6-test.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
|
||||
|
||||
# Moved to courier-common
|
||||
rm "${D}"/usr/bin/deliverquota || die
|
||||
rm "${D}"/usr/bin/maildirkw || die
|
||||
if use gdbm; then
|
||||
rm "${D}"/usr/bin/makedat || die
|
||||
rm "${D}"/usr/bin/makedatprog || die
|
||||
fi
|
||||
rm "${D}"/usr/share/man/man1/maildirkw.1 || die
|
||||
rm "${D}"/usr/share/man/man1/makedat.1 || die
|
||||
rm "${D}"/usr/share/man/man8/deliverquota.8 || die
|
||||
|
||||
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, 639124
|
||||
if ! use tools ; then
|
||||
for tool in "maildirmake" "maildirwatch"; 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
|
||||
}
|
||||
Reference in New Issue
Block a user