aboutsummaryrefslogtreecommitdiffstats
path: root/community/postsrsd/10-fix-defaults.patch
diff options
context:
space:
mode:
authorKevin Daudt <me@ikke.info>2016-12-19 19:33:14 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2016-12-20 14:30:43 +0100
commitb278832ab0ca264b259b80e724eb22e13076523e (patch)
treee0ec81f60806cdfa84233edbca74e8f6100bddf7 /community/postsrsd/10-fix-defaults.patch
parent6e161a676fd2388808fb2ac211aed9e23e4f7344 (diff)
downloadaports-b278832ab0ca264b259b80e724eb22e13076523e.tar.gz
aports-b278832ab0ca264b259b80e724eb22e13076523e.tar.bz2
aports-b278832ab0ca264b259b80e724eb22e13076523e.tar.xz
community/postsrsd: new aport
Diffstat (limited to 'community/postsrsd/10-fix-defaults.patch')
-rw-r--r--community/postsrsd/10-fix-defaults.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/community/postsrsd/10-fix-defaults.patch b/community/postsrsd/10-fix-defaults.patch
new file mode 100644
index 0000000000..f234a3d4f2
--- /dev/null
+++ b/community/postsrsd/10-fix-defaults.patch
@@ -0,0 +1,22 @@
+diff --git a/init/postsrsd.default.in b/init/postsrsd.default.in
+index 7cf2b941db..5f7ad5b916 100644
+--- a/init/postsrsd.default.in
++++ b/init/postsrsd.default.in
+@@ -21,7 +21,7 @@ SRS_SEPARATOR==
+ # When postsrsd is installed for the first time, a random secret is generated
+ # and stored in /etc/postsrsd.secret. For most installations, that's just fine.
+ #
+-SRS_SECRET=@SYSCONF_DIR@/@PROJECT_NAME@.secret
++SRS_SECRET=@SYSCONF_DIR@/@PROJECT_NAME@/@PROJECT_NAME@.secret
+
+ # Local ports for TCP list.
+ # These ports are used to bind the TCP list for postfix. If you change
+@@ -35,7 +35,7 @@ SRS_REVERSE_PORT=10002
+ # Drop root privileges and run as another user after initialization.
+ # This is highly recommended as postsrsd handles untrusted input.
+ #
+-RUN_AS=nobody
++RUN_AS=@PROJECT_NAME@
+
+ # Jail daemon in chroot environment
+ CHROOT=@CHROOT_DIR@