aboutsummaryrefslogtreecommitdiffstats
path: root/community/duo_unix/APKBUILD
blob: d37dbbfd0b44c90ebaafcb7414e0d970e1e91dfe (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
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Contributor: Kris Reese <ktreese@gmail.com>
# Maintainer: Paul Morgan <jumanjiman@gmail.com>
pkgname=duo_unix
pkgver=1.11.2
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"
depends="openssh openssh-server-pam"
makedepends="openssl-dev linux-pam-dev libtool"
subpackages="$pkgname-doc"
source="https://dl.duosecurity.com/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
options="suid !check" #make check fails with error: redefinition of 'fopen'

build() {
	./configure --with-pam --prefix=/usr
	make
}

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

sha512sums="bf7669e2295d31255ffb848ec46310d623871fe1f7687cd4675d31b14ed62c2f31939c19bd82f639989cf6ff3f79be84dbf30fe7cfe53c03719289c72c4b0b6a  duo_unix-1.11.2.tar.gz"