wok-next diff lxdm/receipt @ rev 20180

opencc: fix wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 02 12:28:56 2017 +0100 (2017-11-02)
parents c9e270dd464f
children 757d032c55c7
line diff
     1.1 --- a/lxdm/receipt	Thu Apr 23 16:47:39 2015 +0300
     1.2 +++ b/lxdm/receipt	Thu Nov 02 12:28:56 2017 +0100
     1.3 @@ -1,45 +1,70 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="lxdm"
     1.8 -VERSION="0.4.1"
     1.9 +VERSION="0.5.3"
    1.10  CATEGORY="x-window"
    1.11  SHORT_DESC="GUI login manager for LXDE"
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  LICENSE="GPL3"
    1.14 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15 -WEB_SITE="http://lxde.org/"
    1.16 +WEB_SITE="https://wiki.lxde.org/en/LXDM"
    1.17 +
    1.18 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.19  WGET_URL="$SF_MIRROR/lxde/$TARBALL"
    1.20 -TAGS="LXDE"
    1.21  
    1.22 -DEPENDS="xorg-libX11 gtk+ slitaz-configs"
    1.23  BUILD_DEPENDS="xorg-dev gtk+-dev"
    1.24 +BUILD_DEPENDS="intltool xorg-libX11-dev gtk+-dev   iso-codes" # + consolekit2-dev
    1.25 +SPLIT="lxdm-dev"
    1.26  
    1.27  # Rules to configure and make the package.
    1.28  compile_rules()
    1.29  {
    1.30  	./configure \
    1.31 +		--sbindir=/usr/bin \
    1.32  		--libexecdir=/usr/lib/lxdm \
    1.33  		--sysconfdir=/etc \
    1.34 +		--localstatedir=/var \
    1.35 +		--enable-password \
    1.36  		--without-pam \
    1.37  		$CONFIGURE_ARGS &&
    1.38 -	make && make install
    1.39 +	make && make install || return 1
    1.40 +
    1.41 +	# lxdm daemon
    1.42 +	cp -a $stuff/init.d/ $install/etc/
    1.43 +
    1.44 +	cp -af $stuff/Xsession   $install/etc/lxdm
    1.45 +	cp -af $stuff/PostLogout $install/etc/lxdm
    1.46 +	chown -R root:root $install
    1.47  }
    1.48  
    1.49  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.50  genpkg_rules()
    1.51  {
    1.52 -	mkdir -p $fs/etc $fs/usr/share
    1.53 -	cp -a $install/etc/lxdm $fs/etc
    1.54 -	cp -a $install/usr/lib $fs/usr
    1.55 -	cp -a $install/usr/sbin $fs/usr
    1.56 -	cp -a $install/usr/share/lxdm $fs/usr/share
    1.57 -	cp -a $stuff/init.d $fs/etc
    1.58 -	# Use /bin/sh
    1.59 -	sed -i s'/bin\/bash/bin\/sh/' $fs/etc/lxdm/*
    1.60 -	# Custom SliTaz configuration
    1.61 -	# NOTE: will move to slitaz-configs when we have a nice theme
    1.62 -	cp -a $stuff/lxdm.conf $fs/etc/lxdm
    1.63 -	cp -a $stuff/Xsession $fs/etc/lxdm
    1.64 -	cp -a $stuff/PostLogout $fs/etc/lxdm
    1.65 -	chown -R root.root $fs
    1.66 +	case $PACKAGE in
    1.67 +		lxdm)
    1.68 +			copy @std
    1.69 +			DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ pango \
    1.70 +			xorg-libX11 xorg-libxcb"
    1.71 +			SUGGESTED="iso-codes"
    1.72 +			CONFIG_FILES="/etc/lxdm/LoginReady /etc/lxdm/PostLogin \
    1.73 +			/etc/lxdm/PostLogout /etc/lxdm/PreLogin /etc/lxdm/PreReboot \
    1.74 +			/etc/lxdm/PreShutdown /etc/lxdm/Xsession /etc/lxdm/lxdm.conf"
    1.75 +			TAGS="LXDE"
    1.76 +			;;
    1.77 +		*-dev)
    1.78 +			copy @dev
    1.79 +			DEPENDS="lxdm atk-dev cairo-dev fontconfig-dev freetype-dev \
    1.80 +			gdk-pixbuf-dev glib-dev gtk+-dev pango-dev"
    1.81 +			;;
    1.82 +	esac
    1.83  }
    1.84 +
    1.85 +post_install_lxdm() {
    1.86 +	grep -q '^lxdm' "$1/etc/passwd" && return 0
    1.87 +	chroot "$1/" adduser \
    1.88 +		-h /var/lib/lxdm \
    1.89 +		-g 'LXDE login manager' \
    1.90 +		-s /bin/false \
    1.91 +		-S lxdm
    1.92 +	chroot "$1/" chown lxdm:lxdm /var/lib/lxdm
    1.93 +	chroot "$1/" chmod 700       /var/lib/lxdm
    1.94 +}