aboutsummaryrefslogtreecommitdiff
path: root/mail/postfix/patches/300-init.patch
diff options
context:
space:
mode:
authorDenis Shulyaka <Shulyaka@gmail.com>2014-10-01 01:08:26 +0400
committerDenis Shulyaka <Shulyaka@gmail.com>2014-10-20 08:53:43 +0400
commitcbe59734b6400b896f95084ed5166e4381330c80 (patch)
tree7ab1562eb559154d6cbfff3eef529cf88dd4e416 /mail/postfix/patches/300-init.patch
parent99f0ea47ceeaba1f901adaecbae52f93347d11c3 (diff)
Postfix MTA
Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
Diffstat (limited to 'mail/postfix/patches/300-init.patch')
-rw-r--r--mail/postfix/patches/300-init.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/mail/postfix/patches/300-init.patch b/mail/postfix/patches/300-init.patch
new file mode 100644
index 000000000..3c1bb7f5f
--- /dev/null
+++ b/mail/postfix/patches/300-init.patch
@@ -0,0 +1,23 @@
+diff -rupN postfix-2.8.1/postfix_init postfix-2.8.1_patched/postfix_init
+--- postfix-2.8.1/postfix_init 1970-01-01 03:00:00.000000000 +0300
++++ postfix-2.8.1_patched/postfix_init 2011-03-06 21:44:50.000000000 +0300
+@@ -0,0 +1,19 @@
++#!/bin/sh /etc/rc.common
++# Copyright (C) 2014 OpenWrt.org
++
++START=50
++STOP=50
++
++create_users() {
++ group_exists postfix || group_add postfix 87
++ user_exists postfix || user_add postfix 87
++ group_exists postdrop || group_add postdrop 88
++}
++
++start() {
++ postfix start
++}
++
++stop() {
++ postfix stop
++}