summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-08-16 00:00:45 +0100
committerSam James <sam@gentoo.org>2022-08-16 00:00:45 +0100
commitaed1a61d6f82c8237eed41fb9825bbf9510c92d6 (patch)
tree9b27da4fb259ccdf20ec80169444e9b6be47b56f /mail-filter
parentapp-arch/xar: Stabilize 1.8.0.0.487.100.1 x86, #865131 (diff)
downloadgentoo-aed1a61d6f82c8237eed41fb9825bbf9510c92d6.tar.gz
gentoo-aed1a61d6f82c8237eed41fb9825bbf9510c92d6.tar.bz2
gentoo-aed1a61d6f82c8237eed41fb9825bbf9510c92d6.zip
mail-filter/postsrsd: add 1.12
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/postsrsd/Manifest1
-rw-r--r--mail-filter/postsrsd/postsrsd-1.12.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/mail-filter/postsrsd/Manifest b/mail-filter/postsrsd/Manifest
index d130791c8881..22ae61126d30 100644
--- a/mail-filter/postsrsd/Manifest
+++ b/mail-filter/postsrsd/Manifest
@@ -1 +1,2 @@
DIST postsrsd-1.11.tar.gz 36309 BLAKE2B 352894d82cf0bc16f711433b83282f31f94dc6358fcdda1362c00834bf41d70ea9f543c45428fca19d9798888a6a3b7c1676b8e3b35e4f21e8e27b707f986592 SHA512 cc041bbbd0277dd416a19e427d63eace3489dc518ebe3a61a022b3e2e159bcb09731a0eb5547eb85bd55887821726b66e828326c109c2ebe26b27dbd062a8d89
+DIST postsrsd-1.12.tar.gz 36860 BLAKE2B 9f760e010c791d993df83d1f55bd02f2f42fe336e4aef9aae87e62aab2ef86354d99ff1b9be2b2a24d33006fe0461887224dad11a03139e7ce24ab23a775d3ad SHA512 9b83d89f8ac26ba0477998c495b0566295e16ae62a661a9edaef430cbc2eea592fe178b3686d0ad0578a808d13c13d526ac44a2360fd6e715d701887086fa51a
diff --git a/mail-filter/postsrsd/postsrsd-1.12.ebuild b/mail-filter/postsrsd/postsrsd-1.12.ebuild
new file mode 100644
index 000000000000..f0e2b1145da9
--- /dev/null
+++ b/mail-filter/postsrsd/postsrsd-1.12.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake systemd
+
+DESCRIPTION="Postfix Sender Rewriting Scheme daemon"
+HOMEPAGE="https://github.com/roehling/postsrsd"
+SRC_URI="https://github.com/roehling/postsrsd/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="sys-apps/help2man"
+
+CHROOT_DIR="${EPREFIX}/var/lib/postsrsd"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCHROOT_DIR="${CHROOT_DIR}"
+
+ # This doesn't affect functionality on OpenRC, it just
+ # forces the build system to install the systemd units.
+ -DINIT_FLAVOR="systemd"
+ -DSYSD_UNIT_DIR="$(systemd_get_systemunitdir)"
+
+ -DDOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ newinitd "${FILESDIR}"/postsrsd.init-r2 postsrsd
+ newconfd "${BUILD_DIR}"/postsrsd.default postsrsd
+ keepdir "${CHROOT_DIR}"
+}