From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 46E181580FD for ; Sat, 28 Dec 2024 10:28:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 821F4E01B5; Sat, 28 Dec 2024 10:28:50 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CEE13E07BA for ; Sat, 28 Dec 2024 10:28:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1C6A7335D7B for ; Sat, 28 Dec 2024 10:28:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7841397F for ; Sat, 28 Dec 2024 10:28:46 +0000 (UTC) From: "Thomas Raschbacher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Raschbacher" Message-ID: <1735381708.d835f361f84910d7d54d81d46c6f330f48ad34b0.lordvan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/dbmail/files/, net-mail/dbmail/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-mail/dbmail/Manifest net-mail/dbmail/dbmail-3.4.1.ebuild net-mail/dbmail/files/dbmail-3.4.1-fix-incompatible-pointer-type.patch X-VCS-Directories: net-mail/dbmail/files/ net-mail/dbmail/ X-VCS-Committer: lordvan X-VCS-Committer-Name: Thomas Raschbacher X-VCS-Revision: d835f361f84910d7d54d81d46c6f330f48ad34b0 X-VCS-Branch: master Date: Sat, 28 Dec 2024 10:28:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8c5a3dc1-7ac3-4405-a852-2a07c946237a X-Archives-Hash: 2bdf7799f35ba4686e61b00c73e74dcf commit: d835f361f84910d7d54d81d46c6f330f48ad34b0 Author: Thomas Raschbacher gentoo org> AuthorDate: Sat Dec 28 10:28:01 2024 +0000 Commit: Thomas Raschbacher gentoo org> CommitDate: Sat Dec 28 10:28:28 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d835f361 net-mail/dbmail: add 3.4.1 Signed-off-by: Thomas Raschbacher gentoo.org> net-mail/dbmail/Manifest | 1 + net-mail/dbmail/dbmail-3.4.1.ebuild | 100 +++++++++++++++++++++ ...bmail-3.4.1-fix-incompatible-pointer-type.patch | 13 +++ 3 files changed, 114 insertions(+) diff --git a/net-mail/dbmail/Manifest b/net-mail/dbmail/Manifest index c5cc5878b4da..737805f2bf9a 100644 --- a/net-mail/dbmail/Manifest +++ b/net-mail/dbmail/Manifest @@ -1,3 +1,4 @@ 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 +DIST dbmail-3.4.1.tar.gz 2531604 BLAKE2B bca7935b9a6b237cfd69afa72c895bdd393c5cd7875b856805f3534a818eecd5564c4e08c432b7f6d3a33bec0be3596169900025141596426542ad73844a4624 SHA512 bf9c55c796306008e957812c9fad6eb4e5ea35c749aafbf035d4e05f59db568f91f9857ad049f5d7b85107332764e030428203e6b67dbe82ad8a26fe6c3e0d6d diff --git a/net-mail/dbmail/dbmail-3.4.1.ebuild b/net-mail/dbmail/dbmail-3.4.1.ebuild new file mode 100644 index 000000000000..58dc5e39dea6 --- /dev/null +++ b/net-mail/dbmail/dbmail-3.4.1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2024 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://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 ) + +PATCHES=( "${FILESDIR}"/${P}-fix-incompatible-pointer-type.patch ) + +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-3.4.1-fix-incompatible-pointer-type.patch b/net-mail/dbmail/files/dbmail-3.4.1-fix-incompatible-pointer-type.patch new file mode 100644 index 000000000000..49ac4943f800 --- /dev/null +++ b/net-mail/dbmail/files/dbmail-3.4.1-fix-incompatible-pointer-type.patch @@ -0,0 +1,13 @@ +Take from: https://github.com/dbmail/dbmail/commit/01d5d422f88c5edd6f1f77787cd6459d756d00b4 + +--- a/src/dm_mailboxstate.c ++++ b/src/dm_mailboxstate.c +@@ -643,7 +643,7 @@ + + gboolean MailboxState_hasKeyword(T M, const char *keyword) + { +- if (g_list_find_custom(M->keywords, (gpointer)keyword, dm_strcmpdata)) ++ if (g_list_find_custom(M->keywords, (gpointer)keyword, (GCompareFunc) dm_strcmpdata)) + return TRUE; + return FALSE; + }