[arch-commits] Commit in nss-pam-ldapd/trunk (PKGBUILD nss-pam-ldapd.install)

2016-05-06 Thread Johannes Löthberg
Date: Friday, May 6, 2016 @ 21:53:35
  Author: demize
Revision: 173961

upgpkg: nss-pam-ldapd 0.9.6-3

Modified:
  nss-pam-ldapd/trunk/PKGBUILD
  nss-pam-ldapd/trunk/nss-pam-ldapd.install

---+
 PKGBUILD  |2 +-
 nss-pam-ldapd.install |3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-05-06 19:29:07 UTC (rev 173960)
+++ PKGBUILD2016-05-06 19:53:35 UTC (rev 173961)
@@ -4,7 +4,7 @@
 
 pkgname=nss-pam-ldapd
 pkgver=0.9.6
-pkgrel=2
+pkgrel=3
 
 pkgdesc='LDAP module for NSS and PAM'
 url="http://arthurdejong.org/nss-pam-ldapd/;

Modified: nss-pam-ldapd.install
===
--- nss-pam-ldapd.install   2016-05-06 19:29:07 UTC (rev 173960)
+++ nss-pam-ldapd.install   2016-05-06 19:53:35 UTC (rev 173961)
@@ -22,7 +22,8 @@
 printf '%s\n' '   Please switch to the new UID and GID at your 
convenience.'
 }
 
-_0.9.6_2_changes() {
+_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.'
+}


[arch-commits] Commit in nss-pam-ldapd/trunk (PKGBUILD nss-pam-ldapd.install)

2016-05-06 Thread Johannes Löthberg
Date: Friday, May 6, 2016 @ 10:04:38
  Author: demize
Revision: 173925

upgpkg: nss-pam-ldapd 0.9.6-2

Modified:
  nss-pam-ldapd/trunk/PKGBUILD
  nss-pam-ldapd/trunk/nss-pam-ldapd.install

---+
 PKGBUILD  |2 +-
 nss-pam-ldapd.install |9 +++--
 2 files changed, 8 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-05-06 07:34:31 UTC (rev 173924)
+++ PKGBUILD2016-05-06 08:04:38 UTC (rev 173925)
@@ -4,7 +4,7 @@
 
 pkgname=nss-pam-ldapd
 pkgver=0.9.6
-pkgrel=1
+pkgrel=2
 
 pkgdesc='LDAP module for NSS and PAM'
 url="http://arthurdejong.org/nss-pam-ldapd/;

Modified: nss-pam-ldapd.install
===
--- nss-pam-ldapd.install   2016-05-06 07:34:31 UTC (rev 173924)
+++ nss-pam-ldapd.install   2016-05-06 08:04:38 UTC (rev 173925)
@@ -1,6 +1,6 @@
 post_install() {
 getent group nslcd >> /dev/null  || groupadd --gid 146 nslcd
-getent passwd nslcd >> /dev/null || useradd --gid 146 -M -d /var/run/nslcd 
-s /bin/false nslcd
+getent passwd nslcd >> /dev/null || useradd --gid 146 --uid 146 -M -d 
/var/run/nslcd -s /bin/false nslcd
 }
 
 post_upgrade() {
@@ -18,6 +18,11 @@
 }
 
 _0.9.5_3_changes() {
-printf '%s\n' ':: nss-pam-ldapd will from 0.9.5-4 and on use the 
statically allocated UID/GID 146.'
+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_2_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.'


[arch-commits] Commit in nss-pam-ldapd/trunk (PKGBUILD nss-pam-ldapd.install)

2015-05-28 Thread Johannes Löthberg
Date: Thursday, May 28, 2015 @ 23:22:00
  Author: demize
Revision: 134285

nss-pam-ldapd: statically assign UID/gid

Modified:
  nss-pam-ldapd/trunk/PKGBUILD
  nss-pam-ldapd/trunk/nss-pam-ldapd.install

---+
 PKGBUILD  |2 +-
 nss-pam-ldapd.install |   20 
 2 files changed, 17 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-05-28 17:43:46 UTC (rev 134284)
+++ PKGBUILD2015-05-28 21:22:00 UTC (rev 134285)
@@ -4,7 +4,7 @@
 
 pkgname=nss-pam-ldapd
 pkgver=0.9.5
-pkgrel=2
+pkgrel=3
 
 pkgdesc='LDAP module for NSS and PAM'
 url=http://arthurdejong.org/nss-pam-ldapd/;

Modified: nss-pam-ldapd.install
===
--- nss-pam-ldapd.install   2015-05-28 17:43:46 UTC (rev 134284)
+++ nss-pam-ldapd.install   2015-05-28 21:22:00 UTC (rev 134285)
@@ -1,11 +1,23 @@
 post_install() {
-getent passwd nslcd  /dev/null || useradd -r -M -U -d /var/run/nslcd -s 
/bin/false nslcd
+getent group nslcd  /dev/null  || groupadd --gid 146 nslcd
+getent passwd nslcd  /dev/null || useradd --gid 146 -M -d /var/run/nslcd 
-s /bin/false nslcd
 }
 
 post_upgrade() {
-getent passwd nslcd  /dev/null || useradd -r -M -U -d /var/run/nslcd -s 
/bin/false nslcd
+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
 }
 
-pre_remove() {
-userdel nslcd /dev/null 21 || true
+_0.9.5_3_changes() {
+printf '%s\n' ':: nss-pam-ldapd will from 0.9.5-4 and on use the 
statically allocated UID/GID 146.'
+printf '%s\n' '   Please switch to the new UID and GID at your 
convenience.'
 }


[arch-commits] Commit in nss-pam-ldapd/trunk (PKGBUILD nss-pam-ldapd.install)

2013-11-07 Thread Federico Cinelli
Date: Friday, November 8, 2013 @ 06:41:04
  Author: cinelli
Revision: 100671

upgpkg: nss-pam-ldapd 0.8.13-5

Modified:
  nss-pam-ldapd/trunk/PKGBUILD
  nss-pam-ldapd/trunk/nss-pam-ldapd.install

---+
 PKGBUILD  |2 +-
 nss-pam-ldapd.install |5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-11-08 03:58:49 UTC (rev 100670)
+++ PKGBUILD2013-11-08 05:41:04 UTC (rev 100671)
@@ -3,7 +3,7 @@
 
 pkgname=nss-pam-ldapd
 pkgver=0.8.13
-pkgrel=4
+pkgrel=5
 pkgdesc='LDAP module for NSS and PAM'
 arch=('i686' 'x86_64')
 url=http://arthurdejong.org/$pkgname/;

Modified: nss-pam-ldapd.install
===
--- nss-pam-ldapd.install   2013-11-08 03:58:49 UTC (rev 100670)
+++ nss-pam-ldapd.install   2013-11-08 05:41:04 UTC (rev 100671)
@@ -1,12 +1,11 @@
 post_install() {
-getent passwd nslcd  /dev/null || useradd -r -M -d /var/run/nslcd -s 
/bin/false nslcd
+getent passwd nslcd  /dev/null || useradd -r -M -U -d /var/run/nslcd -s 
/bin/false nslcd
 }
 
 post_upgrade() {
-getent passwd nslcd  /dev/null || useradd -r -M -s /bin/false nslcd
+getent passwd nslcd  /dev/null || useradd -r -M -U -d /var/run/nslcd -s 
/bin/false nslcd
 }
 
 pre_remove() {
 userdel nslcd /dev/null 21 || true
 }
-