blob: 6c0e1d421588a7d5e20e0c106ea8ca2676c60d06 (
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
|
# Contributor: Fabio Napoleoni <f.napoleoni@gmail.com>
# Maintainer: Fabio Napoleoni <f.napoleoni@gmail.com>
pkgname=google-authenticator
pkgver=1.05
pkgrel=0
pkgdesc="Google Authenticator PAM module"
url="https://github.com/google/google-authenticator-libpam"
arch="all"
license="Apache-2.0"
makedepends="autoconf automake libtool linux-pam-dev m4 libressl-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/google/google-authenticator-libpam/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-libpam-$pkgver"
prepare() {
cd "$builddir"
default_prepare
./bootstrap.sh
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--libdir=/lib \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir/etc/pam.d"
echo -e "auth\trequired\tpam_google_authenticator.so" \
> "$pkgdir/etc/pam.d/google-authenticator"
}
check() {
cd "$builddir"
make check
}
sha512sums="d97b26c6181dbce0612628484db37b1bf61e984fb2fb3d4974d04038e564404aa17415368dba524f0d17d96ec8d57ae4129b27f0c672d849d16ef03941d87996 google-authenticator-1.05.tar.gz"
|