diff options
Diffstat (limited to 'community/courier-imap')
-rw-r--r-- | community/courier-imap/PKGBUILD | 94 | ||||
-rw-r--r-- | community/courier-imap/courier-imap.conf.d | 18 | ||||
-rw-r--r-- | community/courier-imap/courier-imap.install | 16 | ||||
-rw-r--r-- | community/courier-imap/courier-imap.pam | 5 | ||||
-rw-r--r-- | community/courier-imap/courier-imap.rc.d | 62 | ||||
-rw-r--r-- | community/courier-imap/imapd-ssl.rc.d | 47 | ||||
-rw-r--r-- | community/courier-imap/imapd.rc.d | 47 | ||||
-rw-r--r-- | community/courier-imap/pop3d-ssl.rc.d | 47 | ||||
-rw-r--r-- | community/courier-imap/pop3d.rc.d | 47 |
9 files changed, 0 insertions, 383 deletions
diff --git a/community/courier-imap/PKGBUILD b/community/courier-imap/PKGBUILD deleted file mode 100644 index e1bb3f4f8..000000000 --- a/community/courier-imap/PKGBUILD +++ /dev/null @@ -1,94 +0,0 @@ -# $Id: PKGBUILD 60091 2011-12-05 02:57:32Z svenstaro $ -# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> -# Contributor: tobias <tobias@archlinux.org> -# Committer: Manolis Tzanidakis <manolis@archlinux.org> - -pkgname=courier-imap -pkgver=4.10.0 -pkgrel=1 -pkgdesc="IMAP(s)/POP3(s) Server" -arch=('i686' 'x86_64') -license=('GPL2') -url="http://www.courier-mta.org/imap/" -depends=('courier-maildrop>=2.5.0' 'gcc-libs' 'gamin' 'gdbm' 'openssl') -backup=('etc/courier-imap/imapd.cnf' 'etc/courier-imap/pop3d.cnf' \ - 'etc/courier-imap/imapd' 'etc/courier-imap/imapd-ssl' \ - 'etc/courier-imap/pop3d' 'etc/courier-imap/pop3d-ssl'\ - 'etc/conf.d/courier-imap') -conflicts=('courier-mta') -provides=('imap-server' 'pop3-server') -options=('!libtool') -install=$pkgname.install -source=(http://downloads.sourceforge.net/project/courier/imap/${pkgver}/${pkgname}-${pkgver}.tar.bz2 - courier-imap.conf.d - courier-imap.rc.d - imapd.rc.d - imapd-ssl.rc.d - pop3d.rc.d - pop3d-ssl.rc.d) -md5sums=('2f95c99b9ad1380b9f3ac733ccd741a2' - '3e08f017f6c5a52dea28f6f0dbd50b86' - '500c37831974f4676b67e650c67a59f6' - '6574c8046e44698efa7452c4b445d88e' - '437167a58efddc523f25180df284da20' - '1be23fb224bde93b23da6e771bd1cf01' - 'a326309b02fed3d7226d9aac88add7f2') - -# MIGRATION NOTE: -# In 2012, support for courier-imap.conf.d and courier-imap.rc.d will be removed. -# Remove those files and this note and also courier-imap.install - -build() { - cd ${srcdir}/${pkgname}-${pkgver} - - # fix a tiny bug - sed -i -e \ - 's|--with-authchangepwdir=/var/tmp/dev/null|--with-authchangepwdir=$libexecdir/authlib|' \ - configure && chmod 755 configure - - ./configure --prefix=/usr \ - --sysconfdir=/etc/courier-imap \ - --libexecdir=/usr/lib/courier-imap \ - --localstatedir=/var/spool/courier-imap \ - --disable-root-check \ - --enable-unicode \ - --enable-workarounds-for-imap-client-bugs \ - --with-piddir=/var/run/courier \ - --with-trashquota \ - --with-db=gdbm \ - --with-trashquota \ - --with-mailuser=courier --with-mailgroup=courier - make -} - -package() { - cd ${srcdir}/${pkgname}-${pkgver} - - make DESTDIR=${pkgdir} install - - # cleanup - provided by courier-maildrop - rm ${pkgdir}/usr/bin/{deliverquota,maildirmake} - rm ${pkgdir}/usr/share/man/man1/maildirmake* - rm ${pkgdir}/usr/share/man/man8/deliverquota* - find ${pkgdir} -name '*\.a' -exec -rm -f {} \; - ############################################################################### - # this is what usually "make install-configure" does - # *.dist files get rid of "dist" - for distfile in ${pkgdir}/etc/courier-imap/*.dist; do - mv ${distfile} ${pkgdir}/etc/courier-imap/$(basename ${distfile} .dist) - done - sed -i 's|TLS_CERTFILE=/usr/share/|TLS_CERTFILE=/etc/courier-imap/|' \ - ${pkgdir}/etc/courier-imap/*-ssl - for pamfile in imap/*.pam; do - sed -i "s|/lib/security/||;s|pam_pwdb|pam_unix|" ${pamfile} - install -Dm 644 ${pamfile} \ - ${pkgdir}/etc/pam.d/$(basename ${pamfile} .pam | sed "s/d$//") - done - # install thingies - install -D -m 755 ${srcdir}/courier-imap.rc.d ${pkgdir}/etc/rc.d/courier-imap - install -D -m 755 ${srcdir}/imapd.rc.d ${pkgdir}/etc/rc.d/imapd - install -D -m 755 ${srcdir}/imapd-ssl.rc.d ${pkgdir}/etc/rc.d/imapd-ssl - install -D -m 755 ${srcdir}/pop3d.rc.d ${pkgdir}/etc/rc.d/pop3d - install -D -m 755 ${srcdir}/pop3d-ssl.rc.d ${pkgdir}/etc/rc.d/pop3d-ssl - install -D -m 644 ${srcdir}/courier-imap.conf.d ${pkgdir}/etc/conf.d/courier-imap -} diff --git a/community/courier-imap/courier-imap.conf.d b/community/courier-imap/courier-imap.conf.d deleted file mode 100644 index 66049470d..000000000 --- a/community/courier-imap/courier-imap.conf.d +++ /dev/null @@ -1,18 +0,0 @@ -# -# Parameters to be passed to courier-imap -# -# -# Select the service you want started with courier-imap -# -# Available options : -# imapd pop3d imapd-ssl pop3d-ssl -# -CI_DAEMONS="imapd pop3d imapd-ssl pop3d-ssl" - -# If you want authdaemond to be automatically started and -# stopped by courier-imap, set this to "true" -AUTO_AUTHDAEMON="false" - -# Courier will start this many seconds after autodaemond if -# AUTO_AUTHDAEMON is set to "true" -AUTO_AUTHDAEMON_LAG=2 diff --git a/community/courier-imap/courier-imap.install b/community/courier-imap/courier-imap.install deleted file mode 100644 index 9046777a7..000000000 --- a/community/courier-imap/courier-imap.install +++ /dev/null @@ -1,16 +0,0 @@ -post_upgrade() { - echo "Please migrate to the new daemon format:" - echo "/etc/rc.d/courier-imap has been split into separate daemons:" - echo " imapd, imads-ssl, pop3d, pop3d-ssl" - echo "This elimates the need for /etc/conf.d/courier-imap" - echo "Update your /etc/rc.conf and manually add the desired daemons. Make sure" - echo "you first start authdaemond before any other of these daemons." - echo "Example prior to this change:" - echo " DAEMONS=( ... courier-imap ...)" - echo "Example after this change:" - echo " DAEMONS=( ... authdaemond imapd imapd-ssl pop3d pop3d-ssl ... )" - echo "This allows better control over the daemons and will generate" - echo "correct entries in /run/daemons" - echo "An old configuration will keep working but please do migrate in time" - echo "as support for this will be removed some time in 2012." -} diff --git a/community/courier-imap/courier-imap.pam b/community/courier-imap/courier-imap.pam deleted file mode 100644 index fa52db541..000000000 --- a/community/courier-imap/courier-imap.pam +++ /dev/null @@ -1,5 +0,0 @@ -#%PAM-1.0 -auth required pam_unix.so nullok -account required pam_unix.so -password required pam_unix.so -session required pam_unix.so diff --git a/community/courier-imap/courier-imap.rc.d b/community/courier-imap/courier-imap.rc.d deleted file mode 100644 index 8876fe401..000000000 --- a/community/courier-imap/courier-imap.rc.d +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/bash - -CI_DAEMONS= -[ -f /etc/conf.d/courier-imap ] && . /etc/conf.d/courier-imap -[ -z $AUTO_AUTHDAEMON_LAG ] && AUTO_AUTHDAEMON_LAG=2 -[ -z $AUTO_AUTHDAEMON ] && AUTO_AUTHDAEMON="false" - -. /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 [ "$AUTO_AUTHDAEMON" == "true" ]; then - /etc/rc.d/authdaemond start - sleep ${AUTO_AUTHDAEMON_LAG} - fi - if ck_daemon authdaemond; then - echo "ERROR: authdaemond is not running" - stat_fail - exit 1 - fi - for daemon in $CI_DAEMONS; do - stat_busy "Starting Courier ${daemon}" - /usr/lib/courier-imap/${daemon}.rc start - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon $daemon - stat_done - fi - done - ;; - stop) - for daemon in $CI_DAEMONS; do - stat_busy "Stopping Courier ${daemon}" - /usr/lib/courier-imap/$daemon.rc stop > /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon $daemon - stat_done - fi - done - if [ "$AUTO_AUTHDAEMON" == "true" ]; then - /etc/rc.d/authdaemond stop - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 -~ -~ diff --git a/community/courier-imap/imapd-ssl.rc.d b/community/courier-imap/imapd-ssl.rc.d deleted file mode 100644 index 6730d452c..000000000 --- a/community/courier-imap/imapd-ssl.rc.d +++ /dev/null @@ -1,47 +0,0 @@ -#!/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 imapd-ssl" - /usr/lib/courier-imap/imapd-ssl.rc start - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon imapd-ssl - stat_done - fi - ;; - stop) - stat_busy "Stopping Courier imapd-ssl" - /usr/lib/courier-imap/imapd-ssl.rc stop > /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon imapd-ssl - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 -~ -~ diff --git a/community/courier-imap/imapd.rc.d b/community/courier-imap/imapd.rc.d deleted file mode 100644 index 867b52b78..000000000 --- a/community/courier-imap/imapd.rc.d +++ /dev/null @@ -1,47 +0,0 @@ -#!/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 imapd" - /usr/lib/courier-imap/imapd.rc start - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon imapd - stat_done - fi - ;; - stop) - stat_busy "Stopping Courier imapd" - /usr/lib/courier-imap/imapd.rc stop > /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon imapd - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 -~ -~ diff --git a/community/courier-imap/pop3d-ssl.rc.d b/community/courier-imap/pop3d-ssl.rc.d deleted file mode 100644 index aab0f6a95..000000000 --- a/community/courier-imap/pop3d-ssl.rc.d +++ /dev/null @@ -1,47 +0,0 @@ -#!/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 pop3d-ssl" - /usr/lib/courier-imap/pop3d-ssl.rc start - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon pop3d-ssl - stat_done - fi - ;; - stop) - stat_busy "Stopping Courier pop3d-ssl" - /usr/lib/courier-imap/pop3d-ssl.rc stop > /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon pop3d-ssl - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 -~ -~ diff --git a/community/courier-imap/pop3d.rc.d b/community/courier-imap/pop3d.rc.d deleted file mode 100644 index 7b73c5a7a..000000000 --- a/community/courier-imap/pop3d.rc.d +++ /dev/null @@ -1,47 +0,0 @@ -#!/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 pop3d" - /usr/lib/courier-imap/pop3d.rc start - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon pop3d - stat_done - fi - ;; - stop) - stat_busy "Stopping Courier pop3d" - /usr/lib/courier-imap/pop3d.rc stop > /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon pop3d - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 -~ -~ |