Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/postsrsd/
Date: Mon, 15 Aug 2022 23:10:35
Message-Id: 1660604445.aed1a61d6f82c8237eed41fb9825bbf9510c92d6.sam@gentoo
1 commit: aed1a61d6f82c8237eed41fb9825bbf9510c92d6
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 15 23:00:45 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 15 23:00:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aed1a61d
7
8 mail-filter/postsrsd: add 1.12
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 mail-filter/postsrsd/Manifest | 1 +
13 mail-filter/postsrsd/postsrsd-1.12.ebuild | 40 +++++++++++++++++++++++++++++++
14 2 files changed, 41 insertions(+)
15
16 diff --git a/mail-filter/postsrsd/Manifest b/mail-filter/postsrsd/Manifest
17 index d130791c8881..22ae61126d30 100644
18 --- a/mail-filter/postsrsd/Manifest
19 +++ b/mail-filter/postsrsd/Manifest
20 @@ -1 +1,2 @@
21 DIST postsrsd-1.11.tar.gz 36309 BLAKE2B 352894d82cf0bc16f711433b83282f31f94dc6358fcdda1362c00834bf41d70ea9f543c45428fca19d9798888a6a3b7c1676b8e3b35e4f21e8e27b707f986592 SHA512 cc041bbbd0277dd416a19e427d63eace3489dc518ebe3a61a022b3e2e159bcb09731a0eb5547eb85bd55887821726b66e828326c109c2ebe26b27dbd062a8d89
22 +DIST postsrsd-1.12.tar.gz 36860 BLAKE2B 9f760e010c791d993df83d1f55bd02f2f42fe336e4aef9aae87e62aab2ef86354d99ff1b9be2b2a24d33006fe0461887224dad11a03139e7ce24ab23a775d3ad SHA512 9b83d89f8ac26ba0477998c495b0566295e16ae62a661a9edaef430cbc2eea592fe178b3686d0ad0578a808d13c13d526ac44a2360fd6e715d701887086fa51a
23
24 diff --git a/mail-filter/postsrsd/postsrsd-1.12.ebuild b/mail-filter/postsrsd/postsrsd-1.12.ebuild
25 new file mode 100644
26 index 000000000000..f0e2b1145da9
27 --- /dev/null
28 +++ b/mail-filter/postsrsd/postsrsd-1.12.ebuild
29 @@ -0,0 +1,40 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit cmake systemd
36 +
37 +DESCRIPTION="Postfix Sender Rewriting Scheme daemon"
38 +HOMEPAGE="https://github.com/roehling/postsrsd"
39 +SRC_URI="https://github.com/roehling/postsrsd/archive/${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~x86"
44 +
45 +BDEPEND="sys-apps/help2man"
46 +
47 +CHROOT_DIR="${EPREFIX}/var/lib/postsrsd"
48 +
49 +src_configure() {
50 + local mycmakeargs=(
51 + -DCHROOT_DIR="${CHROOT_DIR}"
52 +
53 + # This doesn't affect functionality on OpenRC, it just
54 + # forces the build system to install the systemd units.
55 + -DINIT_FLAVOR="systemd"
56 + -DSYSD_UNIT_DIR="$(systemd_get_systemunitdir)"
57 +
58 + -DDOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
59 + )
60 + cmake_src_configure
61 +}
62 +
63 +src_install() {
64 + cmake_src_install
65 +
66 + newinitd "${FILESDIR}"/postsrsd.init-r2 postsrsd
67 + newconfd "${BUILD_DIR}"/postsrsd.default postsrsd
68 + keepdir "${CHROOT_DIR}"
69 +}