chiark / gitweb /
Fix several issues found by review
authorAndreas Messer <andi@bastelmap.de>
Sat, 6 Jan 2018 17:59:31 +0000 (18:59 +0100)
committerAndreas Messer <andi@bastelmap.de>
Sat, 6 Jan 2018 18:33:37 +0000 (19:33 +0100)
13 files changed:
debian/changelog
debian/control
debian/copyright
debian/elogind.init
debian/elogind.install
debian/extra/elogind
debian/libelogind-data.install [deleted file]
debian/libelogind-dev.install
debian/libelogind.install [deleted file]
debian/libelogind0.install [new file with mode: 0644]
debian/libpam-elogind.postinst
debian/libpam-elogind.prerm
debian/rules

index 9b83d23a6cf0b87d0093924c9b48ccf33400b4ad..a6e2a20a16601951af3e9c011d6cc0a27f96ae35 100644 (file)
@@ -1,5 +1,5 @@
-elogind (234.4-devuan1) experimental; urgency=medium
+elogind (234.4-1~exp1) experimental; urgency=medium
 
 
-  * Initial release. (Closes: #XXXXXX)
+  * Initial release.
 
  -- Andreas Messer <andi@bastelmap.de>  Thu, 04 Jan 2018 19:26:09 +0100
 
  -- Andreas Messer <andi@bastelmap.de>  Thu, 04 Jan 2018 19:26:09 +0100
index 2ab734c4aebf5b13b7846973c1b8796ddde80637..98229f51d29a4ba50e5fea2a37249a621fb8ca4c 100644 (file)
@@ -6,7 +6,7 @@ Standards-Version: 3.9.8
 Vcs-Git: https://git.devuan.org/amesser/elogind.git
 Vcs-Browser: https://git.devuan.org/amesser/elogind.git
 Homepage: https://github.com/elogind/elogind
 Vcs-Git: https://git.devuan.org/amesser/elogind.git
 Vcs-Browser: https://git.devuan.org/amesser/elogind.git
 Homepage: https://github.com/elogind/elogind
-Build-Depends: debhelper,
+Build-Depends: debhelper (>= 9),
                dpkg-dev (>= 1.16.0),
                pkg-config,
                docbook-xsl,
                dpkg-dev (>= 1.16.0),
                pkg-config,
                docbook-xsl,
@@ -32,19 +32,21 @@ Package: elogind
 Section: admin
 Priority: optional
 Architecture: linux-any
 Section: admin
 Priority: optional
 Architecture: linux-any
-Multi-Arch: same
+Multi-Arch: foreign
 Pre-Depends: debconf, ${misc:Pre-Depends}
 Depends: ${shlibs:Depends},
          ${misc:Depends},
 Pre-Depends: debconf, ${misc:Pre-Depends}
 Depends: ${shlibs:Depends},
          ${misc:Depends},
-         libelogind (= ${binary:Version}),
-         libpam-elogind (= ${binary:Version})
-Recommends: dbus (>= 1.4), policykit-1
+         libelogind0 (= ${binary:Version}),
+         libpam-elogind (= ${binary:Version}),
+         lsb-base (>= 3.1),
+         dbus (>= 1.4)
+Recommends: policykit-1
 Conflicts: openrc
 Description: user, seat and session management daemon
   elogind is a session management daemon extracted from systmd project's 
   "logind"
 
 Conflicts: openrc
 Description: user, seat and session management daemon
   elogind is a session management daemon extracted from systmd project's 
   "logind"
 
-Package: libelogind
+Package: libelogind0
 Section: libs
 Priority: optional
 Architecture: linux-any
 Section: libs
 Priority: optional
 Architecture: linux-any
@@ -52,17 +54,8 @@ Multi-Arch: same
 Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends},
          ${misc:Depends},
 Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends},
          ${misc:Depends},
-         libelogind      (= ${binary:Version}),
-         libelogind-data (= ${binary:Version})
-Description: libelogind shared library
-  This library provides access to elongd session management
-
-Package: libelogind-data
-Section: libs
-Priority: optional
-Architecture: all
-Description: elogind common data
-  This package contains common files of elogind and libelogind
+Description: user, seat and session management library
+  This library provides access to elogind session management
 
 Package: libelogind-dev
 Section: libdevel
 
 Package: libelogind-dev
 Section: libdevel
@@ -72,8 +65,8 @@ Multi-Arch: same
 Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends},
          ${misc:Depends},
 Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends},
          ${misc:Depends},
-         libelogind (= ${binary:Version})
-Description: libelogind development files
+         libelogind0 (= ${binary:Version})
+Description: user, seat and session management library (development files)
   This package contains the files needed for developing applications that 
   use libelogind
 
   This package contains the files needed for developing applications that 
   use libelogind
 
@@ -87,4 +80,6 @@ Depends: ${shlibs:Depends},
          ${misc:Depends},
          libpam-runtime
 Provides: libpam-systemd
          ${misc:Depends},
          libpam-runtime
 Provides: libpam-systemd
-Description: elogind PAM module
+Description: elogind PAM module 
+  Plugable Authentication Module to register a session with elogind
+
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..32a58310b45f2265ebb1a87289c769da8b4ad74e 100644 (file)
@@ -0,0 +1,81 @@
+Format-Specification: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Upstream-Name: elogind
+Source: https://github.com/elogind/elogind
+
+Files: *
+Copyright: 2010-2016 Lennart Poettering
+           2008-2013 Kay Sievers
+           2013-2017 Zbigniew JÄ™drzejewski-Szmek
+           2014-2015 Tom Gundersen
+           2014-2015 Ronny Chevalier
+           1994-2014 Free Software Foundation, Inc.
+           2005-2014 Rich Felker, et al.
+           1999,2000 Tom Tromey
+           2000,2005 Red Hat, Inc.
+           2010 Harald Hoyer
+           2010 Ran Benita
+           2012 Josh Triplett <josh@joshtriplett.org>
+           2013 Intel Corporation
+           2013 Daniel Buch
+           2013 Dave Reisner
+           2013 David Herrmann
+           2013 David Strauss
+           2013 Holger Hans Peter Freyther
+           2013 Jan Janssen
+           2013 Shawn Landden
+           2013 Thomas H.P. Andersen
+           2014 Emil Renner Berthing <systemd@esmil.dk>
+           2014 Michael Marineau
+           2014 Michal Schmidt
+           2015 Daniel Mack
+           2016 Julian Orth
+           2016 Alexander Shopov <ash@kambanaria.org>
+           2017 Sven Eden
+License: LGPL-2.1+
+
+Files: src/basic/siphash24.c
+       src/basic/siphash24.h
+Copyright: 2012 Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com>
+           2012 Daniel J. Bernstein <djb@cr.yp.to>
+License: CC0-1.0
+ To the extent possible under law, the author(s) have dedicated all copyright
+ and related and neighboring rights to this software to the public domain
+ worldwide. This software is distributed without any warranty.
+ .
+ You should have received a copy of the CC0 Public Domain Dedication along with
+ this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
+          
+Files: man/glib-event-glue.c:
+Copyright: 2014 Tom Gundersen
+License:
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation files
+ (the "Software"), to deal in the Software without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the Software,
+ and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+
+Files: debian/*
+Copyright: 2018 Andreas Messer <andi@bastelmap.de>
+License: LGPL-2.1+
+                                                                  
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ .
+ On Debian systems, the full text of the GNU Lesser General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/LGPL-2.1'.
+
index 6c1177e3ef42848737d365f9d519b4d291c25c89..e08335f914fb381de41623a2997b7c75989649e9 100644 (file)
@@ -1,19 +1,19 @@
 #! /bin/sh
 #! /bin/sh
-
 ### BEGIN INIT INFO
 ### BEGIN INIT INFO
-# Provides:    logind
-# Required-Start:      $dbus $remote_fs $syslog
-# Required-Stop:       $dbus $remote_fs $syslog
-# Default-Start:       2 3 4 5
-# Default-Stop:                
-# Short-Description:   elogind session management daemon
+# Provides: elogind
+# Required-Start: dbus $remote_fs $syslog
+# Required-Stop: dbus $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6  
+# Short-Description: start elogind at boot tim
+# Description: Enable user and session management by elogind
 ### END INIT INFO
 
 set -e
 
 # /etc/init.d/elogind: start and stop the elogind session management daemon
 
 ### END INIT INFO
 
 set -e
 
 # /etc/init.d/elogind: start and stop the elogind session management daemon
 
-ELOGIND=/lib/elogind/elogind
+ELOGIND=/usr/sbin/elogind
 
 test -x $ELOGIND || exit 0
 
 
 test -x $ELOGIND || exit 0
 
@@ -22,82 +22,67 @@ umask 022
 . /lib/lsb/init-functions
 
 ELOGIND_OPTS="-D"
 . /lib/lsb/init-functions
 
 ELOGIND_OPTS="-D"
-
-# Are we running from init?
-run_by_init() {
-    ([ "$previous" ] && [ "$runlevel" ]) || [ "$runlevel" = S ]
-}
-
-check_for_upstart() {
-  if init_is_upstart; then
-         exit $1
-  fi
-}
+ELOGIND_PID=/run/elogind.pid
 
 export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
 
 case "$1" in
   start)
 
 export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
 
 case "$1" in
   start)
-       check_for_upstart 1
-       log_daemon_msg "Starting session management daemon" "elogind" || true
-       if start-stop-daemon --start --quiet --oknodo --pidfile /run/elogin.pid --exec $ELOGIND -- $ELOGIND_OPTS; then
-           log_end_msg 0 || true
-       else
-           log_end_msg 1 || true
-       fi
-       ;;
+    log_daemon_msg "Starting session management daemon" "elogind" || true
+    if start-stop-daemon --start --quiet --oknodo --pidfile $ELOGIND_PID --exec $ELOGIND -- $ELOGIND_OPTS; then
+        log_end_msg 0 || true
+    else
+        log_end_msg 1 || true
+    fi
+    ;;
   stop)
   stop)
-       check_for_upstart 0
-       log_daemon_msg "Stopping session management daemon" "elogind" || true
-       if start-stop-daemon --stop --quiet --oknodo --pidfile /run/elogind.pid; then
-           log_end_msg 0 || true
-       else
-           log_end_msg 1 || true
-       fi
-       ;;
+    log_daemon_msg "Stopping session management daemon" "elogind" || true
+    if start-stop-daemon --stop --quiet --oknodo --pidfile $ELOGIND_PID; then
+        log_end_msg 0 || true
+    else
+        log_end_msg 1 || true
+    fi
+    ;;
   reload|force-reload|restart)
   reload|force-reload|restart)
-       check_for_upstart 1
-       log_daemon_msg "Restarting session management daemon" "elogind" || true
-       start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile /run/elogind.pid
-       if start-stop-daemon --start --quiet --oknodo --pidfile /run/elogind.pid --exec $ELOGIND -- $ELOGIND_OPTS; then
-           log_end_msg 0 || true
-       else
-           log_end_msg 1 || true
-       fi
-       ;;
+    log_daemon_msg "Restarting session management daemon" "elogind" || true
+    start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $ELOGIND_PID
+    if start-stop-daemon --start --quiet --oknodo --pidfile $ELOGIND_PID --exec $ELOGIND -- $ELOGIND_OPTS; then
+        log_end_msg 0 || true
+    else
+        log_end_msg 1 || true
+    fi
+    ;;
   try-restart)
   try-restart)
-       check_for_upstart 1
-       log_daemon_msg "Restarting session management daemon" "elogind" || true
-       RET=0
-       start-stop-daemon --stop --quiet --retry 30 --pidfile /run/elogind.pid || RET="$?"
-       case $RET in
-           0)
-               # old daemon stopped
-               if start-stop-daemon --start --quiet --oknodo --pidfile /run/elogind.pid --exec $ELOGIND -- $ELOGIND_OPTS; then
-                   log_end_msg 0 || true
-               else
-                   log_end_msg 1 || true
-               fi
-               ;;
-           1)
-               # daemon not running
-               log_progress_msg "(not running)" || true
-               log_end_msg 0 || true
-               ;;
-           *)
-               # failed to stop
-               log_progress_msg "(failed to stop)" || true
-               log_end_msg 1 || true
-               ;;
-       esac
-       ;;
+    log_daemon_msg "Restarting session management daemon" "elogind" || true
+    RET=0
+    start-stop-daemon --stop --quiet --retry 30 --pidfile $ELOGIND_PID || RET="$?"
+    case $RET in
+        0)
+        # old daemon stopped
+        if start-stop-daemon --start --quiet --oknodo --pidfile $ELOGIND_PID --exec $ELOGIND -- $ELOGIND_OPTS; then
+            log_end_msg 0 || true
+        else
+            log_end_msg 1 || true
+        fi
+        ;;
+        1)
+        # daemon not running
+        log_progress_msg "(not running)" || true
+        log_end_msg 0 || true
+        ;;
+        *)
+        # failed to stop
+        log_progress_msg "(failed to stop)" || true
+        log_end_msg 1 || true
+        ;;
+    esac
+    ;;
   status)
   status)
-       check_for_upstart 1
-       status_of_proc -p /run/elogind.pid $ELOGIND elogind && exit 0 || exit $?
-       ;;
+    status_of_proc -p $ELOGIND_PID $ELOGIND elogind && exit 0 || exit $?
+    ;;
   *)
   *)
-       log_action_msg "Usage: /etc/init.d/elogind {start|stop|reload|force-reload|restart|try-restart|status}" || true
-       exit 1
+    log_action_msg "Usage: /etc/init.d/elogind {start|stop|reload|force-reload|restart|try-restart|status}" || true
+    exit 1
 esac
 
 exit 0
 esac
 
 exit 0
index 9483f24aad4174d0291068d73d41f0d6685ad659..9b48429ad0b539625786f4c14021e79eca770343 100644 (file)
@@ -1,16 +1,16 @@
-bin/loginctl
-bin/elogind-inhibit
+usr/bin/
 etc/elogind/logind.conf
 etc/elogind/logind.conf
-lib/elogind/elogind
-lib/elogind/elogind-cgroups-agent
-lib/udev/rules.d/*.rules
-usr/share/bash-completion/*
-usr/share/dbus-1/*
-usr/share/doc/elogind/*
-usr/share/factory/*
+/usr/lib/elogind/elogind /usr/sbin/
+/usr/lib/elogind/elogind-cgroups-agent
+lib/udev/rules.d/
+usr/share/bash-completion/
+usr/share/dbus-1/
+# Skip license files in /usr/share/doc/elogind
+usr/share/doc/elogind/README
+usr/share/doc/elogind/NEWS
 usr/share/man/man1/loginctl.1
 usr/share/man/man5/logind.conf.5
 usr/share/man/man7/elogind.*.7
 usr/share/man/man8/elogind.8
 usr/share/man/man1/loginctl.1
 usr/share/man/man5/logind.conf.5
 usr/share/man/man7/elogind.*.7
 usr/share/man/man8/elogind.8
-usr/share/polkit-1/*
-usr/share/zsh/*
+usr/share/polkit-1/
+usr/share/zsh/
index e66eebb6d9944e03d781bbaf372e15234e75e112..54cdb520b07ca4d4ea7fe822da5c2cf2601bf4d0 100644 (file)
@@ -1,5 +1,5 @@
 Name: elogind Session Management
 Name: elogind Session Management
-Default: yes
+Default: no
 Priority: 0
 Session-Interactive-Only: yes
 Session-Type: Additional
 Priority: 0
 Session-Interactive-Only: yes
 Session-Type: Additional
diff --git a/debian/libelogind-data.install b/debian/libelogind-data.install
deleted file mode 100644 (file)
index 3270a48..0000000
+++ /dev/null
@@ -1 +0,0 @@
-usr/share/locale/*
index 70f3e5bf366ca049c769f242d7ec2ac54989c182..e090c36c0603ee17829fa09007cad726d4b621e4 100644 (file)
@@ -1,6 +1,4 @@
-usr/lib/*/pkgconfig/libelogind.pc
-lib/*/security/pam_elogind.la
-lib/*/libelogind.la
-usr/include/elogind/*
-usr/include/elogind/systemd/*
+usr/include/elogind/
+usr/lib/*/libelogind.so
+usr/lib/*/pkgconfig/
 usr/share/man/man3/*
 usr/share/man/man3/*
diff --git a/debian/libelogind.install b/debian/libelogind.install
deleted file mode 100644 (file)
index 964806c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-lib/*/libelogind.so.*
diff --git a/debian/libelogind0.install b/debian/libelogind0.install
new file mode 100644 (file)
index 0000000..1a0e7e1
--- /dev/null
@@ -0,0 +1,2 @@
+usr/lib/*/libelogind.so.*
+usr/share/locale
index 9310a1408492d4d7c364e4eb5bdfcb9b914cb6df..96c6817ea02419b4e0f8775711e824fc4f92c50b 100755 (executable)
@@ -3,5 +3,3 @@
 set -e
 
 pam-auth-update --package
 set -e
 
 pam-auth-update --package
-
-
index 11329dd13a715cfdaef4e520ca3e3b68a1a617dd..3c25c645185277cb2ec1ed8ce46585d0eb0b820a 100755 (executable)
@@ -3,7 +3,5 @@
 set -e
 
 if [ "$1" = remove ]; then
 set -e
 
 if [ "$1" = remove ]; then
-       pam-auth-update --package --remove consolekit
+       pam-auth-update --package --remove elogind
 fi
 fi
-
-
index 1207d9174fd96fcd10e2ab8b29dd5be691950375..76f29f0d474f73ab3545dbad37e7c75fc039f71d 100755 (executable)
@@ -1,23 +1,24 @@
 #! /usr/bin/make -f
 
 #! /usr/bin/make -f
 
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+# The options have been chooses as follows:
+# - manually set pamlibdir because we'Re installing in /usr by default but 
+#   pam libs must go to /lib/*/security
+# - Disable lto because this makes the build fail with static library 
+#   warnings and with  linking errors. (It seems taht instead of ar/ld 
+#   gcc-ar and gcc should be used)
+# - tests disabled beacuase some of the tests seem to require elogind running.
+#   Need to sort out which tests could be run
 
 
-# disable lto because this does not work for me. Building static libraries with i
-# libtool/ar failes. I think this a apackage problem, it should use gcc-ar instead
-# also some of the tests fail
 CONFFLAGS = \
 CONFFLAGS = \
-  --exec-prefix= \
-  --with-rootprefix= \
-  --with-rootlibdir=/lib/$(DEB_HOST_MULTIARCH) \
-  --enable-kdbus \
+  --with-pamlibdir=/lib/$(DEB_HOST_MULTIARCH)/security \
   --disable-lto \
   --disable-tests
 
   --disable-lto \
   --disable-tests
 
-autoreconf:
-       ./autogen.sh
+#autoreconf:
+#      ./autogen.sh
        
        
-override_dh_autoreconf:
-       dh_autoreconf debian/rules -- autoreconf
+#override_dh_autoreconf:
+#      dh_autoreconf debian/rules -- autoreconf
 
 override_dh_auto_configure:
        dh_auto_configure --builddirectory=build \
 
 override_dh_auto_configure:
        dh_auto_configure --builddirectory=build \