You are not logged in.

#1 2004-07-02 12:11:01

rensel
Member
From: Milan, Italy, Europe, Earth, S
Registered: 2004-06-20
Posts: 93
Website

[x11] xserver-cvs

I saw that noone has made a freedesktop xserver package yet, so I did it. Tell me if I made any mistakes.

PKGBUILD

# Contributor: Rensel <rensel@email.it>

pkgname=xserver
pkgver=cvs
pkgrel=1
pkgdesc="The freedesktop.org XServer"
url="http://xserver.freedesktop.org/"
license="GPL"
depends=('pkgconfig' 'cvs')
backup=()
source=()
md5sums=()
install=xserver.install

build() {
    export PKG_CONFIG_PATH="$startdir/pkg/opt/fdo/lib/pkgconfig:$PKG_CONFIG_PATH"
      cd $startdir/src/    
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xproto
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xdmcp
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co XExtensions
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co xtrans
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xau
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co X11
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xext
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Randr
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Render
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xrender
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xrandr
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co FixesExt
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co DamageExt
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xfont
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co ResourceExt
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co CompositeExt
    cvs -d :pserver:anoncvs@pdx.freedesktop.org:/cvs/xserver co xserver
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xfixes
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xcomposite
    cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xdamage
    cvs -d :pserver:anoncvs@pdx.freedesktop.org:/cvs/xapps co xcompmgr
      cd Xproto
    mv XOrgFoundation.man XOrgFoundation.7
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../Xdmcp
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../XExtensions
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../xtrans
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../Xau
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../X11
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../Xext
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../Randr
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../Render
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../Xrender
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../Xrandr
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../FixesExt
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../DamageExt
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../Xfont
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../ResourceExt
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../CompositeExt
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../xserver
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo --enable-composite
    make || return 1
    install -d $startdir/pkg/opt/fdo/bin
    make install
    cd ../Xfixes
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../Xcomposite
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../Xdamage
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
    cd ../xcompmgr
    ./autogen.sh --prefix=$startdir/pkg/opt/fdo 
    make || return 1
    make install
}

xserver.install

post_install() {
  if ! [ `grep '/opt/fdo/lib' etc/ld.so.conf` ]; then
    echo "/opt/fdo/lib" >>etc/ld.so.conf
    sbin/ldconfig -r .
  fi
}

post_upgrade() {
  /bin/true
}

pre_remove() {
  cat etc/ld.so.conf | grep -v '/opt/fdo/lib' >/tmp/.pacfdo
  mv /tmp/.pacfdo etc/ld.so.conf
  chmod 644 etc/ld.so.conf
  sbin/ldconfig -r .
}

post_remove() {
  /bin/true
}

op=$1
shift
$op $*

If it is OK I will upload these files and the compiled package to incoming


Arch GNU/Linux 0.7 Trusted User
"If I were more modest, I would be perfect"

Offline

#2 2004-07-02 15:31:18

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,377
Website

Re: [x11] xserver-cvs

nice work, it's cool pkg!

... but please do not upload the pkg itself to incoming - it makes no sense, as cvs is a living thing and i recommend all people who want to try this pkg to make it themselves - xserver is a huge pkg and it would cost a lot of bandwidth for nothing

you can upload the PKGBUILD to incoming if you want


The impossible missions are the only ones which succeed.

Offline

#3 2004-07-02 16:58:00

rensel
Member
From: Milan, Italy, Europe, Earth, S
Registered: 2004-06-20
Posts: 93
Website

Re: [x11] xserver-cvs

You're right, unfortunately I was already uploading it and now there is an uncomplete archive in incoming... please remove it  sad


Arch GNU/Linux 0.7 Trusted User
"If I were more modest, I would be perfect"

Offline

#4 2004-07-03 18:16:59

Net@Worm
Member
From: Moscow, Russia
Registered: 2004-05-02
Posts: 214

Re: [x11] xserver-cvs

how to use xserver? I install it but i dont know how to use it  :oops:
PS: I mean i dont know how to setup transparent menus and windows

Offline

#5 2004-07-04 20:09:17

dpb
Member
From: Cyperspace?
Registered: 2004-04-11
Posts: 231

Re: [x11] xserver-cvs

Doesn't it conflict with x.org/xfree at all?

Offline

#6 2004-07-04 20:51:09

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 708
Website

Re: [x11] xserver-cvs

dpb wrote:

Doesn't it conflict with x.org/xfree at all?

nope.  Everything is installed to /opt/fdo, rather then /usr/X11R6.  That's good, because I hate typing capital letters.


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#7 2004-07-05 06:01:53

dpb
Member
From: Cyperspace?
Registered: 2004-04-11
Posts: 231

Re: [x11] xserver-cvs

Ah. Maybe I'll try it sometime...

Offline

#8 2004-07-21 17:49:31

Bjørn
Member
From: The Netherlands
Registered: 2004-03-18
Posts: 139
Website

Re: [x11] xserver-cvs

It didn't compile here, I got the following error:

checking for randr render fixesext damageext xextensions xfont xproto xtrans xau compositeext xkbfile resourceext xdmcp... Package xkbfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `xkbfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xkbfile' found

Would this be a package error or something wrong in their CVS? Or is it my fault?


http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.

Offline

#9 2004-07-22 16:59:32

wickedlester
Member
Registered: 2004-07-22
Posts: 137

Re: [x11] xserver-cvs

I get the same error.

Offline

#10 2004-07-23 07:15:44

wickedlester
Member
Registered: 2004-07-22
Posts: 137

Re: [x11] xserver-cvs

I added xkbfile to your pkgbuild and it worked. here is the modified pkgbuild
PKGBUILD

# Contributor: Rensel <rensel@email.it>

pkgname=xserver
pkgver=cvs
pkgrel=1
pkgdesc="The freedesktop.org XServer"
url="http://xserver.freedesktop.org/"
license="GPL"
depends=('pkgconfig' 'cvs')
backup=()
source=()
md5sums=()
install=xserver.install

build() {
   export PKG_CONFIG_PATH="$startdir/pkg/opt/fdo/lib/pkgconfig:$PKG_CONFIG_PATH"
     cd $startdir/src/   
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xproto
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xdmcp
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co XExtensions
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co xtrans
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xau
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co X11
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xext
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Randr
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Render
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xrender
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xrandr
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co FixesExt
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co DamageExt
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xfont
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co ResourceExt
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co CompositeExt
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co xkbfile
   cvs -d :pserver:anoncvs@pdx.freedesktop.org:/cvs/xserver co xserver
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xfixes
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xcomposite
   cvs -d :pserver:anoncvs@freedesktop.org:/cvs/xlibs co Xdamage
   cvs -d :pserver:anoncvs@pdx.freedesktop.org:/cvs/xapps co xcompmgr
     cd Xproto
   mv XOrgFoundation.man XOrgFoundation.7
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../Xdmcp
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../XExtensions
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../xtrans
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../Xau
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../X11
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../Xext
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../Randr
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../Render
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../Xrender
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../Xrandr
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../FixesExt
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../DamageExt
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../Xfont
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../ResourceExt
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../CompositeExt
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../xkbfile
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../xserver
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo --enable-composite
   make || return 1
   install -d $startdir/pkg/opt/fdo/bin
   make install
   cd ../Xfixes
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../Xcomposite
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../Xdamage
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
   cd ../xcompmgr
   ./autogen.sh --prefix=$startdir/pkg/opt/fdo
   make || return 1
   make install
}

Offline

#11 2004-07-27 00:08:14

Bjørn
Member
From: The Netherlands
Registered: 2004-03-18
Posts: 139
Website

Re: [x11] xserver-cvs

Cool, thanks a lot, works here now too. Now pity it's still running slow and crashy on my Radeon 8500...

Btw, when I tried to start the server for the first time (I've put an exec command in ~/.xserverrc), it told me the executable needed to be suid root. Would it be a good idea if this was done in the PKGBUILD file?


http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.

Offline

#12 2004-08-01 03:39:05

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 354

Re: [x11] xserver-cvs

How to start it with transperant and shadow effect, could you post a simple start script here, thank you.

Offline

Board footer

Powered by FluxBB