wok-current view xorg-server-Xvesa/receipt @ rev 3015
Up: Xvesa and others and add xorg-server-tinyX (use server 1.5.3)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 11 22:34:28 2009 +0200 (2009-05-11) |
parents | e9f7584e5ff5 |
children | d9da3725841c |
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-server-Xvesa"
4 VERSION="1.5.2"
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"
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 }