Want more features on Pastebin? Sign Up, it's FREE!
Guest

nss-pam-ldapd

By: a guest on Oct 15th, 2012  |  syntax: Bash  |  size: 1.27 KB  |  views: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Kaiting Chen <kaiting.chen@kiwilight.com>
  2. # Contributor: Cheer Xiao <xiaqqaix.at.gmail.com>
  3. # Contributor: Thiago Kenji Okada <thiago DOT mast3r AT gmail DOT com>
  4.  
  5. pkgname='nss-ldapd'
  6. _pkgname='nss-pam-ldapd'
  7. pkgver='0.8.11'
  8. pkgrel='1'
  9. pkgdesc='LDAP module for NSS and PAM'
  10. arch=('i686' 'x86_64')
  11. url="http://arthurdejong.org/$_pkgname/"
  12. license=('LGPL2.1')
  13. depends=('krb5' 'pam' 'libldap' 'libsasl')
  14.  
  15. backup=('etc/nslcd.conf')
  16.  
  17. sha1sums=('b221c603de5162ca2411a7e883ab21711d62db97'
  18.          '56739b0084442bd151e775ed3e03836ff2e4c400'
  19.          '65b452d696ed93e410378d087d3b2ec9a76bed8d')
  20. source=("$url$_pkgname-$pkgver.tar.gz"
  21.         'nslcd.rc.d'
  22.         'nslcd.service')
  23. install=nss-ldapd.install
  24.  
  25. build() {
  26.   cd "${srcdir}/${_pkgname}-${pkgver}"
  27.   ./configure --prefix=/usr \
  28.     --sysconfdir=/etc \
  29.     --libdir=/usr/lib \
  30.     --localstatedir=/var \
  31.     --enable-sasl \
  32.     --with-pam-seclib-dir=/usr/lib/security \
  33.     --with-nslcd-pidfile=/run/nslcd.pid \
  34.     --with-nslcd-socket=/run/nslcd.sock
  35.   make
  36. }
  37.  
  38. package() {
  39.   cd "${srcdir}/${_pkgname}-${pkgver}"
  40.   make DESTDIR="$pkgdir" install
  41.   install -Dm755 $srcdir/nslcd.rc.d $pkgdir/etc/rc.d/nslcd
  42.   install -Dm755 $srcdir/nslcd.service $pkgdir/usr/lib/systemd/system/nslcd.service
  43. }
clone this paste RAW Paste Data