aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pamtester/APKBUILD
blob: 38abff05b18a42e31dbd593b59b72c5924f1d696 (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
# Contributor: Fabio Napoleoni <f.napoleoni@gmail.com>
# Maintainer:
pkgname=pamtester
pkgver=0.1.2
pkgrel=0
pkgdesc="Command line tool to test PAM configuration"
url="http://pamtester.sourceforge.net/"
arch="all"
license="BSD"
depends="linux-pam"
makedepends="$depends_dev linux-pam-dev"
install=""
subpackages="$pkgname-doc"
source="https://netix.dl.sourceforge.net/project/pamtester/pamtester/0.1.2/pamtester-0.1.2.tar.gz"

builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	default_prepare || return 1
	update_config_guess || return 1
}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

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

sha512sums="baf4786ad735d73bce8f351071e658cffa5fa45dcf67045827f998555e6cff2bd7ff88dd751ab0198b7b1ecfb9c37ffc8ad0bcc5def098ea7143241a3d501168  pamtester-0.1.2.tar.gz"