diff options
-rw-r--r-- | testing/oath-toolkit/APKBUILD | 51 |
1 files changed, 27 insertions, 24 deletions
diff --git a/testing/oath-toolkit/APKBUILD b/testing/oath-toolkit/APKBUILD index 0339ddb6dd..9d2db6a565 100644 --- a/testing/oath-toolkit/APKBUILD +++ b/testing/oath-toolkit/APKBUILD @@ -1,20 +1,18 @@ # Contributor: Jann - Ove Risvik <jann.ove@dev.usaklig.com> -# Maintainer: +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=oath-toolkit -pkgver=2.6.1 +pkgver=2.6.2 pkgrel=0 pkgdesc="OATH Toolkit One-time password components" url="http://www.nongnu.org/oath-toolkit/index.html" arch="all" license="various" -depends="" -depends_dev="perl cvs diffutils" -makedepends="$depends_dev linux-pam-dev" -install="" -subpackages="$pkgname-dev $pkgname-doc $pkgname-liboath $pkgname-oathtool $pkgname-pam_oath" +depends="perl cvs diffutils" +makedepends="linux-pam-dev libxml2-dev xmlsec-dev autoconf automake libtool gtk-doc" +subpackages="$pkgname-dev $pkgname-doc $pkgname-liboath $pkgname-libpskc $pkgname-oathtool $pkgname-pam_oath" source="http://download.savannah.gnu.org/releases/oath-toolkit/oath-toolkit-${pkgver}.tar.gz" - builddir="oath-toolkit-${pkgver}" + build() { cd "$srcdir/$builddir" ./configure \ @@ -23,41 +21,46 @@ build() { --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --localstatedir=/var \ - || return 1 - make || return 1 - make check || 1 + --localstatedir=/var + make } package() { cd "$srcdir/$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install } liboath() { -pkgdesc="A shared and static C library for OATH handling." -license="LGPL2.1+" - mkdir -p "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/liboath.so* "$subpkgdir"/usr/lib + pkgdesc="A shared and static C library for OATH handling." + license="LGPL2.1+" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/liboath.so* "$subpkgdir"/usr/lib +} + +libpskc() { + pkgdesc="Library for Portable Symmetric Key Container" + license="LGPL2.1+" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libpskc.so* "$subpkgdir"/usr/lib } + + oathtool() { depends="oath-toolkit-liboath" pkgdesc="A command line tool for generating and validating OTPs." license="GPLv3.0+" - mkdir -p "$subpkgdir"/usr/bin - mv "$pkgdir"/usr/bin/oathtool "$subpkgdir"/usr/bin + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/oathtool "$subpkgdir"/usr/bin } pam_oath() { depends="oath-toolkit-liboath" license="GPL3.0+" pkgdesc="A PAM module for pluggable login authentication for OATH." - mkdir -p "$subpkgdir"/lib/security - mv "$pkgdir"/usr/lib/security/pam_oath.so "$subpkgdir"/lib/security + mkdir -p "$subpkgdir"/lib/security + mv "$pkgdir"/usr/lib/security/pam_oath.so "$subpkgdir"/lib/security } -md5sums="19ee7ed7c2b40c1dc92887f893ed2726 oath-toolkit-2.6.1.tar.gz" -sha256sums="9c57831907bc26eadcdf90ba1827d0bd962dd1f737362e817a1dd6d6ec036f79 oath-toolkit-2.6.1.tar.gz" -sha512sums="59feadbc06d11a52bf5879493227c40358fc1f4f17ec3ff92e3a313e47b92f3154396fa3ff38ef163852b32c8bfcef1f59753b614d0138478b8f7e7971f55e62 oath-toolkit-2.6.1.tar.gz" +sha512sums="201a702a05a2e9fb3a66d04750e1a34e293342126caf02c344954a0d9fd0daafe73ca7f1fe273be129ae555a29b82b72fa2b4770ea2ad10711924e1926ec2cfb oath-toolkit-2.6.2.tar.gz" |