aboutsummaryrefslogtreecommitdiffstats
path: root/community/duo_unix/APKBUILD
blob: 1706b433b7b8071f53ea3bfe564ea41eb48a08f4 (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: Alan Lacerda <alacerda@alpinelinux.org>
# Contributor: Kris Reese <ktreese@gmail.com>
# Maintainer: Paul Morgan <jumanjiman@gmail.com>
pkgname=duo_unix
pkgver=1.12.1
pkgrel=0
pkgdesc="Duo two-factor authentication for Unix systems with Pluggable Authentication Modules (PAM)"
url="https://duo.com/docs/duounix"
arch="all"
license="GPL-2.0-only"
depends="openssh openssh-server-pam"
makedepends="openssl-dev>3 linux-pam-dev libtool"
subpackages="$pkgname-doc $pkgname-dev"
source="https://dl.duosecurity.com/duo_unix-$pkgver.tar.gz"
options="suid !check" #make check fails with error: redefinition of 'fopen'

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CTARGET \
		--with-pam=/lib/security \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
fe6d60bd33731bccc99f750dc5df62dea79d4e96eabc3274a8f1efceab0a6df354d770ab2f9d9645884dbfd2c944b5af2948aa373bd57985b4aaf56f6ffe91b8  duo_unix-1.12.1.tar.gz
"