From: "Dirkjan Ochtman" <djc@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/postsrsd/, mail-filter/postsrsd/files/
Date: Thu, 7 Apr 2022 14:13:02 +0000 (UTC) [thread overview]
Message-ID: <1649340761.69853414eda033b50db1931eede45b520ab1de0d.djc@gentoo> (raw)
commit: 69853414eda033b50db1931eede45b520ab1de0d
Author: nic <nic <AT> boet <DOT> cc>
AuthorDate: Wed Mar 30 15:55:50 2022 +0000
Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
CommitDate: Thu Apr 7 14:12:41 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69853414
mail-filter/postsrsd fixes initd
pass SRS_HASHLENGTH, SRS_HASHMIN, SRS_LISTEN_ADDR vars from confd into
initd
remove old unused init
EAPI 8 the new ebuild
Closes: https://bugs.gentoo.org/836390
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Nic Boet <nic <AT> boet.cc>
Signed-off-by: Dirkjan Ochtman <djc <AT> gentoo.org>
.../files/{postsrsd.init => postsrsd.init-r2} | 7 +++--
mail-filter/postsrsd/postsrsd-1.11-r1.ebuild | 35 ++++++++++++++++++++++
2 files changed, 39 insertions(+), 3 deletions(-)
diff --git a/mail-filter/postsrsd/files/postsrsd.init b/mail-filter/postsrsd/files/postsrsd.init-r2
similarity index 74%
rename from mail-filter/postsrsd/files/postsrsd.init
rename to mail-filter/postsrsd/files/postsrsd.init-r2
index acc00232be5b..e1b21218899e 100644
--- a/mail-filter/postsrsd/files/postsrsd.init
+++ b/mail-filter/postsrsd/files/postsrsd.init-r2
@@ -1,10 +1,10 @@
#!/sbin/openrc-run
-# Copyright 2015 Gentoo Foundation
+# Copyright 2015-2022 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
PIDFILE=/var/run/$SVCNAME.pid
-SRS_DOMAIN=`postconf -h mydomain || true`
-SRS_EXCLUDE_DOMAINS=
+SRS_DOMAIN="${SRS_DOMAIN:-`postconf -h mydomain || true`}"
+SRS_EXCLUDE_DOMAINS="${SRS_EXCLUDE_DOMAINS:-''}"
depend() {
need net
@@ -18,6 +18,7 @@ start() {
-- -f "$SRS_FORWARD_PORT" -r "$SRS_REVERSE_PORT" \
-d "$SRS_DOMAIN" -s "$SRS_SECRET" -a "$SRS_SEPARATOR" \
-u "$RUN_AS" -p "$PIDFILE" -c "$CHROOT" \
+ -n "$SRS_HASHLENGTH" -N "$SRS_HASHMIN" -l "$SRS_LISTEN_ADDR" \
-D -X"$SRS_EXCLUDE_DOMAINS"
eend $?
}
diff --git a/mail-filter/postsrsd/postsrsd-1.11-r1.ebuild b/mail-filter/postsrsd/postsrsd-1.11-r1.ebuild
new file mode 100644
index 000000000000..25a52f452d8a
--- /dev/null
+++ b/mail-filter/postsrsd/postsrsd-1.11-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Postfix Sender Rewriting Scheme daemon"
+SRC_URI="https://github.com/roehling/postsrsd/archive/${PV}.tar.gz -> ${P}.tar.gz"
+HOMEPAGE="https://github.com/roehling/postsrsd"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+BDEPEND=">=dev-util/cmake-2.4"
+RDEPEND=""
+
+CHROOT_DIR="${EPREFIX}/var/lib/postsrsd"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCHROOT_DIR=${CHROOT_DIR}
+ -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}
+}
next reply other threads:[~2022-04-07 14:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-07 14:13 Dirkjan Ochtman [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-12-20 22:51 [gentoo-commits] repo/gentoo:master commit in: mail-filter/postsrsd/, mail-filter/postsrsd/files/ Andreas Sturmlechner
2016-11-19 20:56 Dirkjan Ochtman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1649340761.69853414eda033b50db1931eede45b520ab1de0d.djc@gentoo \
--to=djc@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox