From 1098e9db0acc5bb5c45af5778492faf3b4c99dd6 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 18 Feb 2012 23:15:35 +0000 Subject: Sat Feb 18 23:15:35 UTC 2012 --- community-testing/courier-authlib/PKGBUILD | 71 ++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 community-testing/courier-authlib/PKGBUILD (limited to 'community-testing/courier-authlib/PKGBUILD') diff --git a/community-testing/courier-authlib/PKGBUILD b/community-testing/courier-authlib/PKGBUILD new file mode 100644 index 000000000..1e80603f7 --- /dev/null +++ b/community-testing/courier-authlib/PKGBUILD @@ -0,0 +1,71 @@ +# $Id: PKGBUILD 64621 2012-02-17 12:32:40Z spupykin $ +# Maintainer: Sven-Hendrik Haase +# Contributor: tobias +# Contributor: Tobias Kieslich + +pkgname=courier-authlib +pkgver=0.63.0 +pkgrel=8 +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 + authdaemond.rc.d) +md5sums=('411a927d178f783a1e8fab9964ce0dd2' + '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=/var/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 + chown -R 72:72 ${pkgdir}/var/run/authdaemon + # 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 +} -- cgit v1.2.3-54-g00ecf