wok annotate slim-pam/receipt @ rev 13413
Axel and abiword desc files
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Mon Oct 01 06:39:04 2012 +0000 (2012-10-01) |
parents | 514fe57ed853 |
children | d0948455b365 |
rev | line source |
---|---|
pascal@2223 | 1 # SliTaz package receipt. |
pascal@2223 | 2 |
pascal@2223 | 3 PACKAGE="slim-pam" |
pankso@13364 | 4 VERSION="1.3.3" |
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 |
pankso@13364 | 16 DEPENDS="glibc-base gcc-lib-base expat fontconfig freetype util-linux-uuid \ |
pankso@13364 | 17 zlib jpeg libpng xorg-libXft xorg-libXmu pam" |
pankso@13364 | 18 BUILD_DEPENDS="pam-dev xorg-libXft-dev xorg-libXmu-dev jpeg-dev libpng-dev cmake" |
pascal@10452 | 19 |
pascal@2223 | 20 # Rules to configure and make the package. |
pascal@2223 | 21 compile_rules() |
pascal@2223 | 22 { |
pascal@2223 | 23 cd $src |
pankso@13364 | 24 cmake \ |
pankso@13364 | 25 -DCMAKE_INSTALL_PREFIX=/usr \ |
pankso@13364 | 26 -DUSE_PAM=yes . && |
pankso@13364 | 27 make && make DESTDIR=$DESTDIR install |
pascal@2223 | 28 } |
pascal@2223 | 29 |
pascal@2223 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2223 | 31 genpkg_rules() |
pascal@2223 | 32 { |
rcx@6055 | 33 mkdir -p $fs/usr/share/slim |
slaxemulator@9701 | 34 cp -a ../$SOURCE/stuff/themes $fs/usr/share/slim |
pankso@13364 | 35 cp -a $install/usr/bin $fs/usr |
pankso@13364 | 36 |
rcx@6055 | 37 # Config file and rc script. |
slaxemulator@9701 | 38 cp -a ../$SOURCE/stuff/etc $fs |
pascal@2223 | 39 chown -R root.root $fs |
pascal@2223 | 40 } |
pascal@2223 | 41 |
rcx@6055 | 42 pre_install() |
pascal@2223 | 43 { |
pascal@2223 | 44 local root |
pascal@2223 | 45 root=$1 |
pascal@2223 | 46 # Backup config file. |
pascal@2223 | 47 if [ -f $root/etc/slim.conf ]; then |
pascal@2223 | 48 cp $root/etc/slim.conf $root/etc/slim.conf.bak |
pascal@2223 | 49 fi |
pascal@2223 | 50 } |
pascal@2223 | 51 |
pascal@2223 | 52 post_install() |
pascal@2223 | 53 { |
pascal@2223 | 54 local root |
pascal@2223 | 55 root=$1 |
pascal@2223 | 56 # Restore original config. |
pascal@2223 | 57 if [ -f $root/etc/slim.conf.bak ]; then |
pascal@2223 | 58 mv -f $root/etc/slim.conf.bak $root/etc/slim.conf |
pascal@2223 | 59 fi |
pascal@2223 | 60 local USER |
pascal@2223 | 61 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd) |
pascal@2223 | 62 [ -n "$USER" ] && |
pascal@2223 | 63 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf |
pascal@2223 | 64 } |
pascal@7632 | 65 |
pascal@7632 | 66 pre_remove() |
pascal@7632 | 67 { |
pascal@7632 | 68 tazpkg get-install ${PACKAGE%-pam} |
pascal@7632 | 69 } |