wok diff slim-pam/receipt @ rev 17736

prelink: force libpthread link
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 06 12:45:18 2015 +0100 (2015-03-06)
parents 77143f213b9b
children 9e01bc6321ea
line diff
     1.1 --- a/slim-pam/receipt	Thu Sep 13 21:59:17 2012 +0200
     1.2 +++ b/slim-pam/receipt	Fri Mar 06 12:45:18 2015 +0100
     1.3 @@ -1,66 +1,67 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="slim-pam"
     1.7 -VERSION="1.3.3"
     1.8 +VERSION="1.3.5"
     1.9  CATEGORY="x-window"
    1.10 -SHORT_DESC="Desktop-independent graphical login manager for X11."
    1.11 +SHORT_DESC="Desktop-independent graphical login manager for X11 (PAM enabled)."
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13 -SUGGESTED="slim-theme-default slitaz-configs"
    1.14 +LICENSE="GPL2"
    1.15 +WEB_SITE="http://slim.berlios.de/"
    1.16  SOURCE="slim"
    1.17  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.18 -WEB_SITE="http://slim.berlios.de"
    1.19  WGET_URL="http://download.berlios.de/slim/$TARBALL"
    1.20  CONFIG_FILES="/etc/slim.conf"
    1.21 +
    1.22  PROVIDE="slim:pam"
    1.23 -
    1.24 -DEPENDS="glibc-base gcc-lib-base expat fontconfig freetype util-linux-uuid \
    1.25 -zlib jpeg libpng xorg-libXft xorg-libXmu pam"
    1.26 -BUILD_DEPENDS="pam-dev xorg-libXft-dev xorg-libXmu-dev jpeg-dev libpng-dev cmake"
    1.27 +DEPENDS="gcc-lib-base libjpeg libpng pam xorg-libXft xorg-libXmu"
    1.28 +SUGGESTED="slim-theme-default slitaz-configs"
    1.29 +BUILD_DEPENDS="cmake freetype-dev jpeg-dev libpng-dev xorg-libXft-dev \
    1.30 +xorg-libXmu-dev pam-dev"
    1.31 +RELATED="slim slim-theme-default"
    1.32  
    1.33  # Rules to configure and make the package.
    1.34  compile_rules()
    1.35  {
    1.36 -	cd $src
    1.37 +	patch -p1 < $WOK/$SOURCE/stuff/$SOURCE-$VERSION.patch || return 1
    1.38 +	mkdir build; cd build
    1.39  	cmake \
    1.40  		-DCMAKE_INSTALL_PREFIX=/usr \
    1.41 -		-DUSE_PAM=yes . &&
    1.42 -	make && make DESTDIR=$DESTDIR install
    1.43 +		-DX11_Xmu_LIB=-lXmu \
    1.44 +		-DUSE_PAM=yes \
    1.45 +		.. &&
    1.46 +	make &&
    1.47 +	make DESTDIR=$DESTDIR install
    1.48  }
    1.49  
    1.50  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.51  genpkg_rules()
    1.52  {
    1.53  	mkdir -p $fs/usr/share/slim
    1.54 -	cp -a ../$SOURCE/stuff/themes $fs/usr/share/slim
    1.55 +	cp -a $install/etc $fs
    1.56  	cp -a $install/usr/bin $fs/usr
    1.57 +	cp -a $WOK/$SOURCE/stuff/themes $fs/usr/share/slim
    1.58  
    1.59  	# Config file and rc script.
    1.60 -	cp -a ../$SOURCE/stuff/etc $fs
    1.61 +	cp -a $WOK/$SOURCE/stuff/etc $fs
    1.62  	chown -R root.root $fs
    1.63 -}
    1.64  
    1.65 -pre_install()
    1.66 -{
    1.67 -	local root
    1.68 -	root=$1
    1.69 -	# Backup config file.
    1.70 -	if [ -f $root/etc/slim.conf ]; then
    1.71 -		cp $root/etc/slim.conf $root/etc/slim.conf.bak
    1.72 -	fi
    1.73 +	# slim-theme manager
    1.74 +	install -m755 $WOK/$SOURCE/stuff/slim-theme $fs/usr/bin/slim-theme
    1.75  }
    1.76  
    1.77  post_install()
    1.78  {
    1.79 -	local root
    1.80 -	root=$1
    1.81 -	# Restore original config.
    1.82 -	if [ -f $root/etc/slim.conf.bak ]; then
    1.83 -		mv -f $root/etc/slim.conf.bak $root/etc/slim.conf
    1.84 -	fi
    1.85  	local USER
    1.86  	USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
    1.87  	[ -n "$USER" ] &&
    1.88  	sed -i s/"default_user .*"/"default_user        $USER"/ $1/etc/slim.conf
    1.89 +
    1.90 +	# In order to update the SLiM, we need to restart it.
    1.91 +	# We can't just "/etc/init.d/slim restart" because it momentarily interrupts
    1.92 +	# X session and the user will get a terrible console with strange letters.
    1.93 +	printf '%40s\n' | tr ' ' '='
    1.94 +	echo "In order to update the SLiM,"
    1.95 +	echo "please, reboot your system!"
    1.96  }
    1.97  
    1.98  pre_remove()