diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2016-04-13 16:11:09 +0200 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2016-04-13 16:17:30 +0200 |
commit | 6513c932bb009883b648f2f60df32b534571f01a (patch) | |
tree | 4e5dccf62795f7e2ea4fb39679df56059ed95ff6 /mail-filter | |
parent | sci-physics/pythia-6.4.28: Fix SRC_URI for upstream change (diff) | |
download | gentoo-6513c932bb009883b648f2f60df32b534571f01a.tar.gz gentoo-6513c932bb009883b648f2f60df32b534571f01a.tar.bz2 gentoo-6513c932bb009883b648f2f60df32b534571f01a.zip |
mail-filter/postsrsd: initial version (1.4)
Package-Manager: portage-2.2.26
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/postsrsd/Manifest | 1 | ||||
-rw-r--r-- | mail-filter/postsrsd/files/postsrsd.init | 30 | ||||
-rw-r--r-- | mail-filter/postsrsd/metadata.xml | 11 | ||||
-rw-r--r-- | mail-filter/postsrsd/postsrsd-1.4.ebuild | 25 |
4 files changed, 67 insertions, 0 deletions
diff --git a/mail-filter/postsrsd/Manifest b/mail-filter/postsrsd/Manifest new file mode 100644 index 000000000000..eee16e9a76a6 --- /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 000000000000..2a55b358eb40 --- /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 000000000000..941bbee959a4 --- /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 000000000000..cecc7118d006 --- /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 +} |