aboutsummaryrefslogblamecommitdiffstats
path: root/community/google-authenticator/APKBUILD
blob: 6c0e1d421588a7d5e20e0c106ea8ca2676c60d06 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      
                                                     
                            

           
                                         
                                                           
          
                    
                                                                     
                          

                                                                                                              
 
           
                      


                       
 

                      






                                         

                                         


           
                      



                                                               

 





                                                                                                                                                                               
# 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"