[SCM] libutempter library packaging branch, master, updated. debian/1.1.5-4-10-g20f169e

Felix Geyer fgeyer at moszumanska.debian.org
Fri May 29 21:35:51 UTC 2015


Gitweb-URL: http://git.debian.org/?p=pkg-kde/krap/libutempter.git;a=commitdiff;h=20f169e

The following commit has been merged in the master branch:
commit 20f169e36a9699facb163de992bf033fcb01c1c9
Author: Felix Geyer <fgeyer at debian.org>
Date:   Fri May 29 23:35:46 2015 +0200

    Retire utempter system group.
    
    * Retire utempter system group. (Closes: #698858, #545184)
      - Make /usr/lib/utempter root:root owned. (Closes: #698590)
---
 debian/changelog             |  4 ++--
 debian/control               |  2 +-
 debian/libutempter0.postinst | 20 +++-----------------
 debian/libutempter0.postrm   | 27 ---------------------------
 4 files changed, 6 insertions(+), 47 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b98e36f..f4df9d8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,8 +9,8 @@ libutempter (1.1.6-1) UNRELEASED; urgency=medium
   * Add Vcs-* control fields.
   * Don't hardcode the delgroup path.
   * Improve package descriptions.
-  * Simplify postinst script.
-    - Don't read list of all groups. (Closes: #698858)
+  * Retire utempter system group. (Closes: #698858, #545184)
+    - Make /usr/lib/utempter root:root owned. (Closes: #698590)
 
  -- Felix Geyer <fgeyer at debian.org>  Thu, 28 May 2015 18:23:38 +0200
 
diff --git a/debian/control b/debian/control
index 9d427da..c683d29 100644
--- a/debian/control
+++ b/debian/control
@@ -22,7 +22,7 @@ Description: privileged helper for utmp/wtmp updates (development)
 
 Package: libutempter0
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, adduser
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: privileged helper for utmp/wtmp updates (runtime)
  The libutempter library provides interface for terminal emulators such as
  screen and xterm to record user sessions to utmp and wtmp files.
diff --git a/debian/libutempter0.postinst b/debian/libutempter0.postinst
old mode 100644
new mode 100755
index 92efe02..541a8fc
--- a/debian/libutempter0.postinst
+++ b/debian/libutempter0.postinst
@@ -1,23 +1,9 @@
 #!/bin/sh
-# postinst script for libutempter
 
 set -e
 
-case "$1" in
-    configure)
-        addgroup --quiet --system utempter
-        chown root:utempter /usr/lib/utempter
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
 #DEBHELPER#
 
-exit 0
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt-nl "1.1.6-1~"; then
+    chown root:root /usr/lib/utempter
+fi
diff --git a/debian/libutempter0.postrm b/debian/libutempter0.postrm
deleted file mode 100644
index 232d3a2..0000000
--- a/debian/libutempter0.postrm
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-# postrm script for libutempter
-
-set -e
-
-case "$1" in
-    purge)
-        if [ -x "$(command -v deluser)" ]; then
-            echo "Deleting utempter group..."
-            delgroup --quiet --system utempter > /dev/null || true
-        else
-            echo >&2 "not removing utempter system group because the deluser command was not found"
-        fi
-    ;;
-
-    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
-    ;;
-
-    *)
-        echo "postrm called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-#DEBHELPER#
-
-exit 0

-- 
libutempter library packaging



More information about the pkg-kde-commits mailing list