diff options
Diffstat (limited to 'mail/dovecot/files')
-rw-r--r-- | mail/dovecot/files/dovecot-imapd.sh | 21 | ||||
-rw-r--r-- | mail/dovecot/files/patch-aa | 10 | ||||
-rw-r--r-- | mail/dovecot/files/patch-dovecot-example.conf | 47 |
3 files changed, 78 insertions, 0 deletions
diff --git a/mail/dovecot/files/dovecot-imapd.sh b/mail/dovecot/files/dovecot-imapd.sh new file mode 100644 index 000000000000..8295fbea37ea --- /dev/null +++ b/mail/dovecot/files/dovecot-imapd.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in +start) + [ -x ${PREFIX}/sbin/imap-master ] && \ + ${PREFIX}/sbin/imap-master && echo -n ' dovecot-imapd' + ;; +stop) + /usr/bin/killall imap-master && echo -n ' dovecot-imapd' + ;; +*) + echo "Usage: `basename $0` { start | stop }" >&2 + ;; +esac + +exit 0 diff --git a/mail/dovecot/files/patch-aa b/mail/dovecot/files/patch-aa new file mode 100644 index 000000000000..b9fb6fe42327 --- /dev/null +++ b/mail/dovecot/files/patch-aa @@ -0,0 +1,10 @@ +--- src/auth/userinfo-pam.c Thu Aug 1 05:16:44 2002 ++++ src/auth/userinfo-pam.c Mon Aug 12 23:41:48 2002 +@@ -21,7 +21,6 @@ + + #include <stdlib.h> + #include <unistd.h> +-#include <shadow.h> + + #include <security/pam_appl.h> + diff --git a/mail/dovecot/files/patch-dovecot-example.conf b/mail/dovecot/files/patch-dovecot-example.conf new file mode 100644 index 000000000000..a78d0c468700 --- /dev/null +++ b/mail/dovecot/files/patch-dovecot-example.conf @@ -0,0 +1,47 @@ +--- dovecot-example.conf.orig Thu Aug 29 07:59:26 2002 ++++ dovecot-example.conf Sun Sep 1 22:07:55 2002 +@@ -38,7 +38,7 @@ + ## + + # Executable location +-#login_executable = /usr/lib/dovecot/imap-login ++#login_executable = %%PREFIX%%/lib/dovecot/imap-login + + # User to use for imap-login process + #login_user = imapd +@@ -46,7 +46,7 @@ + # Directory where imap-auth places authentication UNIX sockets which login + # needs to be able to connect to. The sockets are created when running as + # root, so you don't need to give imap-auth any access for it. +-#login_dir = /var/run/dovecot/login ++#login_dir = /var/dovecot/login + + # chroot() imap-login process to the login_dir. Only reason not to do this + # is if you wish to run the whole imapd without roots. +@@ -64,7 +64,7 @@ + ## + + # Executable location +-#imap_executable = /usr/lib/dovecot/imap ++#imap_executable = %%PREFIX%%/lib/dovecot/imap + + # Maximum number of running imap processes. When this limit is reached, + # new users aren't allowed to log in. +@@ -139,7 +139,7 @@ + auth_userinfo = pam + + # Executable location +-#auth_executable = /var/lib/dovecot/imap-auth ++#auth_executable = %%PREFIX%%/lib/dovecot/imap-auth + + # User to use for the process. Only shadow and pam authentication requires + # roots, so use something else if possible. +@@ -162,7 +162,7 @@ + #auth_realms = + #auth_userinfo = passwd-file /etc/passwd.imap + #auth_user = imapauth +-#auth_chroot = /var/run/dovecot/auth ++#auth_chroot = /var/dovecot/auth + + # if you plan to use only passwd-file, you don't need the two auth processes, + # simply set "auth_methods = plain digest-md5" |