diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/nss-pam-ldapd | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/nss-pam-ldapd')
-rw-r--r-- | community/nss-pam-ldapd/PKGBUILD | 43 | ||||
-rw-r--r-- | community/nss-pam-ldapd/nslcd.service | 12 | ||||
-rw-r--r-- | community/nss-pam-ldapd/nss-pam-ldapd.install | 12 |
3 files changed, 67 insertions, 0 deletions
diff --git a/community/nss-pam-ldapd/PKGBUILD b/community/nss-pam-ldapd/PKGBUILD new file mode 100644 index 000000000..bbdedb365 --- /dev/null +++ b/community/nss-pam-ldapd/PKGBUILD @@ -0,0 +1,43 @@ +# $Id +# Maintainer: Federico Cinelli <cinelli@aur.archlinux.org> + +pkgname=nss-pam-ldapd +pkgver=0.8.13 +pkgrel=2 +pkgdesc='LDAP module for NSS and PAM' +arch=('i686' 'x86_64') +url="http://arthurdejong.org/$pkgname/" +license=('LGPL2.1') +depends=('krb5') +replaces=('pam_ldap' 'nss_ldap') +conflicts=('nss-pam-ldapd-git') +provides=('nss-pam-ldapd') +install=nss-pam-ldapd.install +backup=('etc/nslcd.conf') +source=("http://arthurdejong.org/$pkgname/$pkgname-$pkgver.tar.gz" + "nslcd.service") +sha1sums=('0567cfea104defabeacd88a3a3200b311b8071ec' + 'b564fa5738963a67a9240bf4ce63b2fa494cafb7') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-pam-seclib-dir=/usr/lib/security; + + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + install -Dm644 "$srcdir/nslcd.service" "$pkgdir/usr/lib/systemd/system/nslcd.service" + install -Dm644 "$srcdir/$pkgname-$pkgver/nslcd.conf" "$pkgdir/etc/nslcd.conf" + + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/community/nss-pam-ldapd/nslcd.service b/community/nss-pam-ldapd/nslcd.service new file mode 100644 index 000000000..73a9b5272 --- /dev/null +++ b/community/nss-pam-ldapd/nslcd.service @@ -0,0 +1,12 @@ +[Unit] +Description=Naming services LDAP client daemon. +After=syslog.target network.target + +[Service] +Type=forking +PIDFile=/var/run/nslcd/nslcd.pid +ExecStart=/usr/bin/nslcd + +[Install] +WantedBy=multi-user.target + diff --git a/community/nss-pam-ldapd/nss-pam-ldapd.install b/community/nss-pam-ldapd/nss-pam-ldapd.install new file mode 100644 index 000000000..a8b93f218 --- /dev/null +++ b/community/nss-pam-ldapd/nss-pam-ldapd.install @@ -0,0 +1,12 @@ +post_install() { + getent passwd nslcd >> /dev/null || useradd -r -M -d /var/run/nslcd -s /bin/false nslcd +} + +post_upgrade() { + getent passwd nslcd >> /dev/null || useradd -r -M -s /bin/false nslcd +} + +pre_remove() { + userdel nslcd >/dev/null 2>&1 || true +} + |