# gpm/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The status of the "official" version of "gpm" was last checked in 2007. At the time, it appeared that "gpm" had been largely abandoned for about five years. The latest official release (1.20.1) dated back to 2002. Based on various Web pages, "gpm" development hadn't stopped entirely. Recent "gpm" code was available from certain "git" repositories. How- ever, attempts to use the "git" repositories in question failed. Presently, this distro uses its own version of "gpm", which is de- scended from a "snapshot" release dated 2005. #--------------------------------------------------------------------- 2. This distro has modified the original sources to remove most build- time dependencies. #--------------------------------------------------------------------- 3. Examples of additional changes: * Added "smooth cursor movement" code obtained from the Linux From Scratch project. * If a mouse is unplugged, the "gpm" daemon now aborts (at least in some cases) to prevent lockups due to error loops. #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.12 minutes) - HP EliteBook 8560w 32GB RAM 00.00 hours (or 000.15 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.00 hours (or 000.18 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.02 hours (or 001.00 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] configure = none exepack = yes kill = killall -qw -9 gpm license = GNU General Public License, version 2 (June 1991) master = glibc mstatic = yes purge = no setpaths = libgpm shareddir = yes # Shared with "libgpm" #--------------------------------------------------------------------- [depends] libgpm:strict ncurses #--------------------------------------------------------------------- [build] BINDIR=$PKGDIR_PROD/bin LIBDIR=$PKGDIR_PROD/lib MANBASE=$PKGDIR_PROD/man mkdir -p $BINDIR $MANBASE PREFIX=$PKGDIR_PROD sh ./build-gpm.sh mv disable-paste gpm gpm-root hltest mev mouse-test $BINDIR/ for x in 1 7 8 do MANDIR=$MANBASE/man$x (mkdir -p $MANDIR && mv man/*.$x $MANDIR/) done #--------------------------------------------------------------------- [setup.boot] # This code takes advantage of Linux 2.6 features: If "udev" is enab- # led, and the special device referenced below exists, the kernel has # detected a PS2 or USB mouse. In this case, the mouse can be accessed # using the special device and the protocol "exps2" (regardless of the # actual mouse type). # If the conditions described here aren't met, this code falls back to # default settings (which are specified by the following "DEFAULT_" # variables). DEFAULT_DEVICE=/dev/ttyS0 DEFAULT_PROTOCOL=ms DEFAULT_RATE=25 SPECIAL_DEVICE=/dev/input/mice # Bluetooth-related kludge N=`udevinfo -a -p /sys/class/input/mouse0 2> /dev/null \ | grep -i "HID 0a5c" | wc -l` if [ $N \!= 0 ]; then SPECIAL_DEVICE=/nofile; fi # As we've switched to "eudev", the old "udev" test no longer works. # This code presently assumes that "udev" is active. # if [ -c $SPECIAL_DEVICE -a -d /dev/.udev/db ] if [ -c $SPECIAL_DEVICE ] then DEVICE=$SPECIAL_DEVICE PROTOCOL=exps2 RATE=50 else DEVICE=$DEFAULT_DEVICE PROTOCOL=$DEFAULT_PROTOCOL RATE=$DEFAULT_RATE fi gpm -R -m $DEVICE -t $PROTOCOL -r $RATE & #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = http://packages.debian.org/unstable/source/gpm url_home = http://linux.schottelius.org/gpm/ url_lfs = http://www.linuxfromscratch.org/blfs/view/stable/\ general/sysutils.html#gpm url_tarball = n/a # See "technotes" in "cfg" file #--------------------------------------------------------------------- [history] 180624 Extensive work 180630 "musl" support 210202 Patched to fix FTBFS with "gcc" 10