aboutsummaryrefslogtreecommitdiffstats
path: root/testing/duo_unix/APKBUILD
blob: db9b016a8f6b38322026c0e67d982ebc0a86431b (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
48
49
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Paul Morgan <jumanjiman@gmail.com>
pkgname=duo_unix
pkgver=1.9.17
pkgrel=1
pkgdesc="duosecurity.com two-factor authentication"
url="https://duo.com/support/documentation/duounix"
arch="all"
license="GPL2"
depends="openssl zlib"
depends_dev="libc-dev openssl-dev zlib-dev"
makedepends="$depends_dev"
install=""
options="suid"
subpackages="$pkgname-dev $pkgname-doc"
source="https://dl.duosecurity.com/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	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 \
		--sysconfdir=/etc/duo \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

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

md5sums="7c7ecf9bb76d40da2ce20807e81850b6  duo_unix-1.9.17.tar.gz"
sha256sums="d841fb7cf48013d25c2abe882aa1888f230b8414b71ef5898ca988d000b5953a  duo_unix-1.9.17.tar.gz"
sha512sums="b62ce265fc6f5f951bcd42026adeff312fb127e46ad87a830f75fe42cfc5060541f3ff4b3ff7d32a8b56b39ef6c58a893d3fd6df8b9eca78d9e89c242f532626  duo_unix-1.9.17.tar.gz"