I really only need to look at the .spec file. And to be honest I'm not that fond of .rpm files, they are a pain in the ass to unpack iirc and it's not like I'm that bored. I guess I was more bored then I thought (and I remembered having rpm2cpio around from a long forgotten past, there are probably easier ways nowadays). Not to mention that it was a good excuse for not doing my laundry
Looks like there are both sources
and binaries included, that's usually a pretty bad sign.
After extracting the rpm:
mkdir TWDrvSources
cd TWDrvSources
tar xvf ../TWDrvSources.tgz
cd TwDrvKit
make clean
make all
And that's about as far as I got before running into these errors:
make -C /lib/modules/2.6.20-15-generic/build SUBDIRS=/tmp/TWDrvSources/TwDrvKit modules
cp /tmp/TWDrvSources/TwDrvKit/common.o.save /tmp/TWDrvSources/TwDrvKit/common.o
CC [M] /tmp/TWDrvSources/TwDrvKit/TWDriver.o
In file included from include/asm/uaccess.h:9,
from /tmp/TWDrvSources/TwDrvKit/TWDriver.c:11:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arithmetic
/tmp/TWDrvSources/TwDrvKit/TWDriver.c:12:35: error: linux/devfs_fs_kernel.h: No such file or directory
/tmp/TWDrvSources/TwDrvKit/TWDriver.c: At top level:
/tmp/TWDrvSources/TwDrvKit/TWDriver.c:108: error: expected ')' before string constant
/tmp/TWDrvSources/TwDrvKit/TWDriver.c:112: error: expected ')' before string constant
/tmp/TWDrvSources/TwDrvKit/TWDriver.c:120: error: expected ')' before string constant
/tmp/TWDrvSources/TwDrvKit/TWDriver.c:124: error: expected ')' before string constant
/tmp/TWDrvSources/TwDrvKit/TWDriver.c:128: error: expected ')' before string constant
/tmp/TWDrvSources/TwDrvKit/TWDriver.c: In function 'TWDrv_enable_interrupt':
/tmp/TWDrvSources/TwDrvKit/TWDriver.c:831: warning: passing argument 2 of 'request_irq' from incompatible pointer type
/tmp/TWDrvSources/TwDrvKit/TWDriver.c: In function 'TWDrv_UsbFillUrb':
/tmp/TWDrvSources/TwDrvKit/TWDriver.c:1813: error: 'SLAB_ATOMIC' undeclared (first use in this function)
/tmp/TWDrvSources/TwDrvKit/TWDriver.c:1813: error: (Each undeclared identifier is reported only once
/tmp/TWDrvSources/TwDrvKit/TWDriver.c:1813: error: for each function it appears in.)
/tmp/TWDrvSources/TwDrvKit/TWDriver.c:1823: warning: passing argument 6 of 'usb_fill_int_urb' from incompatible pointer type
/tmp/TWDrvSources/TwDrvKit/TWDriver.c: In function 'TWDrv_UsbOnAsyncReadComplete':
/tmp/TWDrvSources/TwDrvKit/TWDriver.c:1920: error: 'SLAB_ATOMIC' undeclared (first use in this function)
make[3]: *** [/tmp/TWDrvSources/TwDrvKit/TWDriver.o] Error 1
make[2]: *** [_module_/tmp/TWDrvSources/TwDrvKit] Error 2
make[1]: *** [default] Error 2
make: *** [makeit] Error 2
Maybe I'm missing some developer package containing "linux/devfs_fs_kernel.h" (the whole devfs thing went out of style years ago), I'm not that familair with the Kubuntu environment to be honest. But the included Xfree4.0.3/TWXinput_drv.o doesn't make me very hopeful, as I doubt that'll work with the more current xorg system, then again I could be wrong about that. Got to love the simple joys of closed source drivers...
The rest of the instructions would have been (adapted from the .spec file):
install -o root -g root -m 555 TWDrv.ko /lib/modules/2.6.20-15-generic/kernel/drivers/input/touchscreen
cd ../mmtool
make && cp MultiMonitorTool ../bin
cd ../TWCalib
make && cp TwCalib ../bin
cd ..
mkdir -p /usr/X11R6/lib/modules/input
install -o root -g root -m444 Xfree4.0.3/TWXinput_drv.o /usr/X11R6/lib/modules/input
mkdir -p /etc/twscreen/TWCalib
install -o root -g root -m555 TWXinputInstall.perl /etc/twscreen
install -o root -g root -m555 install /etc/twscreen
install -o root -g root -m555 daemon/TWDrvStartup /sbin
install -o root -g root -m555 bin/TwCalib /etc/twscreen/TWCalib
install -o root -g root -m555 bin/MultiMonitorTool /etc/twscreen/TWCalib
install -o root -g root -m555 TWDrvStartup ${RPM_BUILD_ROOT}/etc/init.d
install -o root -g root -m555 lib/libMultiMonitor.so /lib
install -o root -g root -m555 lib/libTwCaliblib.so /lib
install -o root -g root -m555 lib/libTwGraphics.so /lib
Alas I'm affraid the binary part is just to old and outdated, even if we could get the source part to compile properly.