diff options
Diffstat (limited to 'community/courier-authlib')
-rw-r--r-- | community/courier-authlib/PKGBUILD | 77 | ||||
-rw-r--r-- | community/courier-authlib/authdaemond.rc.d | 53 | ||||
-rw-r--r-- | community/courier-authlib/courier-authlib.install | 26 | ||||
-rw-r--r-- | community/courier-authlib/courier-authlib.tmpfiles | 1 |
4 files changed, 0 insertions, 157 deletions
diff --git a/community/courier-authlib/PKGBUILD b/community/courier-authlib/PKGBUILD deleted file mode 100644 index 4e82387ec..000000000 --- a/community/courier-authlib/PKGBUILD +++ /dev/null @@ -1,77 +0,0 @@ -# $Id: PKGBUILD 72136 2012-06-09 00:24:01Z dreisner $ -# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> -# Contributor: tobias <tobias@archlinux.org> -# Contributor: Tobias Kieslich <tobias@justdreams.de> - -pkgname=courier-authlib -pkgver=0.64.0 -pkgrel=2 -pkgdesc="Authentification library for the courier mailserver(s)" -arch=(i686 x86_64) -license=('GPL2') -url="http://courier-mta.org/authlib/" -backup=('etc/authlib/authdaemonrc' 'etc/authlib/authldaprc' \ - 'etc/authlib/authmysqlrc' 'etc/authlib/authpgsqlrc') -depends=('openssl' 'gdbm' 'perl' 'libtool' 'expect') -makedepends=('pam' 'expect' 'libldap' 'libmysqlclient' 'postgresql-libs>=8.3.0') -optdepends=('libmysqlclient' 'libldap' 'postgresql-libs') -conflicts=('courier-imap-mysql' 'courier-imap-pgsql' 'courier-imap-ldap') -provides=('courier-imap-mysql' 'courier-imap-pgsql' 'courier-imap-ldap') -options=(!libtool) -install=${pkgname}.install -source=(http://downloads.sourceforge.net/project/courier/authlib/${pkgver}/${pkgname}-${pkgver}.tar.bz2 - courier-authlib.tmpfiles - authdaemond.rc.d) -md5sums=('d946a76e81e45a139543305d310399f6' - 'bef189740e9516b0beaace4e8954ef14' - '7de75a9a74796f4fd2e81fd3ca16ed8d') - -build() { - #export MAKEFLAGS="-j1" - cd ${srcdir}/${pkgname}-${pkgver} - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --libdir=/usr/lib \ - --libexecdir=/usr/lib \ - --with-db=gdbm \ - --with-mailuser=courier --with-mailgroup=courier \ - --with-authpam --with-authpwd --with-authshadow \ - --with-authldap --with-authmysql --with-authpgsql \ - --with-authuserdb --with-authcram --with-authdaemon \ - --with-authdaemonvar=/run/authdaemon - make -} - -package() { - cd ${srcdir}/${pkgname}-${pkgver} - make DESTDIR=${pkgdir} install - ############################################################################### - # post_installation ---- rename the config file and change ownerschip - for distfile in ${pkgdir}/etc/authlib/*.dist; do - chown 72:72 ${distfile} - mv ${distfile} ${pkgdir}/etc/authlib/`basename ${distfile} .dist` - done - # copy the .schema; mostly refered to as courier.schema -> rename it - install -Dm 444 authldap.schema \ - ${pkgdir}/etc/openldap/schema/courier.schema - ############################################################################### - # Install daemon, that wraps couriers bashscript - install -Dm 755 ${srcdir}/authdaemond.rc.d ${pkgdir}/etc/rc.d/authdaemond - #mkdir -p ${pkgdir}/var/spool/authdaemon - #chown -R 72:72 ${pkgdir}/var/spool/authdaemon - mkdir -p ${pkgdir}/var/spool/courier - chown -R 72:72 ${pkgdir}/var/spool/courier - # docs say we can remove .a files after make - find ${pkgdir} -name '*\.a' -exec rm -f {} \; - # Make libs available to /usr/lib - cd $pkgdir/usr/lib - for lib in courier-authlib/*.so; do - ln -s $lib . - done - - install -Dm644 "$srcdir/courier-authlib.tmpfiles" "$pkgdir/usr/lib/tmpfiles/courier-authlib.conf" - - # avoid conflict with filesystem>=2012.06 - rmdir "$pkgdir/run/authdaemon" -} diff --git a/community/courier-authlib/authdaemond.rc.d b/community/courier-authlib/authdaemond.rc.d deleted file mode 100644 index 791c3d122..000000000 --- a/community/courier-authlib/authdaemond.rc.d +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -start() { - [ -d /var/run/authdaemon ] || mkdir -p /var/run/authdaemon - chown courier:courier /var/run/authdaemon - - stat_busy "Starting Authdaemond" - /usr/sbin/authdaemond start &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon authdaemond - stat_done - fi -} - -stop() { - stat_busy "Stopping Authdaemond" - /usr/sbin/authdaemond stop &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm -f /var/run/authdaemon/{pid.lock,pid,socket} &> /dev/null - - # TODO: Take these out at some point, they're only cleanup for old way - rm -f /var/run/authdaemond.pid &> /dev/null - rm -f /var/spool/authdaemon/{pid.lock,pid,socket} &> /dev/null - - rm_daemon authdaemond - stat_done - fi -} - -case "$1" in - start) - start - ;; - stop) - stop - ;; - restart) - # calling 'stop' and 'start' without the $0 fails... - $0 stop - sleep 2 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 diff --git a/community/courier-authlib/courier-authlib.install b/community/courier-authlib/courier-authlib.install deleted file mode 100644 index 7b29f845f..000000000 --- a/community/courier-authlib/courier-authlib.install +++ /dev/null @@ -1,26 +0,0 @@ -# arg 1: the new package version -post_install() { - # creates group and user on virgin systems - if ! getent group courier >/dev/null; then - groupadd -g 72 courier >/dev/null 2>&1 - fi - - if getent passwd courier >/dev/null; then - useradd -u 72 -d /var/spool/courier -g courier -s /bin/false courier >/dev/null 2>&1 - fi - - systemd-tmpfiles --create /usr/lib/tmpfiles/courier-authlib.conf -} - -# arg 1: the new package version -# arg 2: the old package version -post_upgrade() { - post_install $1 -} - -# arg 1: the old package version -pre_remove() { - userdel courier - groupdel courier -} >/dev/null 2>&1 - diff --git a/community/courier-authlib/courier-authlib.tmpfiles b/community/courier-authlib/courier-authlib.tmpfiles deleted file mode 100644 index 887303a4c..000000000 --- a/community/courier-authlib/courier-authlib.tmpfiles +++ /dev/null @@ -1 +0,0 @@ -d /run/authdaemon 0755 72 72 - |