aboutsummaryrefslogtreecommitdiffstats
path: root/main/pam-pgsql/APKBUILD
blob: 4620c3aabd2b2a50169a04e411fb54eec3e49bc6 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pam-pgsql
pkgver=0.7.3.2
pkgrel=0
pkgdesc="PAM module to authenticate using a PostgreSQL database"
url="http://sourceforge.net/projects/pam-pgsql/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev linux-pam-dev postgresql-dev libgcrypt-dev
	bsd-compat-headers"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/pam-pgsql/pam-pgsql/0.7/pam-pgsql-$pkgver.tar.gz"

builddir="$srcdir"/pam-pgsql-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="d5766e56a13b0b4762fba10d624d12f130f2675f1f1772eaaf275b599f44adcf98287c2636462ba3faf46af139eb1bd157918c0c783040796562f37dec17a6d9  pam-pgsql-0.7.3.2.tar.gz"