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