wok-6.x view slim-pam/receipt @ rev 10768
glibc-base: include it_IT if we want Italian locale to work!
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 31 15:35:24 2011 +0200 (2011-05-31) |
parents | 7b13b3b4b836 |
children | 73641efed1cc |
line source
1 # SliTaz package receipt.
3 PACKAGE="slim-pam"
4 VERSION="1.3.2"
5 CATEGORY="x-window"
6 SHORT_DESC="Desktop-independent graphical login manager for X11."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SUGGESTED="slim-theme-default slitaz-configs"
9 SOURCE="slim"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://slim.berlios.de"
12 WGET_URL="http://download.berlios.de/slim/$TARBALL"
13 CONFIG_FILES="/etc/slim.conf"
14 PROVIDE="slim:pam"
15 BUGS="Sometime needs more than 10 seconds to start (since HAL/DCOP addition)."
17 DEPENDS="glibc-base gcc-lib-base expat fontconfig freetype util-linux-ng-uuid zlib \
18 jpeg libpng xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp \
19 xorg-libXext xorg-libXft xorg-libXmu xorg-libXrender xorg-libXt \
20 pam"
21 BUILD_DEPENDS="pam-dev"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 make USE_PAM=1 &&
28 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/slim
35 cp -a ../$SOURCE/stuff/themes $fs/usr/share/slim
36 cp -a $_pkg/usr/bin $fs/usr
38 # Config file and rc script.
39 cp -a ../$SOURCE/stuff/etc $fs
40 chown -R root.root $fs
41 }
43 pre_install()
44 {
45 local root
46 root=$1
47 # Backup config file.
48 if [ -f $root/etc/slim.conf ]; then
49 cp $root/etc/slim.conf $root/etc/slim.conf.bak
50 fi
51 }
53 post_install()
54 {
55 local root
56 root=$1
57 # Restore original config.
58 if [ -f $root/etc/slim.conf.bak ]; then
59 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf
60 fi
61 local USER
62 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
63 [ -n "$USER" ] &&
64 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
65 }
67 pre_remove()
68 {
69 tazpkg get-install ${PACKAGE%-pam}
70 }