wok-6.x annotate slim/receipt @ rev 10554
pam_ldap: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 21:33:08 2011 +0200 (2011-05-25) |
parents | faad1224c24e |
children | 37482777ad0f |
rev | line source |
---|---|
pankso@263 | 1 # SliTaz package receipt. |
pankso@263 | 2 |
pankso@263 | 3 PACKAGE="slim" |
rcx@6055 | 4 VERSION="1.3.2" |
pankso@263 | 5 CATEGORY="x-window" |
pankso@263 | 6 SHORT_DESC="Desktop-independent graphical login manager for X11." |
pankso@263 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@2838 | 8 SUGGESTED="slim-theme-default slitaz-configs" |
pankso@263 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@263 | 10 WEB_SITE="http://slim.berlios.de" |
pankso@263 | 11 WGET_URL="http://download.berlios.de/slim/$TARBALL" |
pascal@1212 | 12 CONFIG_FILES="/etc/slim.conf" |
pascal@1778 | 13 BUGS="Sometime needs more than 10 seconds to start (since HAL/DCOP addition)." |
pankso@263 | 14 |
pankso@9737 | 15 DEPENDS="glibc-base gcc-lib-base expat fontconfig freetype util-linux-ng-uuid \ |
pankso@9737 | 16 zlib jpeg libpng xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp \ |
pankso@9737 | 17 xorg-libXext xorg-libXft xorg-libXmu xorg-libXrender xorg-libXt" |
pankso@9737 | 18 BUILD_DEPENDS="xorg-libX11-dev xorg-libXft-dev" |
pankso@9737 | 19 |
pankso@263 | 20 # Rules to configure and make the package. |
pankso@263 | 21 compile_rules() |
pankso@263 | 22 { |
pankso@263 | 23 cd $src |
pascal@8974 | 24 patch -p1 < $stuff/NoPwdForCmd.patch || return 1 |
pankso@9737 | 25 make && make DESTDIR=$WOK/$PACKAGE/install install |
pankso@263 | 26 } |
pankso@263 | 27 |
pankso@263 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@263 | 29 genpkg_rules() |
pankso@263 | 30 { |
rcx@6055 | 31 mkdir -p $fs/usr/share/slim |
pascal@8974 | 32 cp -a $stuff/themes $fs/usr/share/slim |
rcx@6055 | 33 cp -a $_pkg/usr/bin $fs/usr |
rcx@6055 | 34 |
pankso@2838 | 35 # Config file and rc script. |
pascal@8974 | 36 cp -a $stuff/etc $fs |
pankso@1090 | 37 chown -R root.root $fs |
pankso@263 | 38 } |
pankso@263 | 39 |
pankso@3000 | 40 pre_install() |
pankso@2053 | 41 { |
pankso@2053 | 42 local root |
pankso@2053 | 43 root=$1 |
pankso@2053 | 44 # Backup config file. |
pankso@2053 | 45 if [ -f $root/etc/slim.conf ]; then |
pankso@2053 | 46 cp $root/etc/slim.conf $root/etc/slim.conf.bak |
pankso@2053 | 47 fi |
pankso@2053 | 48 } |
pankso@2053 | 49 |
pascal@1062 | 50 post_install() |
pascal@1062 | 51 { |
pankso@2053 | 52 local root |
pankso@2053 | 53 root=$1 |
pankso@2053 | 54 # Restore original config. |
pankso@2053 | 55 if [ -f $root/etc/slim.conf.bak ]; then |
pankso@2053 | 56 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf |
pankso@2053 | 57 fi |
pascal@1784 | 58 local USER |
pascal@1784 | 59 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd) |
pascal@1784 | 60 [ -n "$USER" ] && |
pascal@1784 | 61 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf |
pascal@1062 | 62 } |