Commit 32e6ed30 authored by Jeff Bilyk's avatar Jeff Bilyk

testing/courier-authlib: new aport

ref #1007
parent 73e89b8b
# Contributor: Jeff Bilyk <jbilyk@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=courier-authlib
pkgver=0.63.0
pkgrel=0
pkgdesc="Authentication library for courier mailserver"
url="http://www.courier-mta.org"
arch="all"
license="GPL"
depends=""
depends_dev="libtool expect gdbm-dev openssl-dev libldap postgresql-dev mysql-dev perl"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/project/courier/authlib/$pkgver/$pkgname-$pkgver.tar.bz2"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--with-db=gdbm \
--with-mailuser=courier \
--with-mailgroup=courier \
--with-authpwd \
--with-authshadow \
--with-authldap \
--with-authmysql \
--with-authpgsql \
--with-authuserdb \
--with-authcram \
--with-authdaemon \
--with-authdaemonvar=/var/run/authdaemon
make
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
rm "$pkgdir"/usr/lib/$pkgname/*.la
}
md5sums="411a927d178f783a1e8fab9964ce0dd2 courier-authlib-0.63.0.tar.bz2"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment