[arch-commits] Commit in nss-pam-ldapd/trunk (3 files)

Eli Schwartz eschwartz at archlinux.org
Thu Jan 11 19:27:12 UTC 2018


    Date: Thursday, January 11, 2018 @ 19:27:09
  Author: eschwartz
Revision: 281373

upgpkg: nss-pam-ldapd 0.9.8-2

migrate to systemd-sysusers

Added:
  nss-pam-ldapd/trunk/nslcd.sysusers
Modified:
  nss-pam-ldapd/trunk/PKGBUILD
Deleted:
  nss-pam-ldapd/trunk/nss-pam-ldapd.install

-----------------------+
 PKGBUILD              |    8 +++++---
 nslcd.sysusers        |    1 +
 nss-pam-ldapd.install |   29 -----------------------------
 3 files changed, 6 insertions(+), 32 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-11 19:21:16 UTC (rev 281372)
+++ PKGBUILD	2018-01-11 19:27:09 UTC (rev 281373)
@@ -4,10 +4,10 @@
 
 pkgname=nss-pam-ldapd
 pkgver=0.9.8
-pkgrel=1
+pkgrel=2
 
 pkgdesc='LDAP module for NSS and PAM'
-url="http://arthurdejong.org/nss-pam-ldapd/"
+url="https://arthurdejong.org/nss-pam-ldapd/"
 arch=('x86_64')
 license=('LGPL2.1')
 
@@ -20,15 +20,16 @@
 
 options=('!emptydirs')
 
-install=nss-pam-ldapd.install
 
 source=("https://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-$pkgver.tar.gz"{,.sig}
         "nslcd.service"
+        "nslcd.sysusers"
         "nslcd.tmpfiles")
 
 md5sums=('8c99fdc54f4bf9aca8c5f53fdb1403ff'
          'SKIP'
          'c2edd35bab384c907eb442c606de856f'
+         'f7a52c4e0eae1a5d525d0e2f374f9114'
          'd78a702ae9e81af03ae0a85a6af4d2f3')
 
 validpgpkeys=('452EC2CB65CF68C2A1ADBF5F2A8B746810E0AFC1')
@@ -53,6 +54,7 @@
 package() {
   cd nss-pam-ldapd-"$pkgver"
 
+  install -Dm644 "$srcdir/nslcd.sysusers" "$pkgdir/usr/lib/sysusers.d/nslcd.conf"
   install -Dm644 "$srcdir/nslcd.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/nslcd.conf"
   install -Dm644 "$srcdir/nslcd.service" "$pkgdir/usr/lib/systemd/system/nslcd.service"
   install -Dm644 "$srcdir/$pkgname-$pkgver/nslcd.conf" "$pkgdir/etc/nslcd.conf"

Added: nslcd.sysusers
===================================================================
--- nslcd.sysusers	                        (rev 0)
+++ nslcd.sysusers	2018-01-11 19:27:09 UTC (rev 281373)
@@ -0,0 +1 @@
+u nslcd 146 - /var/run/nslcd

Deleted: nss-pam-ldapd.install
===================================================================
--- nss-pam-ldapd.install	2018-01-11 19:21:16 UTC (rev 281372)
+++ nss-pam-ldapd.install	2018-01-11 19:27:09 UTC (rev 281373)
@@ -1,29 +0,0 @@
-post_install() {
-    getent group nslcd >> /dev/null  || groupadd --gid 146 nslcd
-    getent passwd nslcd >> /dev/null || useradd --gid 146 --uid 146 -M -d /var/run/nslcd -s /bin/false nslcd
-}
-
-post_upgrade() {
-    post_install
-
-    local ver
-    local old_ver="$2"
-    local upgrades=(0.9.5-3)
-
-    for ver in "${upgrades[@]}"; do
-        if [[ $(vercmp "$ver" "$old_ver") -eq 1 ]]; then
-            "_${ver//-/_}_changes"
-        fi
-    done
-}
-
-_0.9.5_3_changes() {
-    printf '%s\n' ':: nss-pam-ldapd will from 0.9.5-4 and on use the statically allocated GID 146.'
-    printf '%s\n' '   Please switch to the new UID and GID at your convenience.'
-}
-
-_0.9.6_3_changes() {
-    printf '%s\n' ':: nss-pam-ldapd will from 0.9.6-2 use the statically allocated UID 146.'
-    printf '%s\n' '   A previous version was supposed to as well, but it accedentally only used that GID.'
-    printf '%s\n' '   Please switch to the new UID at your convenience.'
-}



More information about the arch-commits mailing list