Hardware authentication for Linux using ordinary USB Flash Drives.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

  1. # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  2. pkgname=pam_usb
  3. pkgver=1
  4. pkgrel=1
  5. pkgdesc='Hardware authentication for Linux using ordinary USB Flash Drives.'
  6. arch=('any')
  7. url='http://www.pamusb.org/'
  8. license=('GPLv2')
  9. depends=('pam' 'dbus' 'python' 'python-dbus' 'python-lxml' 'python-gobject' 'udisks2')
  10. makedepends=('git' 'pkgconf' 'gcc' 'make' 'patch')
  11. options=(!emptydirs)
  12. backup=(
  13. "etc/security/pam_usb.conf"
  14. )
  15. source=(
  16. "git+https://github.com/Fincer/${pkgname}.git"
  17. # "git+https://github.com/aluzzardi/${pkgname}.git"
  18. "pamusb-agent.service"
  19. )
  20. sha256sums=(
  21. 'SKIP'
  22. '6002172ffe9d51988116c9e2f34b65d3cb6c29d26cdbd4831d6307a711af7bb9'
  23. )
  24. pkgver() {
  25. cd $pkgname
  26. if [[ $(git describe) ]]; then
  27. git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  28. else
  29. echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  30. fi
  31. }
  32. build() {
  33. cd $pkgname
  34. make all
  35. }
  36. package() {
  37. cd $pkgname
  38. make DESTDIR=${pkgdir} PAM_USB_DEST=${pkgdir}/usr/lib/security install
  39. install -Dt ${pkgdir}/usr/lib/systemd/system -m0644 ../pamusb-agent.service
  40. }