wok-next annotate lxdm/receipt @ rev 20223
luufs, lxpolkit, mcrypt: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 05 17:17:00 2017 +0100 (2017-11-05) |
parents | c9e270dd464f |
children | 757d032c55c7 |
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 |
pankso@12410 | 14 BUILD_DEPENDS="xorg-dev gtk+-dev" |
al@19856 | 15 BUILD_DEPENDS="intltool xorg-libX11-dev gtk+-dev iso-codes" # + consolekit2-dev |
al@19856 | 16 SPLIT="lxdm-dev" |
pankso@12410 | 17 |
pascal@11223 | 18 # Rules to configure and make the package. |
pascal@11223 | 19 compile_rules() |
pascal@11223 | 20 { |
pascal@11223 | 21 ./configure \ |
al@19856 | 22 --sbindir=/usr/bin \ |
pascal@11223 | 23 --libexecdir=/usr/lib/lxdm \ |
pascal@11223 | 24 --sysconfdir=/etc \ |
al@19856 | 25 --localstatedir=/var \ |
al@19856 | 26 --enable-password \ |
pascal@11223 | 27 --without-pam \ |
pascal@11223 | 28 $CONFIGURE_ARGS && |
al@19856 | 29 make && make install || return 1 |
al@19856 | 30 |
al@19856 | 31 # lxdm daemon |
al@19856 | 32 cp -a $stuff/init.d/ $install/etc/ |
al@19856 | 33 |
al@19856 | 34 cp -af $stuff/Xsession $install/etc/lxdm |
al@19856 | 35 cp -af $stuff/PostLogout $install/etc/lxdm |
al@19856 | 36 chown -R root:root $install |
pascal@11223 | 37 } |
pascal@11223 | 38 |
pascal@11223 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11223 | 40 genpkg_rules() |
pascal@11223 | 41 { |
al@19856 | 42 case $PACKAGE in |
al@19856 | 43 lxdm) |
al@19856 | 44 copy @std |
al@19856 | 45 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ pango \ |
al@19856 | 46 xorg-libX11 xorg-libxcb" |
al@19856 | 47 SUGGESTED="iso-codes" |
al@19856 | 48 CONFIG_FILES="/etc/lxdm/LoginReady /etc/lxdm/PostLogin \ |
al@19856 | 49 /etc/lxdm/PostLogout /etc/lxdm/PreLogin /etc/lxdm/PreReboot \ |
al@19856 | 50 /etc/lxdm/PreShutdown /etc/lxdm/Xsession /etc/lxdm/lxdm.conf" |
al@19856 | 51 TAGS="LXDE" |
al@19856 | 52 ;; |
al@19856 | 53 *-dev) |
al@19856 | 54 copy @dev |
al@19856 | 55 DEPENDS="lxdm atk-dev cairo-dev fontconfig-dev freetype-dev \ |
al@19856 | 56 gdk-pixbuf-dev glib-dev gtk+-dev pango-dev" |
al@19856 | 57 ;; |
al@19856 | 58 esac |
pascal@11223 | 59 } |
al@19856 | 60 |
al@19856 | 61 post_install_lxdm() { |
al@19856 | 62 grep -q '^lxdm' "$1/etc/passwd" && return 0 |
al@19856 | 63 chroot "$1/" adduser \ |
al@19856 | 64 -h /var/lib/lxdm \ |
al@19856 | 65 -g 'LXDE login manager' \ |
al@19856 | 66 -s /bin/false \ |
al@19856 | 67 -S lxdm |
al@19856 | 68 chroot "$1/" chown lxdm:lxdm /var/lib/lxdm |
al@19856 | 69 chroot "$1/" chmod 700 /var/lib/lxdm |
al@19856 | 70 } |