public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: mail-filter/postsrsd/files/, mail-filter/postsrsd/
@ 2016-04-13 14:17 Dirkjan Ochtman
  0 siblings, 0 replies; only message in thread
From: Dirkjan Ochtman @ 2016-04-13 14:17 UTC (permalink / raw
  To: gentoo-commits

commit:     6513c932bb009883b648f2f60df32b534571f01a
Author:     Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 13 14:11:09 2016 +0000
Commit:     Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
CommitDate: Wed Apr 13 14:17:30 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6513c932

mail-filter/postsrsd: initial version (1.4)

Package-Manager: portage-2.2.26

 mail-filter/postsrsd/Manifest            |  1 +
 mail-filter/postsrsd/files/postsrsd.init | 30 ++++++++++++++++++++++++++++++
 mail-filter/postsrsd/metadata.xml        | 11 +++++++++++
 mail-filter/postsrsd/postsrsd-1.4.ebuild | 25 +++++++++++++++++++++++++
 4 files changed, 67 insertions(+)

diff --git a/mail-filter/postsrsd/Manifest b/mail-filter/postsrsd/Manifest
new file mode 100644
index 0000000..eee16e9
--- /dev/null
+++ b/mail-filter/postsrsd/Manifest
@@ -0,0 +1 @@
+DIST postsrsd-1.4.tar.gz 26555 SHA256 f3230d57c36ba4688cc3beb90fbb0f199a06381e4df2edbc4ef541a9e8a574ff SHA512 e5b9d2091d562030dd8d35117a3c5fb7d99c0613120fc90f74be57af5e88a3fe0ce73a5ce702708047ae37f70c6aedb4a0df018dccbe480048ccb6ed4debbcef WHIRLPOOL 8589c87aa5c59a7b0865d47b74dfa5a50e932f76a55c11fae651f3ad1ffb666d483cc237c4be1f1625a6fb8de1f2bcb689d01c11a6b20100b4056abf9f734ab1

diff --git a/mail-filter/postsrsd/files/postsrsd.init b/mail-filter/postsrsd/files/postsrsd.init
new file mode 100644
index 0000000..2a55b35
--- /dev/null
+++ b/mail-filter/postsrsd/files/postsrsd.init
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 2015 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=
+
+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/metadata.xml b/mail-filter/postsrsd/metadata.xml
new file mode 100644
index 0000000..941bbee
--- /dev/null
+++ b/mail-filter/postsrsd/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>djc@gentoo.org</email>
+    <name>Dirkjan Ochtman</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">roehling/postsrsd</remote-id>
+  </upstream>
+</pkgmetadata>

diff --git a/mail-filter/postsrsd/postsrsd-1.4.ebuild b/mail-filter/postsrsd/postsrsd-1.4.ebuild
new file mode 100644
index 0000000..cecc711
--- /dev/null
+++ b/mail-filter/postsrsd/postsrsd-1.4.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.init" postsrsd
+	newconfd "${BUILD_DIR}/postsrsd.default" postsrsd
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-04-13 14:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-13 14:17 [gentoo-commits] repo/gentoo:master commit in: mail-filter/postsrsd/files/, mail-filter/postsrsd/ Dirkjan Ochtman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox