diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-02 15:43:47 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-02 15:53:46 +0200 |
commit | 5216ce1e8eaf029f8c1c290ba29b3753efb1c102 (patch) | |
tree | a8582d65b3dd2bdd7ab3a1e7e6fc3a2135234abc /community/google-authenticator | |
parent | dd7672ad1a6de0fa8479854700b2a1b56688cd95 (diff) | |
download | aports-5216ce1e8eaf029f8c1c290ba29b3753efb1c102.tar.bz2 aports-5216ce1e8eaf029f8c1c290ba29b3753efb1c102.tar.xz |
community/google-authenticator: move from unmaintained
Diffstat (limited to 'community/google-authenticator')
-rw-r--r-- | community/google-authenticator/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/community/google-authenticator/APKBUILD b/community/google-authenticator/APKBUILD new file mode 100644 index 0000000000..ae9ff66bbd --- /dev/null +++ b/community/google-authenticator/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Fabio Napoleoni <f.napoleoni@gmail.com> +# Maintainer: Fabio Napoleoni <f.napoleoni@gmail.com> +pkgname=google-authenticator +pkgver=20160902 +_gitrev=bd50d15c348a978c314d2b30e586fbc562096223 +pkgrel=0 +pkgdesc="Google Authenticator PAM module" +url="https://github.com/google/google-authenticator" +arch="all" +license="ASL-2.0" +depends="" +makedepends="autoconf automake libtool linux-pam-dev m4 openssl-dev" +subpackages="$pkgname-doc" +source="https://github.com/google/google-authenticator/archive/$_gitrev.tar.gz" +builddir="$srcdir/$pkgname-$_gitrev/libpam" + +build() { + cd "$builddir" + + ./bootstrap.sh || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --libdir=/lib \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + || return 1 + + make || return 1 +} + +package() { + cd "$builddir" + + make DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/usr/share/doc/$pkgname/*.html +} + +md5sums="dac97b7941f6f7989dadd059ddcb9e49 bd50d15c348a978c314d2b30e586fbc562096223.tar.gz" +sha256sums="522a1ee2a9884ffa68ed6991c0a89727a3ac50a18cb16f356eebeb2135b3a56f bd50d15c348a978c314d2b30e586fbc562096223.tar.gz" +sha512sums="736774f793caf1b83f3598845f8709ef774060c0792e62527013343495480b5a57d6d7f12654cb944b7928679417e13494c361c19f104912221daf4b28075bd3 bd50d15c348a978c314d2b30e586fbc562096223.tar.gz" |