diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2012-09-17 08:15:47 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-09-17 10:42:35 +0200 |
commit | 4d234731b2770f8983f16ba22177ed022fe8eea9 (patch) | |
tree | 70824fe72de69e19f72659529c34ae09046a8722 | |
parent | 72335a05f2b9a47aceec9e6f3881cd7209224343 (diff) | |
download | meta-openembedded-4d234731b2770f8983f16ba22177ed022fe8eea9.tar.gz |
lxdm: initial add 1.22_git
* use git version since 1.21 missing escape button and bugfixes
* no init-scripts (I am working with systemd -> testing causes huge efforts ->
subsequent patches)
* run tested on overo/xfce
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7 files changed, 147 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/lxdm/lxdm/0001-lxdm.conf.in-blacklist-root-for-release-images.patch b/meta-oe/recipes-graphics/lxdm/lxdm/0001-lxdm.conf.in-blacklist-root-for-release-images.patch new file mode 100644 index 000000000..49ecdb8d3 --- /dev/null +++ b/meta-oe/recipes-graphics/lxdm/lxdm/0001-lxdm.conf.in-blacklist-root-for-release-images.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 5038c49c0b61e057dec44c932f02c4bf99cee96e Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> | ||
3 | Date: Mon, 3 Sep 2012 10:02:51 +0200 | ||
4 | Subject: [PATCH] lxdm.conf.in: blacklist root for release images | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Upstream-Status: Inappropriate [configuration] | ||
10 | |||
11 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | ||
12 | --- | ||
13 | data/lxdm.conf.in | 2 +- | ||
14 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
15 | |||
16 | diff --git a/data/lxdm.conf.in b/data/lxdm.conf.in | ||
17 | index defc082..759e6e5 100644 | ||
18 | --- a/data/lxdm.conf.in | ||
19 | +++ b/data/lxdm.conf.in | ||
20 | @@ -58,5 +58,5 @@ disable=0 | ||
21 | white= | ||
22 | |||
23 | ## blacklist user | ||
24 | -black= | ||
25 | +black=root | ||
26 | |||
27 | -- | ||
28 | 1.7.4.4 | ||
29 | |||
diff --git a/meta-oe/recipes-graphics/lxdm/lxdm/lxdm-pam b/meta-oe/recipes-graphics/lxdm/lxdm/lxdm-pam new file mode 100644 index 000000000..486621f4f --- /dev/null +++ b/meta-oe/recipes-graphics/lxdm/lxdm/lxdm-pam | |||
@@ -0,0 +1,13 @@ | |||
1 | #%PAM-1.0 | ||
2 | # taken from http://aur.archlinux.org/packages/lx/lxdm-git/lxdm-git.tar.gz | ||
3 | # further info https://wiki.archlinux.org/index.php/LXDM | ||
4 | auth requisite pam_nologin.so | ||
5 | auth required pam_env.so | ||
6 | auth required pam_unix.so | ||
7 | # To allow passwordless login comment previous line and uncomment next line | ||
8 | #auth required pam_unix.so nullok | ||
9 | account required pam_unix.so | ||
10 | session required pam_limits.so | ||
11 | session required pam_unix.so | ||
12 | password required pam_unix.so | ||
13 | -session optional pam_systemd.so | ||
diff --git a/meta-oe/recipes-graphics/lxdm/lxdm/lxdm-pam-debug b/meta-oe/recipes-graphics/lxdm/lxdm/lxdm-pam-debug new file mode 100644 index 000000000..734949fa4 --- /dev/null +++ b/meta-oe/recipes-graphics/lxdm/lxdm/lxdm-pam-debug | |||
@@ -0,0 +1,13 @@ | |||
1 | #%PAM-1.0 | ||
2 | # taken from http://aur.archlinux.org/packages/lx/lxdm-git/lxdm-git.tar.gz | ||
3 | # further info https://wiki.archlinux.org/index.php/LXDM | ||
4 | auth requisite pam_nologin.so | ||
5 | auth required pam_env.so | ||
6 | #auth required pam_unix.so | ||
7 | # To deny passwordless login comment next line and uncomment previous line | ||
8 | auth required pam_unix.so nullok | ||
9 | account required pam_unix.so | ||
10 | session required pam_limits.so | ||
11 | session required pam_unix.so | ||
12 | password required pam_unix.so | ||
13 | -session optional pam_systemd.so | ||
diff --git a/meta-oe/recipes-graphics/lxdm/lxdm/lxdm.conf b/meta-oe/recipes-graphics/lxdm/lxdm/lxdm.conf new file mode 100644 index 000000000..0a6e6721b --- /dev/null +++ b/meta-oe/recipes-graphics/lxdm/lxdm/lxdm.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | [base] | ||
2 | last_session= | ||
3 | last_lang= | ||
4 | last_langs= | ||
diff --git a/meta-oe/recipes-graphics/lxdm/lxdm_git.bb b/meta-oe/recipes-graphics/lxdm/lxdm_git.bb new file mode 100644 index 000000000..fd28c41c9 --- /dev/null +++ b/meta-oe/recipes-graphics/lxdm/lxdm_git.bb | |||
@@ -0,0 +1,62 @@ | |||
1 | DESCRIPTION = "LXDM is the lightweight display manager" | ||
2 | HOMEPAGE = "http://blog.lxde.org/?p=531" | ||
3 | LICENSE = "GPLv3" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
5 | SRC_URI = " \ | ||
6 | git://lxde.git.sourceforge.net/gitroot/lxde/${BPN};protocol=git;branch=master \ | ||
7 | file://lxdm.conf \ | ||
8 | file://lxdm-pam \ | ||
9 | file://lxdm-pam-debug \ | ||
10 | ${@base_contains("DISTRO_TYPE", "debug", "", "file://0001-lxdm.conf.in-blacklist-root-for-release-images.patch",d)} \ | ||
11 | " | ||
12 | |||
13 | LXDM_PAM = "${@base_contains("DISTRO_TYPE", "debug", "lxdm-pam-debug", "lxdm-pam",d)}" | ||
14 | |||
15 | SRCREV = "d681bc90b62ec2e13ed62fc30cdaf5dbbba23cdc" | ||
16 | PV = "0.4.2+git${SRCPV}" | ||
17 | |||
18 | DEPENDS = "cairo consolekit dbus gdk-pixbuf glib-2.0 gtk+ virtual/libx11 libxcb pango" | ||
19 | |||
20 | # combine oe-core way with angstrom DISTRO_TYPE | ||
21 | DISTRO_TYPE ?= "${@base_contains("IMAGE_FEATURES", "debug-tweaks", "debug", "",d)}" | ||
22 | |||
23 | inherit autotools gettext | ||
24 | |||
25 | S = "${WORKDIR}/git" | ||
26 | |||
27 | do_compile_append() { | ||
28 | # default background configured not available / no password field available | ||
29 | sed -i -e 's,bg=,# bg=,g' \ | ||
30 | -e 's,# skip_password=,skip_password=,g' \ | ||
31 | ${S}/data/lxdm.conf.in | ||
32 | # add default configuration | ||
33 | oe_runmake -C ${S}/data lxdm.conf | ||
34 | } | ||
35 | |||
36 | do_install_append() { | ||
37 | install -d ${D}${localstatedir}/lib/lxdm | ||
38 | install -m 644 ${WORKDIR}/lxdm.conf ${D}${localstatedir}/lib/lxdm | ||
39 | # ArchLinux version of pam config has the following advantages: | ||
40 | # * simple setup of passwordless login | ||
41 | # * in XFCE powerdown/restart enabled in logoff dialog | ||
42 | install -m 644 ${WORKDIR}/${LXDM_PAM} ${D}${sysconfdir}/pam.d/lxdm | ||
43 | } | ||
44 | |||
45 | # make installed languages choosable | ||
46 | pkg_postinst_${PN} () { | ||
47 | if [ "x$D" != "x" ]; then | ||
48 | exit 1 | ||
49 | fi | ||
50 | langs="" | ||
51 | for lang in `find ${libdir}/locale -maxdepth 1 | grep _ | sort`; do | ||
52 | lang=`basename $lang` | ||
53 | if [ "x$langs" = "x" ]; then | ||
54 | langs="$lang" | ||
55 | else | ||
56 | langs="$langs $lang" | ||
57 | fi | ||
58 | done | ||
59 | sed -i "s:last_langs=.*$:last_langs=$langs:g" ${localstatedir}/lib/lxdm/lxdm.conf | ||
60 | } | ||
61 | |||
62 | RDEPENDS_${PN} = "pam-plugin-loginuid" | ||
diff --git a/meta-systemd/meta-oe/recipes-graphics/lxdm/lxdm/lxdm.service.in b/meta-systemd/meta-oe/recipes-graphics/lxdm/lxdm/lxdm.service.in new file mode 100644 index 000000000..0bc6774f3 --- /dev/null +++ b/meta-systemd/meta-oe/recipes-graphics/lxdm/lxdm/lxdm.service.in | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=LXDE Display Manager | ||
3 | After=systemd-user-sessions.service | ||
4 | |||
5 | [Service] | ||
6 | ExecStart=%sbindir%/lxdm | ||
7 | StandardOutput=syslog | ||
8 | |||
9 | [Install] | ||
10 | Alias=display-manager.service | ||
diff --git a/meta-systemd/meta-oe/recipes-graphics/lxdm/lxdm_git.bbappend b/meta-systemd/meta-oe/recipes-graphics/lxdm/lxdm_git.bbappend new file mode 100644 index 000000000..e4cf44d3f --- /dev/null +++ b/meta-systemd/meta-oe/recipes-graphics/lxdm/lxdm_git.bbappend | |||
@@ -0,0 +1,16 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | PRINC := "${@int(PRINC) + 1}" | ||
3 | |||
4 | inherit systemd | ||
5 | |||
6 | SRC_URI += "file://lxdm.service.in" | ||
7 | |||
8 | do_install_append() { | ||
9 | install -d ${D}${systemd_unitdir}/system | ||
10 | sed -e 's,%sbindir%,${sbindir},g' \ | ||
11 | < ${WORKDIR}/lxdm.service.in \ | ||
12 | > ${D}${systemd_unitdir}/system/lxdm.service | ||
13 | } | ||
14 | |||
15 | SYSTEMD_PACKAGES = "${PN}-systemd" | ||
16 | SYSTEMD_SERVICE = "lxdm.service" | ||