wok-4.x view slim-pam/receipt @ rev 3730
add doc for slitaz-tools: burnbox help
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Jul 22 13:27:26 2009 +0000 (2009-07-22) |
parents | |
children | 996a788dda09 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slim-pam"
4 VERSION="1.3.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Desktop-independent graphical login manager for X11."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="xorg jpeg libpng slitaz-configs pam"
9 BUILD_DEPENDS="xorg-dev jpeg-dev libpng-dev xorg-libXft-dev pam pam-dev"
10 SOURCE="slim"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WEB_SITE="http://slim.berlios.de"
13 WGET_URL="http://download.berlios.de/slim/$TARBALL"
14 CONFIG_FILES="/etc/slim.conf"
15 PROVIDE="slim:pam"
16 BUGS="Sometime needs more than 10 seconds to start (since HAL/DCOP addition)."
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 sed -i "s|/usr/X11R6/include|/usr/include/xorg|g" Makefile
23 sed -i "s|/usr/X11R6/|/usr/|g" Makefile
24 make USE_PAM=1
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $fs/usr/share/slim
31 cp -a $src/slim $fs/usr/bin
33 # Config file and rc script (theme is in slitaz-configs).
34 cp -a ../$SOURCE/stuff/etc $fs
35 chown -R root.root $fs
36 }
38 pre_instal()
39 {
40 local root
41 root=$1
42 # Backup config file.
43 if [ -f $root/etc/slim.conf ]; then
44 cp $root/etc/slim.conf $root/etc/slim.conf.bak
45 fi
46 }
48 post_install()
49 {
50 local root
51 root=$1
52 # Restore original config.
53 if [ -f $root/etc/slim.conf.bak ]; then
54 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf
55 fi
56 local USER
57 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
58 [ -n "$USER" ] &&
59 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
60 }