wok-next annotate slim-pam/receipt @ rev 10947

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