summaryrefslogtreecommitdiffstats
path: root/testing/courier-authlib/APKBUILD
blob: 85eeee170bb2005b0b5b19fec328253ba2330d4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Contributor: Jeff Bilyk <jbilyk@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=courier-authlib
pkgver=0.66.1
pkgrel=1
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="123e9429909ed65a23464cb7ecb15cf1  courier-authlib-0.66.1.tar.bz2"
sha256sums="8f89166f57c8e59f445fe0135da92b95f1c4417896d01eda5e2e94d8ff878fe8  courier-authlib-0.66.1.tar.bz2"
sha512sums="d2b0c9c92c0af8c596fd9b14337034e2859c4540b5b20523e8dfbec78f54021104b6864c7f3488f518ebfff488b38bdbc26690763175940d12019f5cbc482b33  courier-authlib-0.66.1.tar.bz2"