wok annotate slim-pam/receipt @ rev 9629

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