Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD nss-ldapd

By: benja_kern on Jul 26th, 2012  |  syntax: None  |  size: 1.21 KB  |  views: 33  |  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.  
  4. pkgname='nss-ldapd'
  5. _pkgname='nss-pam-ldapd'
  6. pkgver='0.8.10'
  7. pkgrel='1'
  8. pkgdesc='LDAP module for NSS and PAM'
  9. arch=('i686' 'x86_64')
  10. url="http://arthurdejong.org/$_pkgname/"
  11. license=('LGPL2.1')
  12. depends=('krb5' 'pam' 'libldap' 'libsasl')
  13.  
  14. backup=('etc/nslcd.conf')
  15.  
  16. sha1sums=('4dd50c0537a13f454625e0325b8c863e5adb48a8'
  17.          'ad912a52741bbe79f0d344fc1bdfb3055a4a47c8'
  18.          '6b25f351be8d91e92e7846e601ab655545759a4b')
  19. source=("$url$_pkgname-$pkgver.tar.gz"
  20.         'nslcd.rc.d'
  21.         'nslcd.service')
  22. install=nss-ldapd.install
  23.  
  24. build() {
  25.   cd "${srcdir}/${_pkgname}-${pkgver}"
  26.   ./configure --prefix=/usr \
  27.     --sysconfdir=/etc \
  28.     --libdir=/usr/lib \
  29.     --localstatedir=/var \
  30.     --enable-sasl \
  31.     --with-pam-seclib-dir=/usr/lib/security \
  32.     --with-nslcd-pidfile=/var/run/nslcd.pid \
  33.     --with-nslcd-socket=/var/run/nslcd.sock
  34.   make
  35. }
  36.  
  37. package() {
  38.   cd "${srcdir}/${_pkgname}-${pkgver}"
  39.   make DESTDIR="$pkgdir" install
  40.   install -Dm755 $srcdir/nslcd.rc.d $pkgdir/etc/rc.d/nslcd
  41.   install -Dm755 $srcdir/nslcd.service $pkgdir/usr/lib/systemd/system/nslcd.service
  42. }