[debian-edu-commits] debian-edu/pkg-team/ 01/01: initial packaging draft

Mike Gabriel sunweaver at debian.org
Sun Aug 6 21:55:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository lightdm-autologin-greeter.

commit 3fcbe5441652e3f6a81b4876dab5d96829012929
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sun Aug 6 17:50:02 2017 -0400

    initial packaging draft
---
 debian/changelog                                 |  5 +++
 debian/compat                                    |  1 +
 debian/control                                   | 49 ++++++++++++++++++++++++
 debian/copyright                                 | 33 ++++++++++++++++
 debian/lightdm-autologin-greeter.conf            | 11 ++++++
 debian/lightdm-autologin-greeter.docs            |  1 +
 debian/lightdm-autologin-greeter.install         |  3 ++
 debian/patches/1001_use-python3.patch            |  8 ++++
 debian/patches/1002_set-gi-LightDM-version.patch | 14 +++++++
 debian/patches/README                            |  3 ++
 debian/patches/series                            |  2 +
 debian/rules                                     |  7 ++++
 debian/source/format                             |  1 +
 debian/watch                                     |  3 ++
 14 files changed, 141 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..6c3d9ae
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+lightdm-autologin-greeter (1.0-1) UNRELEASED; urgency=medium
+
+  * Initial release to Debian. (Closes: #871044).
+
+ -- Mike Gabriel <sunweaver at debian.org>  Sun, 06 Aug 2017 16:18:03 -0400
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..ac91bf2
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,49 @@
+Source: lightdm-autologin-greeter
+Section: x11
+Priority: optional
+Maintainer: Debian Edu Packaging Team <debian-edu-pkg-team at lists.alioth.debian.org>
+Uploaders:
+ Mike Gabriel <sunweaver at debian.org>
+Standards-Version: 4.0.0
+Build-Depends:
+ debhelper (>= 10),
+ cdbs,
+Vcs-Git: https://anonscm.debian.org/git/debian-edu/pkg-team/lightdm-autologin-greeter.git
+Vcs-Browser: https://anonscm.debian.org/git/debian-edu/pkg-team/lightdm-autologin-greeter.git
+Homepage: https://github.com/spanezz/lightdm-autologin-greeter
+
+Package: lightdm-autologin-greeter
+Architecture: all
+Depends:
+ python3,
+ lightdm,
+ python3-gi,
+ liblightdm-gobject-1-0,
+ gir1.2-lightdm-1,
+ ${misc:Depends},
+Provides: lightdm-greeter,
+Description: Autologin greeter for LightDM
+ Minimal autologin greeter for lightdm that has the same autologin
+ behaviour as nodm, but being based on lightdm it stays on top of modern
+ display manager requirements.
+ .
+ The difference between lightdm's built-in autologin and this greeter,
+ are the behaviour in case of 0-seconds autologin delay: when lightdm
+ autologs in with no delay, upon logout it will show the login window
+ again. The intent is that if the default user logged out, they probably
+ intend to log in again as a different user.
+ .
+ When managing a kiosk-like setups, if the X session quits then the
+ desired behaviour is to just start it again.
+ .
+ Lightdm with an autologin timeout of 1 or more seconds would work as I
+ need it, but one sees the login dialog window appear and disappear on
+ screen at each system startup. While it is functional, on a kiosk setup
+ it looks estetically unprofessional to my taste.
+ .
+ With this greeter, the X session starts right away, and is restarted if
+ it quits, without any flicker of a login dialog box.
+ .
+ If one is not setting up a kiosk-like setup, it's very likely that the
+ default autologin behaviour of lightdm is the way to go, and that this
+ greeter is not needed.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..eb540a7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lightdm-autologin-greeter
+Upstream-Contact: Enrico Zini <enrico at enricozini.org>
+Source: https://github.com/spanezz/lightdm-autologin-greeter
+
+Files: *
+Copyright: 2017, Enrico Zini
+License: Expat
+
+Files: debian/*
+Copyright:
+ 2017, Mike Gabriel <mike.gabriel at das-netwerkteam.de>
+License: Expat
+
+License: Expat
+ 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:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/debian/lightdm-autologin-greeter.conf b/debian/lightdm-autologin-greeter.conf
new file mode 100644
index 0000000..5ced1b4
--- /dev/null
+++ b/debian/lightdm-autologin-greeter.conf
@@ -0,0 +1,11 @@
+# configure this to your needs...
+
+# user account for the autologin session
+#autologin-user=<some-user-account>
+
+# a desktop other than the system-wide configured
+# default desktop session.
+#
+# strip .desktop off the file names in /usr/share/xsessions
+
+# autologin-session=<desktop-session-name>
diff --git a/debian/lightdm-autologin-greeter.docs b/debian/lightdm-autologin-greeter.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/lightdm-autologin-greeter.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/lightdm-autologin-greeter.install b/debian/lightdm-autologin-greeter.install
new file mode 100644
index 0000000..c905e52
--- /dev/null
+++ b/debian/lightdm-autologin-greeter.install
@@ -0,0 +1,3 @@
+bin usr/
+share usr/
+debian/lightdm-autologin-greeter.conf etc/lightdm/lightdm.conf.d/
diff --git a/debian/patches/1001_use-python3.patch b/debian/patches/1001_use-python3.patch
new file mode 100644
index 0000000..089d1dc
--- /dev/null
+++ b/debian/patches/1001_use-python3.patch
@@ -0,0 +1,8 @@
+--- a/bin/lightdm-autologin-greeter
++++ b/bin/lightdm-autologin-greeter
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python3
+ #
+ # Author: Enrico Zini <enrico at enricozini.org>
+ # Based on http://www.mattfischer.com/blog/?p=5
diff --git a/debian/patches/1002_set-gi-LightDM-version.patch b/debian/patches/1002_set-gi-LightDM-version.patch
new file mode 100644
index 0000000..b276b64
--- /dev/null
+++ b/debian/patches/1002_set-gi-LightDM-version.patch
@@ -0,0 +1,14 @@
+--- a/bin/lightdm-autologin-greeter
++++ b/bin/lightdm-autologin-greeter
+@@ -7,7 +7,11 @@
+ 
+ from __future__ import print_function
+ from gi.repository import GObject
++
++from gi import require_version
++require_version('LightDM', '1')
+ from gi.repository import LightDM
++
+ import sys
+ 
+ greeter = None
diff --git a/debian/patches/README b/debian/patches/README
new file mode 100644
index 0000000..80c1584
--- /dev/null
+++ b/debian/patches/README
@@ -0,0 +1,3 @@
+0xxx: Grabbed from upstream development.
+1xxx: Possibly relevant for upstream adoption.
+2xxx: Only relevant for official Debian release.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..847c514
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+1001_use-python3.patch
+1002_set-gi-LightDM-version.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7d6a0b5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+get-orig-source:
+	uscan --noconf --force-download --rename --download-current-version --destdir=..
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..1631654
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/lightdm-autologin-greeter-$1.tar.gz/ \
+https://github.com/spanezz/lightdm-autologin-greeter/tags .*/archive/v?([\d\.]+).tar.g

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/lightdm-autologin-greeter.git



More information about the debian-edu-commits mailing list