wok-next annotate lxdm/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 757d032c55c7 |
children | d5aab818505e |
rev | line source |
---|---|
al@19856 | 1 # SliTaz package receipt v2. |
pascal@11223 | 2 |
pascal@11223 | 3 PACKAGE="lxdm" |
al@19856 | 4 VERSION="0.5.3" |
pascal@11223 | 5 CATEGORY="x-window" |
al@17992 | 6 SHORT_DESC="GUI login manager for LXDE" |
pascal@11223 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
al@19856 | 9 WEB_SITE="https://wiki.lxde.org/en/LXDM" |
al@19856 | 10 |
al@19856 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@11223 | 12 WGET_URL="$SF_MIRROR/lxde/$TARBALL" |
pascal@11223 | 13 |
al@21017 | 14 BUILD_DEPENDS="intltool xorg-libX11-dev gtk2-dev iso-codes" # + consolekit2-dev |
al@19856 | 15 SPLIT="lxdm-dev" |
pankso@12410 | 16 |
al@20534 | 17 compile_rules() { |
pascal@11223 | 18 ./configure \ |
al@19856 | 19 --sbindir=/usr/bin \ |
pascal@11223 | 20 --libexecdir=/usr/lib/lxdm \ |
al@19856 | 21 --enable-password \ |
pascal@11223 | 22 --without-pam \ |
pascal@11223 | 23 $CONFIGURE_ARGS && |
al@20534 | 24 make && |
al@20534 | 25 make install || return 1 |
al@19856 | 26 |
al@19856 | 27 # lxdm daemon |
al@19856 | 28 cp -a $stuff/init.d/ $install/etc/ |
al@19856 | 29 |
al@19856 | 30 cp -af $stuff/Xsession $install/etc/lxdm |
al@19856 | 31 cp -af $stuff/PostLogout $install/etc/lxdm |
al@19856 | 32 chown -R root:root $install |
pascal@11223 | 33 } |
pascal@11223 | 34 |
al@20534 | 35 genpkg_rules() { |
al@19856 | 36 case $PACKAGE in |
al@19856 | 37 lxdm) |
al@19856 | 38 copy @std |
al@21017 | 39 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk2 pango \ |
al@19856 | 40 xorg-libX11 xorg-libxcb" |
al@19856 | 41 SUGGESTED="iso-codes" |
al@19856 | 42 CONFIG_FILES="/etc/lxdm/LoginReady /etc/lxdm/PostLogin \ |
al@19856 | 43 /etc/lxdm/PostLogout /etc/lxdm/PreLogin /etc/lxdm/PreReboot \ |
al@19856 | 44 /etc/lxdm/PreShutdown /etc/lxdm/Xsession /etc/lxdm/lxdm.conf" |
al@19856 | 45 TAGS="LXDE" |
al@19856 | 46 ;; |
al@19856 | 47 *-dev) |
al@19856 | 48 copy @dev |
al@19856 | 49 DEPENDS="lxdm atk-dev cairo-dev fontconfig-dev freetype-dev \ |
al@21017 | 50 gdk-pixbuf-dev glib-dev gtk2-dev pango-dev" |
al@19856 | 51 ;; |
al@19856 | 52 esac |
pascal@11223 | 53 } |
al@19856 | 54 |
al@19856 | 55 post_install_lxdm() { |
al@19856 | 56 grep -q '^lxdm' "$1/etc/passwd" && return 0 |
al@19856 | 57 chroot "$1/" adduser \ |
al@19856 | 58 -h /var/lib/lxdm \ |
al@19856 | 59 -g 'LXDE login manager' \ |
al@19856 | 60 -s /bin/false \ |
al@19856 | 61 -S lxdm |
al@19856 | 62 chroot "$1/" chown lxdm:lxdm /var/lib/lxdm |
al@19856 | 63 chroot "$1/" chmod 700 /var/lib/lxdm |
al@19856 | 64 } |