From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-912354-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3570D1395E3 for <garchives@archives.gentoo.org>; Sat, 19 Nov 2016 20:56:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 81A18E0AB3; Sat, 19 Nov 2016 20:56:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 498E9E0AB3 for <gentoo-commits@lists.gentoo.org>; Sat, 19 Nov 2016 20:56:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4A1B5341375 for <gentoo-commits@lists.gentoo.org>; Sat, 19 Nov 2016 20:56:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AB87F332 for <gentoo-commits@lists.gentoo.org>; Sat, 19 Nov 2016 20:56:49 +0000 (UTC) From: "Dirkjan Ochtman" <djc@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Dirkjan Ochtman" <djc@gentoo.org> Message-ID: <1479589003.5ed1b43da87f58c3c69319d81a81ff71438725ce.djc@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/postsrsd/, mail-filter/postsrsd/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-filter/postsrsd/files/postsrsd.init-r1 mail-filter/postsrsd/postsrsd-1.4-r1.ebuild X-VCS-Directories: mail-filter/postsrsd/files/ mail-filter/postsrsd/ X-VCS-Committer: djc X-VCS-Committer-Name: Dirkjan Ochtman X-VCS-Revision: 5ed1b43da87f58c3c69319d81a81ff71438725ce X-VCS-Branch: master Date: Sat, 19 Nov 2016 20:56:49 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 29a4a36f-a892-4d59-9286-7310c32cdb1f X-Archives-Hash: 45b39f5fd8682c923c710303e9fe8fb6 commit: 5ed1b43da87f58c3c69319d81a81ff71438725ce Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> AuthorDate: Sat Nov 19 20:50:20 2016 +0000 Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> CommitDate: Sat Nov 19 20:56:43 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ed1b43d mail-filter/postsrsd: stop ignoring config file options (fixes bug 600152) Package-Manager: portage-2.3.0 mail-filter/postsrsd/files/postsrsd.init-r1 | 30 +++++++++++++++++++++++++++++ mail-filter/postsrsd/postsrsd-1.4-r1.ebuild | 25 ++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/mail-filter/postsrsd/files/postsrsd.init-r1 b/mail-filter/postsrsd/files/postsrsd.init-r1 new file mode 100644 index 00000000..023a968 --- /dev/null +++ b/mail-filter/postsrsd/files/postsrsd.init-r1 @@ -0,0 +1,30 @@ +#!/sbin/openrc-run +# Copyright 2015-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PIDFILE=/var/run/$SVCNAME.pid +SRS_DOMAIN="${SRS_DOMAIN:-`postconf -h mydomain || true`}" +SRS_EXCLUDE_DOMAINS="${SRS_EXCLUDE_DOMAINS:-''}" + +depend() { + need net +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --name $SVCNAME \ + --exec /usr/sbin/postsrsd \ + -- -f "$SRS_FORWARD_PORT" -r "$SRS_REVERSE_PORT" \ + -d "$SRS_DOMAIN" -s "$SRS_SECRET" -a "$SRS_SEPARATOR" \ + -u "$RUN_AS" -p "$PIDFILE" -c "$CHROOT" \ + -D -X"$SRS_EXCLUDE_DOMAINS" + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ + --name $SVCNAME + eend $? +} diff --git a/mail-filter/postsrsd/postsrsd-1.4-r1.ebuild b/mail-filter/postsrsd/postsrsd-1.4-r1.ebuild new file mode 100644 index 00000000..763685e --- /dev/null +++ b/mail-filter/postsrsd/postsrsd-1.4-r1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils user + +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="" + +DEPEND="" +RDEPEND="" + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}/postsrsd-r1.init" postsrsd + newconfd "${BUILD_DIR}/postsrsd.default" postsrsd +}