wok annotate slim-pam/receipt @ rev 5371
Fixed bug #316 - 3 missing BUILD_DEPENDS in slim package.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Apr 30 03:51:49 2010 +0000 (2010-04-30) |
parents | 996a788dda09 |
children | a0fa6235faca |
rev | line source |
---|---|
pascal@2223 | 1 # SliTaz package receipt. |
pascal@2223 | 2 |
pascal@2223 | 3 PACKAGE="slim-pam" |
pascal@2223 | 4 VERSION="1.3.1" |
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 |
pankso@3815 | 23 patch -p0 < ../../slim/stuff/gcc44.patch || exit 1 |
pascal@2223 | 24 sed -i "s|/usr/X11R6/include|/usr/include/xorg|g" Makefile |
pascal@2223 | 25 sed -i "s|/usr/X11R6/|/usr/|g" Makefile |
pascal@2223 | 26 make USE_PAM=1 |
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 { |
pascal@2223 | 32 mkdir -p $fs/usr/bin $fs/usr/share/slim |
pascal@2223 | 33 cp -a $src/slim $fs/usr/bin |
pankso@3815 | 34 |
pascal@2223 | 35 # Config file and rc script (theme is in slitaz-configs). |
pascal@2223 | 36 cp -a ../$SOURCE/stuff/etc $fs |
pascal@2223 | 37 chown -R root.root $fs |
pascal@2223 | 38 } |
pascal@2223 | 39 |
pascal@2223 | 40 pre_instal() |
pascal@2223 | 41 { |
pascal@2223 | 42 local root |
pascal@2223 | 43 root=$1 |
pascal@2223 | 44 # Backup config file. |
pascal@2223 | 45 if [ -f $root/etc/slim.conf ]; then |
pascal@2223 | 46 cp $root/etc/slim.conf $root/etc/slim.conf.bak |
pascal@2223 | 47 fi |
pascal@2223 | 48 } |
pascal@2223 | 49 |
pascal@2223 | 50 post_install() |
pascal@2223 | 51 { |
pascal@2223 | 52 local root |
pascal@2223 | 53 root=$1 |
pascal@2223 | 54 # Restore original config. |
pascal@2223 | 55 if [ -f $root/etc/slim.conf.bak ]; then |
pascal@2223 | 56 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf |
pascal@2223 | 57 fi |
pascal@2223 | 58 local USER |
pascal@2223 | 59 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd) |
pascal@2223 | 60 [ -n "$USER" ] && |
pascal@2223 | 61 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf |
pascal@2223 | 62 } |