wok-6.x annotate slim-pam/receipt @ rev 8623
Fix: libarchive doesn't need acl hack anymore: acl files are now installed to the right location.
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Mon Feb 14 20:54:26 2011 +0100 (2011-02-14) |
parents | a0fa6235faca |
children | 4a193c62c501 |
rev | line source |
---|---|
pascal@2223 | 1 # SliTaz package receipt. |
pascal@2223 | 2 |
pascal@2223 | 3 PACKAGE="slim-pam" |
rcx@6055 | 4 VERSION="1.3.2" |
pascal@2223 | 5 CATEGORY="x-window" |
pascal@2223 | 6 SHORT_DESC="Desktop-independent graphical login manager for X11." |
pascal@2223 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2223 | 8 DEPENDS="xorg jpeg libpng slitaz-configs pam" |
slaxemulator@5371 | 9 BUILD_DEPENDS="xorg-dev jpeg-dev libpng-dev xorg-libXft-dev pam pam-dev \ |
slaxemulator@5371 | 10 zlib-dev freetype-dev fontconfig-dev" |
pascal@2223 | 11 SOURCE="slim" |
pascal@2223 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2223 | 13 WEB_SITE="http://slim.berlios.de" |
pascal@2223 | 14 WGET_URL="http://download.berlios.de/slim/$TARBALL" |
pascal@2223 | 15 CONFIG_FILES="/etc/slim.conf" |
pascal@2223 | 16 PROVIDE="slim:pam" |
pascal@2223 | 17 BUGS="Sometime needs more than 10 seconds to start (since HAL/DCOP addition)." |
pascal@2223 | 18 |
pascal@2223 | 19 # Rules to configure and make the package. |
pascal@2223 | 20 compile_rules() |
pascal@2223 | 21 { |
pascal@2223 | 22 cd $src |
rcx@6055 | 23 make USE_PAM=1 && |
rcx@6055 | 24 make DESTDIR=$src/_pkg install |
pascal@2223 | 25 } |
pascal@2223 | 26 |
pascal@2223 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2223 | 28 genpkg_rules() |
pascal@2223 | 29 { |
rcx@6055 | 30 mkdir -p $fs/usr/share/slim |
rcx@6055 | 31 cp -a ../$SOURCE/stuff/themes $fs/usr/share/slim |
rcx@6055 | 32 cp -a $_pkg/usr/bin $fs/usr |
rcx@6055 | 33 |
rcx@6055 | 34 # Config file and rc script. |
pascal@2223 | 35 cp -a ../$SOURCE/stuff/etc $fs |
pascal@2223 | 36 chown -R root.root $fs |
pascal@2223 | 37 } |
pascal@2223 | 38 |
rcx@6055 | 39 pre_install() |
pascal@2223 | 40 { |
pascal@2223 | 41 local root |
pascal@2223 | 42 root=$1 |
pascal@2223 | 43 # Backup config file. |
pascal@2223 | 44 if [ -f $root/etc/slim.conf ]; then |
pascal@2223 | 45 cp $root/etc/slim.conf $root/etc/slim.conf.bak |
pascal@2223 | 46 fi |
pascal@2223 | 47 } |
pascal@2223 | 48 |
pascal@2223 | 49 post_install() |
pascal@2223 | 50 { |
pascal@2223 | 51 local root |
pascal@2223 | 52 root=$1 |
pascal@2223 | 53 # Restore original config. |
pascal@2223 | 54 if [ -f $root/etc/slim.conf.bak ]; then |
pascal@2223 | 55 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf |
pascal@2223 | 56 fi |
pascal@2223 | 57 local USER |
pascal@2223 | 58 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd) |
pascal@2223 | 59 [ -n "$USER" ] && |
pascal@2223 | 60 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf |
pascal@2223 | 61 } |
pascal@7632 | 62 |
pascal@7632 | 63 pre_remove() |
pascal@7632 | 64 { |
pascal@7632 | 65 tazpkg get-install ${PACKAGE%-pam} |
pascal@7632 | 66 } |