wok view slim/receipt @ rev 11563
Add pysdm form wok-undigest
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 25 15:19:21 2011 +0100 (2011-12-25) |
parents | faad1224c24e |
children | 37482777ad0f |
line source
1 # SliTaz package receipt.
3 PACKAGE="slim"
4 VERSION="1.3.2"
5 CATEGORY="x-window"
6 SHORT_DESC="Desktop-independent graphical login manager for X11."
7 MAINTAINER="pankso@slitaz.org"
8 SUGGESTED="slim-theme-default slitaz-configs"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://slim.berlios.de"
11 WGET_URL="http://download.berlios.de/slim/$TARBALL"
12 CONFIG_FILES="/etc/slim.conf"
13 BUGS="Sometime needs more than 10 seconds to start (since HAL/DCOP addition)."
15 DEPENDS="glibc-base gcc-lib-base expat fontconfig freetype util-linux-ng-uuid \
16 zlib jpeg libpng xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp \
17 xorg-libXext xorg-libXft xorg-libXmu xorg-libXrender xorg-libXt"
18 BUILD_DEPENDS="xorg-libX11-dev xorg-libXft-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 patch -p1 < $stuff/NoPwdForCmd.patch || return 1
25 make && make DESTDIR=$WOK/$PACKAGE/install install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share/slim
32 cp -a $stuff/themes $fs/usr/share/slim
33 cp -a $_pkg/usr/bin $fs/usr
35 # Config file and rc script.
36 cp -a $stuff/etc $fs
37 chown -R root.root $fs
38 }
40 pre_install()
41 {
42 local root
43 root=$1
44 # Backup config file.
45 if [ -f $root/etc/slim.conf ]; then
46 cp $root/etc/slim.conf $root/etc/slim.conf.bak
47 fi
48 }
50 post_install()
51 {
52 local root
53 root=$1
54 # Restore original config.
55 if [ -f $root/etc/slim.conf.bak ]; then
56 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf
57 fi
58 local USER
59 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
60 [ -n "$USER" ] &&
61 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
62 }