wok-next view lxdm/receipt @ rev 21495
updated arping (2.19 -> 2.21)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 18 21:25:23 2020 +0100 (2020-06-18) |
parents | 5669e8b3be70 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lxdm"
4 VERSION="0.5.3"
5 CATEGORY="x-window"
6 SHORT_DESC="GUI login manager for LXDE"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://wiki.lxde.org/en/LXDM"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
14 BUILD_DEPENDS="intltool libx11-dev gtk2-dev iso-codes" # + consolekit2-dev
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 ./configure \
19 --sbindir=/usr/bin \
20 --libexecdir=/usr/lib/lxdm \
21 --enable-password \
22 --without-pam \
23 $CONFIGURE_ARGS &&
24 make &&
25 make install || return 1
27 # lxdm daemon
28 cp -a $stuff/init.d/ $install/etc/
30 cp -af $stuff/Xsession $install/etc/lxdm
31 cp -af $stuff/PostLogout $install/etc/lxdm
32 chown -R root:root $install
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 lxdm)
38 copy @std
39 DEPENDS="atk libcairo fontconfig freetype gdk-pixbuf glib gtk2 pango \
40 libx11 libxcb"
41 SUGGESTED="iso-codes"
42 CONFIG_FILES="/etc/lxdm/LoginReady /etc/lxdm/PostLogin \
43 /etc/lxdm/PostLogout /etc/lxdm/PreLogin /etc/lxdm/PreReboot \
44 /etc/lxdm/PreShutdown /etc/lxdm/Xsession /etc/lxdm/lxdm.conf"
45 TAGS="LXDE"
46 ;;
47 *-dev)
48 copy @dev
49 DEPENDS="lxdm atk-dev cairo-dev fontconfig-dev freetype-dev \
50 gdk-pixbuf-dev glib-dev gtk2-dev pango-dev"
51 ;;
52 esac
53 }
55 post_install_lxdm() {
56 grep -q '^lxdm' "$1/etc/passwd" && return 0
57 chroot "$1/" adduser \
58 -h /var/lib/lxdm \
59 -g 'LXDE login manager' \
60 -s /bin/false \
61 -S lxdm
62 chroot "$1/" chown lxdm:lxdm /var/lib/lxdm
63 chroot "$1/" chmod 700 /var/lib/lxdm
64 }