aboutsummaryrefslogtreecommitdiffstats
path: root/main/pam-pgsql/APKBUILD
blob: 46e5f22b5d44e678b8d4b38760a1e0073e98b09f (plain) (blame)
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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pam-pgsql
pkgver=0.7.3.1
pkgrel=3
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
	CVE-2013-0191.patch"

_builddir="$srcdir"/pam-pgsql-$pkgver
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

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

md5sums="16cb40a16ee1f286906a0d5a90254731  pam-pgsql-0.7.3.1.tar.gz
4a8640edb8eaee4456fa91ad8c22ab7f  CVE-2013-0191.patch"