[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r14939: Added missing files dir for mixminion ebuild. (in incognito/trunk/portage.overlay/mail-mta/mixminion: . files)



Author: anonym
Date: 2008-06-04 05:26:51 -0400 (Wed, 04 Jun 2008)
New Revision: 14939

Added:
   incognito/trunk/portage.overlay/mail-mta/mixminion/files/
   incognito/trunk/portage.overlay/mail-mta/mixminion/files/mixminion.initd
   incognito/trunk/portage.overlay/mail-mta/mixminion/files/mixminiond.conf.patch
Log:
Added missing files dir for mixminion ebuild.


Added: incognito/trunk/portage.overlay/mail-mta/mixminion/files/mixminion.initd
===================================================================
--- incognito/trunk/portage.overlay/mail-mta/mixminion/files/mixminion.initd	                        (rev 0)
+++ incognito/trunk/portage.overlay/mail-mta/mixminion/files/mixminion.initd	2008-06-04 09:26:51 UTC (rev 14939)
@@ -0,0 +1,40 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+depend() {
+        need net
+}
+
+checkconfig() {
+        # first check that it exists
+        if [ ! -f /etc/mixminion/mixminiond.conf ] ; then
+                eerror "You need to setup /etc/mixminion/mixminiond.conf first"
+                eerror "Example is in /etc/mixminion/mixminiond.conf.sample"
+                return 1
+        fi
+}
+
+
+
+reload() {
+	checkconfig || return 1
+	ebegin "Reloading Mixminion"
+	/usr/bin/mixminiond reload -f /etc/mixminion/mixminiond.conf
+	eend $?
+}
+
+start() {
+	checkconfig || return 1
+        ebegin "Starting Mixminion"
+        HOME=/var/lib/mixminion
+	start-stop-daemon --start --quiet --chuid mixminion --exec /usr/bin/mixminiond -- start --quiet --daemon -f /etc/mixminion/mixminiond.conf
+        eend $?
+}
+
+stop() {
+        ebegin "Stopping Mixminion"
+	start-stop-daemon --stop --quiet --chuid mixminion --exec /usr/bin/mixminiond
+        eend $?
+}

Added: incognito/trunk/portage.overlay/mail-mta/mixminion/files/mixminiond.conf.patch
===================================================================
--- incognito/trunk/portage.overlay/mail-mta/mixminion/files/mixminiond.conf.patch	                        (rev 0)
+++ incognito/trunk/portage.overlay/mail-mta/mixminion/files/mixminiond.conf.patch	2008-06-04 09:26:51 UTC (rev 14939)
@@ -0,0 +1,23 @@
+--- Mixminion-0.0.8alpha2/etc/mixminiond.conf.orig	2007-05-19 09:46:36.000000000 -0500
++++ Mixminion-0.0.8alpha2/etc/mixminiond.conf	2007-05-19 09:50:53.000000000 -0500
+@@ -70,13 +70,13 @@
+ #
+ #    Here is an alternative layout:
+ #
+-#BaseDir:   /var/lib/mixminion
+-#KeyDir:    /var/lib/mixminion/keys
+-#WorkDir:   /var/lib/mixminion/work
+-#QueueDir:  /var/spool/mixminion
+-#PidFile:   /var/run/mixminion/mixminion.pid
+-#LogFile:   /var/log/mixminion/log
+-#StatsFile: /var/log/mixminion/stats
++BaseDir:   /var/lib/mixminion
++KeyDir:    /var/lib/mixminion/keys
++WorkDir:   /var/lib/mixminion/work
++QueueDir:  /var/spool/mixminion
++PidFile:   /var/run/mixminion/mixminion.pid
++LogFile:   /var/log/mixminion/log
++StatsFile: /var/log/mixminion/stats
+ 
+ #    Minimum severity of messages to include in log file.  Allowable values
+ #    are: 'NEVER', 'FATAL', 'ERROR', 'WARN', 'INFO', 'DEBUG', and 'TRACE'.