wok-current view slim-pam/receipt @ rev 13453
Add: claws-mail-perl
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Oct 07 01:30:47 2012 +0200 (2012-10-07) |
parents | 514fe57ed853 |
children | d0948455b365 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slim-pam"
4 VERSION="1.3.3"
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"
16 DEPENDS="glibc-base gcc-lib-base expat fontconfig freetype util-linux-uuid \
17 zlib jpeg libpng xorg-libXft xorg-libXmu pam"
18 BUILD_DEPENDS="pam-dev xorg-libXft-dev xorg-libXmu-dev jpeg-dev libpng-dev cmake"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 cmake \
25 -DCMAKE_INSTALL_PREFIX=/usr \
26 -DUSE_PAM=yes . &&
27 make && make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/slim
34 cp -a ../$SOURCE/stuff/themes $fs/usr/share/slim
35 cp -a $install/usr/bin $fs/usr
37 # Config file and rc script.
38 cp -a ../$SOURCE/stuff/etc $fs
39 chown -R root.root $fs
40 }
42 pre_install()
43 {
44 local root
45 root=$1
46 # Backup config file.
47 if [ -f $root/etc/slim.conf ]; then
48 cp $root/etc/slim.conf $root/etc/slim.conf.bak
49 fi
50 }
52 post_install()
53 {
54 local root
55 root=$1
56 # Restore original config.
57 if [ -f $root/etc/slim.conf.bak ]; then
58 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf
59 fi
60 local USER
61 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
62 [ -n "$USER" ] &&
63 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf
64 }
66 pre_remove()
67 {
68 tazpkg get-install ${PACKAGE%-pam}
69 }