wok view xorg-server-Xvesa/receipt @ rev 5573

tcc: add cross compilers
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 15 16:05:09 2010 +0200 (2010-05-15)
parents d9da3725841c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-server-Xvesa"
4 VERSION="1.5.3"
5 CATEGORY="x-window"
6 SHORT_DESC="Xorg kdrive server Xvesa (tinyX)."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="xorg-libXau xorg-libfontenc xorg-libXdmcp xorg-libXfont \
9 xorg-base-fonts freetype zlib hal dbus pixman libcrypto"
10 SUGGESTED="xorg-xrandr"
11 WANTED="xorg-server-tinyX"
12 SOURCE="xorg-server"
13 WEB_SITE="http://www.x.org/"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 _pkg=$WOK/$WANTED/$SOURCE-$VERSION/_pkg
19 mkdir -p $fs/usr/bin $fs/etc/X11
20 cp -a $_pkg/usr/bin/Xvesa $fs/usr/bin
21 chmod 4711 $fs/usr/bin/Xvesa
22 }
24 post_install()
25 {
26 # Upgrade from 1.2.0 to 1.5.3
27 if ! grep -q "\-keybd keyboard" $1/etc/slim.conf; then
28 echo -n "Updating Slim configuration..."
29 res=$(grep ^xserver_arguments $1/etc/slim.conf | \
30 sed 's/xserver_arguments.*-screen *//' | awk '{ print $1 }')
31 sed -i s/"-screen $res"/"-screen $res -keybd keyboard -mouse mouse,5,\/dev\/input\/mice -nolisten tcp"/ \
32 $1/etc/slim.conf
33 status
34 fi
35 }