summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Marichez <falco@gentoo.org>2008-04-15 13:56:50 +0200
committerRaphaël Marichez <falco@gentoo.org>2008-04-15 13:56:50 +0200
commitc45cc7892f292668d3f83703968c00a446ec5c53 (patch)
tree20b35a31cf87e826e76a63847d14642720e29bb8 /mail-mta/postfix/files/postfix.rc6.2.5
parentadd own mutt ebuild, allowing sidebar on a non-vanilla tree like e.g. nntp flag (diff)
downloadfalco-c45cc7892f292668d3f83703968c00a446ec5c53.tar.gz
falco-c45cc7892f292668d3f83703968c00a446ec5c53.tar.bz2
falco-c45cc7892f292668d3f83703968c00a446ec5c53.zip
Postfix 2.5.x with own patch allowing logging services differently in master.cf
Signed-off-by: Raphaël Marichez <falco@gentoo.org>
Diffstat (limited to 'mail-mta/postfix/files/postfix.rc6.2.5')
-rw-r--r--mail-mta/postfix/files/postfix.rc6.2.541
1 files changed, 41 insertions, 0 deletions
diff --git a/mail-mta/postfix/files/postfix.rc6.2.5 b/mail-mta/postfix/files/postfix.rc6.2.5
new file mode 100644
index 0000000..5a05d7d
--- /dev/null
+++ b/mail-mta/postfix/files/postfix.rc6.2.5
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/postfix.rc6.2.2.9,v 1.2 2007/07/12 08:45:12 zzam Exp $
+
+CONF_DIR="/etc/postfix"
+CONF_OPT="${SVCNAME##*.}"
+if [[ -n ${CONF_OPT} && ${SVCNAME} != "postfix" ]]; then
+ CONF_DIR="${CONF_DIR}.${CONF_OPT}"
+fi
+
+opts="${opts} reload"
+
+depend() {
+ use logger dns ypbind amavisd mysql postgresql antivirus postfix_greylist net saslauthd
+ if [ "${SVCNAME}" == "postfix" ]; then
+ provide mta
+ fi
+}
+
+start() {
+ ebegin "Starting postfix (${CONF_DIR})"
+ if [ ! -d ${CONF_DIR} ]; then
+ eend 1 "${CONF_DIR} does not exist"
+ return 1
+ fi
+ /usr/sbin/postfix -c ${CONF_DIR} start &>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping postfix (${CONF_DIR})"
+ /usr/sbin/postfix -c ${CONF_DIR} stop >/dev/null 2>&1
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading postfix (${CONF_DIR})"
+ /usr/sbin/postfix -c ${CONF_DIR} reload >/dev/null 2>&1
+ eend $?
+}