diff options
| author | Andreas Müller <schnitzeltony@googlemail.com> | 2016-02-10 09:31:13 +0100 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-02-25 17:45:43 +0100 |
| commit | 0b3612b0f2e4eea936f5c7058e8f1b870e25f9d3 (patch) | |
| tree | e592fb459f741ec47d318a990c7009e05d7de29a /meta-oe/recipes-graphics/lxdm/lxdm_0.5.3.bb | |
| parent | fd4180d6fa59a711e1ee602357fae144e66ad216 (diff) | |
| download | meta-openembedded-0b3612b0f2e4eea936f5c7058e8f1b870e25f9d3.tar.gz | |
lxdm: update to 0.5.3
* we go back to released sources
* parts of patch 0002.. were applied - have tried to discuss with project's
maintainer without success
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics/lxdm/lxdm_0.5.3.bb')
| -rw-r--r-- | meta-oe/recipes-graphics/lxdm/lxdm_0.5.3.bb | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/lxdm/lxdm_0.5.3.bb b/meta-oe/recipes-graphics/lxdm/lxdm_0.5.3.bb new file mode 100644 index 0000000000..227709251b --- /dev/null +++ b/meta-oe/recipes-graphics/lxdm/lxdm_0.5.3.bb | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | SUMMARY = "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 | ${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}%20${PV}/${BPN}-${PV}.tar.xz \ | ||
| 7 | file://lxdm.conf \ | ||
| 8 | ${@base_contains('DISTRO_FEATURES', 'pam', 'file://lxdm-pam file://lxdm-pam-debug', '', d)} \ | ||
| 9 | ${@base_contains("DISTRO_TYPE", "debug", "", "file://0001-lxdm.conf.in-blacklist-root-for-release-images.patch",d)} \ | ||
| 10 | file://0002-let-autotools-create-lxdm.conf.patch \ | ||
| 11 | " | ||
| 12 | SRC_URI[md5sum] = "061caae432634e6db38bbdc84bc6ffa0" | ||
| 13 | SRC_URI[sha256sum] = "4891efee81c72a400cc6703e40aa76f3f3853833d048b72ec805da0f93567f2f" | ||
| 14 | |||
| 15 | PE = "1" | ||
| 16 | |||
| 17 | DEPENDS = "virtual/libintl intltool-native cairo dbus gdk-pixbuf glib-2.0 gtk+ virtual/libx11 libxcb pango iso-codes" | ||
| 18 | DEPENDS += "${@base_contains("DISTRO_FEATURES", "systemd", "", "consolekit", d)}" | ||
| 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 pkgconfig gettext systemd distro_features_check | ||
| 24 | # depends on virtual/libx11 | ||
| 25 | REQUIRED_DISTRO_FEATURES = "x11" | ||
| 26 | |||
| 27 | CFLAGS_append = " -fno-builtin-fork -fno-builtin-memset -fno-builtin-strstr " | ||
| 28 | |||
| 29 | EXTRA_OECONF += "--enable-gtk3=no --enable-password=yes --with-x -with-xconn=xcb \ | ||
| 30 | ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/ --disable-consolekit', '--without-systemdsystemunitdir', d)} \ | ||
| 31 | ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \ | ||
| 32 | " | ||
| 33 | |||
| 34 | do_configure_prepend() { | ||
| 35 | cp ${STAGING_DATADIR}/gettext/po/Makefile.in.in ${S}/po/ | ||
| 36 | } | ||
| 37 | |||
| 38 | do_compile_append() { | ||
| 39 | # default background configured not available / no password field available / no default screensaver | ||
| 40 | sed -i -e 's,bg=,# bg=,g' \ | ||
| 41 | -e 's,# skip_password=,skip_password=,g' \ | ||
| 42 | -e 's,# arg=.*,arg=${bindir}/X -s 0,g' \ | ||
| 43 | ${S}/data/lxdm.conf.in | ||
| 44 | # add default configuration | ||
| 45 | oe_runmake -C ${B}/data lxdm.conf | ||
| 46 | } | ||
| 47 | |||
| 48 | do_install_append() { | ||
| 49 | install -d ${D}${localstatedir}/lib/lxdm | ||
| 50 | install -m 644 ${WORKDIR}/lxdm.conf ${D}${localstatedir}/lib/lxdm | ||
| 51 | if ${@base_contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then | ||
| 52 | # ArchLinux version of pam config has the following advantages: | ||
| 53 | # * simple setup of passwordless login | ||
| 54 | # * in XFCE powerdown/restart enabled in logoff dialog | ||
| 55 | install -m 644 ${WORKDIR}/${@base_contains("DISTRO_TYPE", "debug", "lxdm-pam-debug", "lxdm-pam",d)} ${D}${sysconfdir}/pam.d/lxdm | ||
| 56 | fi | ||
| 57 | } | ||
| 58 | |||
| 59 | # make installed languages choosable | ||
| 60 | pkg_postinst_${PN} () { | ||
| 61 | langs="" | ||
| 62 | for lang in `find $D${libdir}/locale -maxdepth 1 | grep _ | sort`; do | ||
| 63 | lang=`basename $lang` | ||
| 64 | if [ "x$langs" = "x" ]; then | ||
| 65 | langs="$lang" | ||
| 66 | else | ||
| 67 | langs="$langs $lang" | ||
| 68 | fi | ||
| 69 | done | ||
| 70 | sed -i "s:last_langs=.*$:last_langs=$langs:g" $D${localstatedir}/lib/lxdm/lxdm.conf | ||
| 71 | } | ||
| 72 | |||
| 73 | RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', 'pam-plugin-loginuid', '', d)} setxkbmap bash librsvg-gtk" | ||
| 74 | |||
| 75 | RPROVIDES_${PN} += "${PN}-systemd" | ||
| 76 | RREPLACES_${PN} += "${PN}-systemd" | ||
| 77 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
| 78 | SYSTEMD_SERVICE_${PN} = "lxdm.service" | ||
