aboutsummaryrefslogtreecommitdiffstats
path: root/main/oath-toolkit/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/oath-toolkit/APKBUILD')
-rw-r--r--main/oath-toolkit/APKBUILD68
1 files changed, 68 insertions, 0 deletions
diff --git a/main/oath-toolkit/APKBUILD b/main/oath-toolkit/APKBUILD
new file mode 100644
index 0000000000..e08966707f
--- /dev/null
+++ b/main/oath-toolkit/APKBUILD
@@ -0,0 +1,68 @@
+# Contributor: Jann - Ove Risvik <jann.ove@dev.usaklig.com>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=oath-toolkit
+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="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="https://download.savannah.gnu.org/releases/oath-toolkit/oath-toolkit-${pkgver}.tar.gz
+ oath-toolkit-2.6.2-gcc7.patch"
+
+build() {
+ cd "$builddir"
+ autoreconf --force --install
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+liboath() {
+ pkgdesc="A shared and static C library for OATH handling."
+ license="LGPL-2.1-or-later"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/liboath.so* "$subpkgdir"/usr/lib
+}
+
+libpskc() {
+ pkgdesc="Library for Portable Symmetric Key Container"
+ license="LGPL-2.1-or-later"
+ 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="GPL-3.0-or-later"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/oathtool "$subpkgdir"/usr/bin
+}
+
+pam_oath() {
+ depends="oath-toolkit-liboath"
+ license="GPL-3.0-or-later"
+ 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
+}
+
+
+sha512sums="201a702a05a2e9fb3a66d04750e1a34e293342126caf02c344954a0d9fd0daafe73ca7f1fe273be129ae555a29b82b72fa2b4770ea2ad10711924e1926ec2cfb oath-toolkit-2.6.2.tar.gz
+dda606ee9c32075f2268af76394ac886da419ed42e34a45bb528ff26e39faede420ec7201dc32308d9cbfbc253d27a5d603e7bb6eaffc96a88a6bd9b2b3c54d9 oath-toolkit-2.6.2-gcc7.patch"