wok-stable annotate xorg-server/receipt @ rev 2302

mysql,openldap,postgresql: display init scripts status
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 24 11:01:55 2009 +0000 (2009-02-24)
parents 6a6ba65f2ad7
children e9f7584e5ff5
rev   line source
pankso@89 1 # SliTaz package receipt.
pankso@89 2
pankso@89 3 PACKAGE="xorg-server"
pankso@89 4 VERSION="1.2.0"
pankso@89 5 CATEGORY="x-window"
pankso@261 6 SHORT_DESC="Xorg core server."
pankso@89 7 MAINTAINER="pankso@slitaz.org"
pankso@445 8 DEPENDS="xorg xorg-libxkbfile xorg-xf86-input-mouse xorg-xf86-input-keyboard
pascal@1514 9 xorg-xf86-video-vesa xorg-xkeyboard-config xorg-xkbcomp"
pascal@1514 10 BUILD_DEPENDS="xorg-dev-proto xorg-libXfont-dev xorg-xtrans xorg-libxkbfile-dev
pascal@1514 11 xorg-libfontenc-dev"
pankso@89 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@89 13 WEB_SITE="http://www.x.org/"
pankso@89 14 WGET_URL="http://xorg.freedesktop.org/releases/individual/xserver/$TARBALL"
pankso@261 15 KDRIVE="
pankso@261 16 Xchips
pankso@89 17 Xvesa
pankso@89 18 Xephyr
pankso@89 19 Xi810
pankso@89 20 Xnvidia
pankso@89 21 Xepson
pankso@89 22 Xsmi
pankso@89 23 Xr128
pankso@89 24 Xvia
pankso@89 25 Xpm2
pankso@89 26 Xati
pankso@261 27 Xfake
pankso@261 28 Xneomagic
pankso@89 29 Xmach64
pankso@89 30 Xfbdev
pankso@261 31 Xmga
pankso@261 32 Xvfb
pankso@261 33 Xnest"
pankso@89 34
pankso@89 35 # Rules to configure and make the package.
pankso@89 36 compile_rules()
pankso@89 37 {
pankso@89 38 cd $src
pankso@89 39 ./configure \
pankso@89 40 --prefix=/usr \
pankso@89 41 --sysconfdir=/etc \
pankso@92 42 --mandir=/usr/share/man \
pankso@92 43 --localstatedir=/var \
pankso@92 44 --with-module-dir=/usr/lib/X11/modules \
pankso@92 45 --with-xkb-output=/var/lib/xkb \
pankso@92 46 --with-serverconfig-path=/etc/X11 \
pankso@92 47 --with-fontdir=/usr/share/fonts/X11 \
pankso@92 48 --enable-install-setuid \
pankso@92 49 --enable-kdrive \
pankso@92 50 --enable-kdrive-vesa \
pankso@92 51 --with-os-name="SliTaz GNU/Linux" \
pankso@92 52 --with-builder-addr=$MAINTAINER \
pankso@92 53 --disable-dri \
pankso@92 54 --disable-xorgcfg \
pascal@1480 55 $CONFIGURE_ARGS &&
pascal@1480 56 make &&
pankso@89 57 make DESTDIR=$PWD/_pkg install
pankso@89 58 }
pankso@89 59
pankso@89 60 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@89 61 genpkg_rules()
pankso@89 62 {
pankso@261 63 mkdir -p $fs/usr/lib $fs/var $fs/etc/X11
pankso@89 64
pankso@89 65 cp -a $_pkg/usr/lib/X11 $fs/usr/lib
pankso@99 66 cp -a $_pkg/usr/lib/xserver $fs/usr/lib
pankso@89 67 cp -a $_pkg/usr/bin $fs/usr
pankso@89 68 cp -a $_pkg/var/lib $fs/var
pankso@92 69
pankso@89 70 # Remove static libs and all krive
pankso@89 71 rm $fs/usr/lib/X11/*/*.*a
pankso@89 72 rm $fs/usr/lib/X11/*/*/*.*a
pankso@89 73 for i in $KDRIVE
pankso@89 74 do
pankso@89 75 rm $fs/usr/bin/$i
pankso@89 76 done
pankso@89 77 }
pankso@451 78
pankso@451 79 # We need /var/tmp rw to let xkbcomp builr XKB definition.
pankso@451 80 post_install()
pankso@451 81 {
pankso@451 82 local root
pankso@451 83 root=$1
pankso@451 84 chmod 1777 $root/var/tmp
pankso@456 85 # Reinstall libX11 if needed...
pascal@1137 86 if [ ! -f $1/usr/share/X11/XKeysymDB ]; then
pankso@456 87 echo "Missing file: /usr/share/X11/XKeysymDB"
pascal@1139 88 tazpkg get-install xorg-libX11 --forced --root=$1/
pankso@456 89 fi
pankso@451 90 }
pankso@457 91
pankso@457 92 # Kdrive Xvesa don't like /var/lib/xkb
pankso@457 93 post_remove()
pankso@457 94 {
pankso@457 95 rm -rf /var/lib/xkb
pankso@457 96 }