Guest User

Untitled

a guest
Jan 1st, 2018
166
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: David Rodriguez <dissonant.tech@gmail.com>
  2.  
  3. pkgname=pam_usb
  4. pkgver=0.5.0
  5. pkgrel=4
  6. pkgdesc="PAM modules that enables either two-factor or password-less authentication using an USB storage device (such as an USB flash memory stick)"
  7. url="https://github.com/aluzzardi/pam_usb"
  8. license=("GPL")
  9. depends=(libxml2 pam pmount udisks dbus-python python2-gobject2)
  10. arch=('i686' 'x86_64')
  11. backup=('etc/pamusb.conf')
  12. md5sums=('df8404aeb625eca1d3cad7a67d35f225')
  13. source=(https://github.com/aluzzardi/$pkgname/archive/$pkgver.tar.gz)
  14.  
  15. build() {
  16. cd "$srcdir/$pkgname-$pkgver"
  17. make LIBS="`pkg-config --libs libxml-2.0` `pkg-config --libs dbus-1` -lpam" || return 1
  18. }
  19.  
  20. package() {
  21. cd "$srcdir/$pkgname-$pkgver"
  22. make DESTDIR="$pkgdir" PAM_USB_DEST="$pkgdir/usr/lib/security" install
  23. sed -i 1s/python/python2/ "$pkgdir/usr/bin/pamusb-"{agent,conf}
  24. }
RAW Paste Data