mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
mail-filter/postsrsd: initial version (1.4)
Package-Manager: portage-2.2.26
This commit is contained in:
1
mail-filter/postsrsd/Manifest
Normal file
1
mail-filter/postsrsd/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST postsrsd-1.4.tar.gz 26555 SHA256 f3230d57c36ba4688cc3beb90fbb0f199a06381e4df2edbc4ef541a9e8a574ff SHA512 e5b9d2091d562030dd8d35117a3c5fb7d99c0613120fc90f74be57af5e88a3fe0ce73a5ce702708047ae37f70c6aedb4a0df018dccbe480048ccb6ed4debbcef WHIRLPOOL 8589c87aa5c59a7b0865d47b74dfa5a50e932f76a55c11fae651f3ad1ffb666d483cc237c4be1f1625a6fb8de1f2bcb689d01c11a6b20100b4056abf9f734ab1
|
||||
30
mail-filter/postsrsd/files/postsrsd.init
Normal file
30
mail-filter/postsrsd/files/postsrsd.init
Normal file
@@ -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 $?
|
||||
}
|
||||
11
mail-filter/postsrsd/metadata.xml
Normal file
11
mail-filter/postsrsd/metadata.xml
Normal file
@@ -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>
|
||||
25
mail-filter/postsrsd/postsrsd-1.4.ebuild
Normal file
25
mail-filter/postsrsd/postsrsd-1.4.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user