wok-next view slim-pam/receipt @ rev 10316

eet: Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat May 21 23:53:33 2011 +0000 (2011-05-21)
parents d1768332cee0
children 8f16693d09e5
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 DEPENDS="glibc-base gcc-lib-base expat fontconfig freetype util-linux-ng-uuid 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 pam"
12 SUGGESTED="slim-theme-default slitaz-configs"
13 SOURCE="slim"
14 TARBALL="$SOURCE-$VERSION.tar.gz"
15 WEB_SITE="http://slim.berlios.de"
16 WGET_URL="http://download.berlios.de/slim/$TARBALL"
17 CONFIG_FILES="/etc/slim.conf"
18 PROVIDE="slim:pam"
19 BUGS="Sometime needs more than 10 seconds to start (since HAL/DCOP addition)."
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 make USE_PAM=1 &&
26 make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share/slim
33 cp -a ../$SOURCE/stuff/themes $fs/usr/share/slim
34 cp -a $_pkg/usr/bin $fs/usr
36 # Config file and rc script.
37 cp -a ../$SOURCE/stuff/etc $fs
38 chown -R root.root $fs
39 }
41 pre_install()
42 {
43 local root
44 root=$1
45 # Backup config file.
46 if [ -f $root/etc/slim.conf ]; then
47 cp $root/etc/slim.conf $root/etc/slim.conf.bak
48 fi
49 }
51 post_install()
52 {
53 local root
54 root=$1
55 # Restore original config.
56 if [ -f $root/etc/slim.conf.bak ]; then
57 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf
58 fi
59 local USER
60 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
61 [ -n "$USER" ] &&
62 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
63 }
65 pre_remove()
66 {
67 tazpkg get-install ${PACKAGE%-pam}
68 }