Skip to content

Instantly share code, notes, and snippets.

@thatch
Created March 30, 2011 05:29
Show Gist options
  • Save thatch/893905 to your computer and use it in GitHub Desktop.
Save thatch/893905 to your computer and use it in GitHub Desktop.
Small diff to get pam+docs working in oath-toolkit
--- PKGBUILD 2011-03-29 21:14:15.000000000 -0700
+++ PKGBUILD.mine 2011-03-29 22:28:40.000000000 -0700
@@ -1,7 +1,7 @@
# Maintainer: L42y <423300@gmail.com>
pkgname=oath-toolkit
pkgver=1.6.2
-pkgrel=1
+pkgrel=2
pkgdesc="The OATH Toolkit attempts to collect several tools that are useful when deploying technologies related to OATH"
arch=('i686' 'x86_64')
url="http://www.nongnu.org/oath-toolkit/"
@@ -24,4 +24,12 @@
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
+
+ # PAM doesn't look here anyway
+ rm -rf $pkgdir/usr/lib/security
+ install -D -m 644 pam_oath/.libs/pam_oath.so $pkgdir/lib/security/pam_oath.so
+
+ # Install basic docs too
+ install -D -m 644 pam_oath/README $pkgdir/usr/share/doc/oath-toolkit/PAM_README
+ install -D -m 644 README $pkgdir/usr/share/doc/oath-toolkit/README
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment