Took a closer look now: each x2goserver Makefile that puts some stuff to /usr/lib/x2go has a line
LIBDIR=$(PREFIX)/lib/x2go
You can simply override this var by calling something like this:
$ make PREFIX=/usr LIBDIR=/some/path/lib64 build
Is it that what you need? The Makefiles do provide that, but it will break x2goserver, since the include paths in the files are hardcoded. E.g. "use lib
echo -n \$(x2gobasepath)/lib/x2go
;" in x2godbadmin. I don't know perl, but the eror message I get, lets me think, that as it is done in python, there are special paths defined for site
2012/1/28 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>: packages: "Can't locate x2gologlevel.pm in @INC (@INC contains: /usr/lib/x2go /usr/lib/perl5/site_perl/5.14.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/vendor_perl/5.14.2/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.14.2 /usr/lib/perl5/5.14.2/x86_64-linux-thread-multi /usr/lib/perl5/5.14.2 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.14.1 /usr/lib/perl5/vendor_perl/5.14.1/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.14.0 /usr/lib/perl5/vendor_perl/5.14.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.2 /usr/lib/perl5/vendor_perl .) at /usr/sbin/x2godbadmin line 30."
So wouldn't it be best to have those "library" files located in a "perl site package" path? Of course I can have those files installed in /usr/lib/ as well or I can use some sed magic in the spec file, correcting those paths. But that would be a rather ugly workarround.
Oliver