aboutsummaryrefslogtreecommitdiffstats
path: root/community/duo_unix/APKBUILD
blob: 6fe576af4b6238a073c58b11f2c8a2b745c78396 (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
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.18
pkgrel=0
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="ee667f65d47782c8082e477db7367aae  duo_unix-1.9.18.tar.gz"
sha256sums="2eb11dff0a173c62e318587c50faec717e8889fbb6bb2d076e4f31999f9107ae  duo_unix-1.9.18.tar.gz"
sha512sums="0579771d7b16c47fca28bed1f4ce534a362735667e4703ffda57f88b8937339874535f29f9907041c5c9bcb6e8b62462c9d9b0a87e7b49cb5f1fe040ec2ae8fc  duo_unix-1.9.18.tar.gz"