diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-02-10 09:46:06 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-02-10 09:48:03 +0000 |
commit | b0c0b08dbef2096beec0a141899925bb1693797a (patch) | |
tree | 04ea432472eb6a278a09c91dfbda9346f9ac18a4 /testing/google-authenticator | |
parent | f5c514ff5c64e6c2f532a2626b0c7237743d70af (diff) | |
download | aports-b0c0b08dbef2096beec0a141899925bb1693797a.tar.bz2 aports-b0c0b08dbef2096beec0a141899925bb1693797a.tar.xz |
testing/google-authenticator: new aport. Fixes #5102
Two-step verification application from Google
Diffstat (limited to 'testing/google-authenticator')
-rw-r--r-- | testing/google-authenticator/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/google-authenticator/APKBUILD b/testing/google-authenticator/APKBUILD new file mode 100644 index 0000000000..4d99c29773 --- /dev/null +++ b/testing/google-authenticator/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Fabio Napoleoni <f.napoleoni@gmail.com> +# Maintainer: +pkgname=google-authenticator +pkgver=20160207 +pkgrel=0 +pkgdesc="Google Authenticator PAM module" +url="https://github.com/google/google-authenticator" +arch="all" +license="ASL 2.0" +depends= +depends_dev= +makedepends="$depends_dev autoconf automake libtool linux-pam-dev m4 openssl-dev" +install= +subpackages="$pkgname-doc" +source="https://github.com/google/google-authenticator/archive/c0404dcdbda9ab9e4f0b8451ecdd44eee8db2425.zip" + +_builddir="$srcdir"/$pkgname-c0404dcdbda9ab9e4f0b8451ecdd44eee8db2425/libpam + +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" + ./bootstrap.sh || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + || return 1 + + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="33d3cbd0488bcb4f50b34b5670deffae c0404dcdbda9ab9e4f0b8451ecdd44eee8db2425.zip" +sha256sums="e32abe693e54195bdb6aca52783e6e1c239e67296876ac59211a59e4608338b8 c0404dcdbda9ab9e4f0b8451ecdd44eee8db2425.zip" +sha512sums="b44a626e6cc5d8e27685f5d39b5d33f49fc7070331db7b458d3ee40723972821bb8ed5458f27a287dc664d162acf1f8f9a36ca3b1bf767f2bbf27d4f538e9872 c0404dcdbda9ab9e4f0b8451ecdd44eee8db2425.zip" |