summaryrefslogtreecommitdiff
path: root/community/courier-mta
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-01 23:14:36 +0000
committerroot <root@rshg054.dnsready.net>2011-09-01 23:14:36 +0000
commiteb3d40c72c9dd19f6a5ef79b41e9d8ba73ccd928 (patch)
tree8b84e75352e1becac08cfc404361e88753b5daac /community/courier-mta
parent31f40feaa17912cf0ebfa72dd9368264633b3830 (diff)
Thu Sep 1 23:14:36 UTC 2011
Diffstat (limited to 'community/courier-mta')
-rw-r--r--community/courier-mta/PKGBUILD5
-rw-r--r--community/courier-mta/esmtpd-msa.rc.d45
2 files changed, 49 insertions, 1 deletions
diff --git a/community/courier-mta/PKGBUILD b/community/courier-mta/PKGBUILD
index 7b4722108..d4ceae821 100644
--- a/community/courier-mta/PKGBUILD
+++ b/community/courier-mta/PKGBUILD
@@ -8,7 +8,7 @@
pkgname=courier-mta
pkgver=0.66.3
-pkgrel=3
+pkgrel=4
pkgdesc="IMAP(s)/POP3(s) and SMTP Server with ML-manager, webmail and webconfig"
arch=(i686 x86_64)
license=('GPL2')
@@ -34,6 +34,7 @@ source=(http://downloads.sourceforge.net/project/courier/courier/${pkgver}/couri
courier-mta.conf.d
esmtpd.rc.d
esmtpd-ssl.rc.d
+ esmtpd-msa.rc.d
imapd.rc.d
imapd-ssl.rc.d
pop3d.rc.d
@@ -45,6 +46,7 @@ md5sums=('3b28f14afe3db09b74b4845323c3e982'
'f3ff70b40c7a1f7a017e8c4cc4d92f4f'
'caabce8c7b66296b602316aa5af5d4c5'
'1c8b1b66ebafa4ff09ffc0106a9dc82c'
+ 'dae6c7d5ff0cce0fba5729fedf2a9051'
'd0cc5eab5d3e0ec33dadd0392421f63e'
'5873a96aa149edda281730010fb4db34'
'faa09e06a5dc41ee89ab1f8fa6886b63'
@@ -123,6 +125,7 @@ package() {
install -D -m 755 ${srcdir}/pop3d-ssl.rc.d ${pkgdir}/etc/rc.d/pop3d-ssl
install -D -m 755 ${srcdir}/esmtpd.rc.d ${pkgdir}/etc/rc.d/esmtpd
install -D -m 755 ${srcdir}/esmtpd-ssl.rc.d ${pkgdir}/etc/rc.d/esmtpd-ssl
+ install -D -m 755 ${srcdir}/esmtpd-msa.rc.d ${pkgdir}/etc/rc.d/esmtpd-msa
install -D -m 755 ${srcdir}/webmaild.rc.d ${pkgdir}/etc/rc.d/webmaild
#install -Dm 655 ${srcdir}/courier-webmail-cleancache.cron.hourly \
# ${pkgdir}/etc/cron.hourly/courier-webmail-cleancache
diff --git a/community/courier-mta/esmtpd-msa.rc.d b/community/courier-mta/esmtpd-msa.rc.d
new file mode 100644
index 000000000..31458aca8
--- /dev/null
+++ b/community/courier-mta/esmtpd-msa.rc.d
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+ start)
+
+ [ -d /var/run/courier ] || mkdir -p /var/run/courier
+ chown courier:courier /var/run/courier
+
+ if ck_daemon authdaemond; then
+ echo "ERROR: authdaemond is not running"
+ stat_fail
+ exit 1
+ fi
+
+ stat_busy "Starting Courier esmtpd-msa"
+ /usr/sbin/esmtpd-msa start
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon esmtpd-msa
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping Courier esmtpd-msa"
+ /usr/sbin/esmtpd-msa stop > /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon esmtpd-msa
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0