diff options
author | Thomas Raschbacher <lordvan@gentoo.org> | 2023-06-08 21:33:30 +0200 |
---|---|---|
committer | Thomas Raschbacher <lordvan@gentoo.org> | 2023-06-08 21:33:30 +0200 |
commit | d00d2ac25789715f6d9e05e8f448eb4c857ccc13 (patch) | |
tree | 628a501295b7e96d555d415568eb5b2491a083f5 /net-mail | |
parent | net-libs/libquotient: Keyword 0.7.2-r3 ppc64, #908069 (diff) | |
download | gentoo-d00d2ac25789715f6d9e05e8f448eb4c857ccc13.tar.gz gentoo-d00d2ac25789715f6d9e05e8f448eb4c857ccc13.tar.bz2 gentoo-d00d2ac25789715f6d9e05e8f448eb4c857ccc13.zip |
net-mail/dbmail: add 3.3.1
Closes: https://bugs.gentoo.org/809158
Signed-off-by: Thomas Raschbacher <lordvan@gentoo.org>
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/dbmail/Manifest | 1 | ||||
-rw-r--r-- | net-mail/dbmail/dbmail-3.3.1.ebuild | 98 | ||||
-rw-r--r-- | net-mail/dbmail/files/dbmail-imapd.initd | 7 | ||||
-rw-r--r-- | net-mail/dbmail/files/dbmail-lmtpd.initd | 7 | ||||
-rw-r--r-- | net-mail/dbmail/files/dbmail-pop3d.initd | 7 | ||||
-rw-r--r-- | net-mail/dbmail/files/dbmail-timsieved.initd | 7 |
6 files changed, 111 insertions, 16 deletions
diff --git a/net-mail/dbmail/Manifest b/net-mail/dbmail/Manifest index 8d47f7766f6a..c5cc5878b4da 100644 --- a/net-mail/dbmail/Manifest +++ b/net-mail/dbmail/Manifest @@ -1,2 +1,3 @@ DIST dbmail-3.2.3.tar.gz 2444227 BLAKE2B baa812fb3e925e6d896762596426208fc2ac5fcb01cb8100cfbd0464f1342f934c099ca52fd857e05fc82b97227155e9dcfc987d6c9b5c37e7daf21b167c9841 SHA512 29cc89830278f2ff28a4221fc81d4ff13cc371fbca7fb51d5376e9243234220b552cb4b6ec035c150e6cfa178435c4f36b9ce132fc02334bc6cdeb1a41c8ed85 DIST dbmail-3.2.5.tar.gz 2463966 BLAKE2B f4099c6f869dbb041d7eccdf20f3a34d36918237cc0386c71a1d339da8651b9301e676b25201856038045bb9590f880353c6ccafd57330f9cf48382c1b4c603c SHA512 6b0d7e1f6f7449869db1e094ffce9e1ef315c60784ea5ae5f814f2cf9a18c358b4c5d107a420c7317961ffa343fc59c9083789177514aee96523927688f276a0 +DIST dbmail-3.3.1.tar.gz 2523029 BLAKE2B fd7bd7b6a40772c8c309b2bc9cf3cd907a8b885367fe6b1c23bdd1f4d6281b7f8878caf481171ec4ad71f2644f516100da5c6ee7dfa0d4d7139725a3181a8ef5 SHA512 d0324d79d4871cc46ce3bbc5c0d8c2f587d57f262a878f685b776d8e1b4a58a67e5a0f0cf0f48c939dc3424f8a44dd78e929ea2588ab10d0246a10b3ee5c55c5 diff --git a/net-mail/dbmail/dbmail-3.3.1.ebuild b/net-mail/dbmail/dbmail-3.3.1.ebuild new file mode 100644 index 000000000000..21017546539e --- /dev/null +++ b/net-mail/dbmail/dbmail-3.3.1.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd readme.gentoo-r1 + +DESCRIPTION="Fast and scalable sql based email services" +HOMEPAGE="https://www.dbmail.org/" +SRC_URI="https://github.com/dbmail/dbmail/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+doc jemalloc ldap sieve ssl static systemd" + +DEPEND="dev-db/libzdb + sieve? ( >=mail-filter/libsieve-2.2.1 ) + ldap? ( >=net-nds/openldap-2.3.33:= ) + jemalloc? ( dev-libs/jemalloc:= ) + elibc_musl? ( sys-libs/queue-standalone ) + app-text/asciidoc + app-text/xmlto + app-crypt/mhash + sys-libs/zlib + dev-libs/gmime:3.0 + >=dev-libs/glib-2.16 + dev-libs/libevent:= + virtual/libcrypt:= + ssl? ( + dev-libs/openssl:= + )" +RDEPEND="${DEPEND} + acct-group/dbmail + acct-user/dbmail" +DEPEND+=" elibc_musl? ( sys-libs/queue-standalone )" +DOCS=( AUTHORS README.md INSTALL THANKS UPGRADING ) + +README_GENTOO_SUFFIX="" + +src_prepare() { + sed -i -e "s:nobody:dbmail: ; s:nogroup:dbmail: ; s:/var/run:/run/dbmail:" dbmail.conf || die + # change config path to our default and use the conf.d and init.d files from the contrib dir + sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail || die + + default +} + +src_configure() { + econf \ + --enable-manpages \ + --sysconfdir=/etc/dbmail \ + $(use_enable doc manpages) \ + $(use_enable static) \ + $(use_enable systemd) \ + $(use_with jemalloc) \ + $(use_with sieve) \ + $(use_with ldap auth-ldap) +} + +src_install() { + emake DESTDIR="${D}" SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" install + einstalldocs + + docompress -x /usr/share/doc/${PF}/sql + dodoc -r sql + dodoc -r test-scripts + dodoc -r contrib + ## TODO: install other contrib stuff + + insinto /etc/dbmail + newins dbmail.conf dbmail.conf.dist + + # use custom init scripts until updated in upstream contrib + newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd + newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd + newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d + newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved + + dobin contrib/mailbox2dbmail/mailbox2dbmail + doman contrib/mailbox2dbmail/mailbox2dbmail.1 + + # ldap schema + if use ldap; then + insinto /etc/openldap/schema + doins "${S}/dbmail.schema" + fi + + keepdir /var/lib/dbmail + fperms 750 /var/lib/dbmail + fowners dbmail:dbmail /var/lib/dbmail + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} diff --git a/net-mail/dbmail/files/dbmail-imapd.initd b/net-mail/dbmail/files/dbmail-imapd.initd index c2925f9ecb0e..6243ab25bf69 100644 --- a/net-mail/dbmail/files/dbmail-imapd.initd +++ b/net-mail/dbmail/files/dbmail-imapd.initd @@ -1,4 +1,4 @@ -#!/sbin/runscript +#!/sbin/openrc-run # BIN_DIR=/usr/sbin @@ -37,12 +37,11 @@ start() { --name dbmail-imapd \ -- -p ${PIDFILE} -f /etc/dbmail/dbmail.conf 2>&1 eend $? -} +} stop() { ebegin "Stopping DBMail IMAP daemon" start-stop-daemon --stop --quiet --retry 5 \ --pidfile ${PIDFILE} eend $? -} - +} diff --git a/net-mail/dbmail/files/dbmail-lmtpd.initd b/net-mail/dbmail/files/dbmail-lmtpd.initd index 083d0e6b8a8c..fab6a7734376 100644 --- a/net-mail/dbmail/files/dbmail-lmtpd.initd +++ b/net-mail/dbmail/files/dbmail-lmtpd.initd @@ -1,4 +1,4 @@ -#!/sbin/runscript +#!/sbin/openrc-run # BIN_DIR=/usr/sbin @@ -37,12 +37,11 @@ start() { --name dbmail-lmtpd \ -- -p ${PIDFILE} -f /etc/dbmail/dbmail.conf 2>&1 eend $? -} +} stop() { ebegin "Stopping DBMail LMTP daemon" start-stop-daemon --stop --quiet --retry 5 \ --pidfile ${PIDFILE} eend $? -} - +} diff --git a/net-mail/dbmail/files/dbmail-pop3d.initd b/net-mail/dbmail/files/dbmail-pop3d.initd index 16c4d371f2ec..a091b5cf357d 100644 --- a/net-mail/dbmail/files/dbmail-pop3d.initd +++ b/net-mail/dbmail/files/dbmail-pop3d.initd @@ -1,4 +1,4 @@ -#!/sbin/runscript +#!/sbin/openrc-run # BIN_DIR=/usr/sbin @@ -37,12 +37,11 @@ start() { --name dbmail-pop3d \ -- -p ${PIDFILE} -f /etc/dbmail/dbmail.conf 2>&1 eend $? -} +} stop() { ebegin "Stopping DBMail POP3 daemon" start-stop-daemon --stop --quiet --retry 5 \ --pidfile ${PIDFILE} eend $? -} - +} diff --git a/net-mail/dbmail/files/dbmail-timsieved.initd b/net-mail/dbmail/files/dbmail-timsieved.initd index 657bfd586663..652641e6639b 100644 --- a/net-mail/dbmail/files/dbmail-timsieved.initd +++ b/net-mail/dbmail/files/dbmail-timsieved.initd @@ -1,4 +1,4 @@ -#!/sbin/runscript +#!/sbin/openrc-run # # chkconfig: - 91 35 # description: Starts and stops dbmail-timsieved @@ -40,12 +40,11 @@ start() { --exec /usr/sbin/dbmail-timsieved \ -- -p ${PIDFILE} -f /etc/dbmail/dbmail.conf 2>&1 eend $? -} +} stop() { ebegin "Stopping DBMail SIEVE daemon" start-stop-daemon --stop --quiet --retry 5 \ --pidfile ${PIDFILE} eend $? -} - +} |