# Description: Mouse server for the console and xterm # URL: https://www.nico.schottelius.org/software/gpm/ # Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com # Depends on: name=gpm version=1.20.7 bootscriptsversion=20210110 release=1 source=(https://www.nico.schottelius.org/software/gpm/archives/$name-$version.tar.bz2 gpm-1.20.7-consolidated-1.patch http://anduin.linuxfromscratch.org/BLFS/blfs-bootscripts/blfs-bootscripts-$bootscriptsversion.tar.xz) build() { cd $name-$version patch -Np1 -i ../gpm-1.20.7-consolidated-1.patch ./autogen.sh ./configure --prefix=/usr --sysconfdir=/etc make make DESTDIR=$PKG install ln -sfv libgpm.so.2.1.0 $PKG/usr/lib/libgpm.so install -v -m644 conf/gpm-root.conf $PKG/etc # rc service cd ../blfs-bootscripts-$bootscriptsversion make DESTDIR=$PKG install-gpm mkdir -p $PKG/etc/sysconfig cat > $PKG/etc/sysconfig/mouse << "EOF" # Begin /etc/sysconfig/mouse MDEVICE="/dev/input/mice" PROTOCOL="imps2" GPMOPTS="" # End /etc/sysconfig/mouse EOF }