42 lines
1.2 KiB
Text
Executable file
42 lines
1.2 KiB
Text
Executable file
# 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=20191204
|
|
release=1
|
|
source=(https://www.nico.schottelius.org/software/gpm/archives/$name-$version.tar.bz2
|
|
http://www.linuxfromscratch.org/patches/blfs/9.1/gpm-$version-glibc_2.26-1.patch
|
|
http://anduin.linuxfromscratch.org/BLFS/blfs-bootscripts/blfs-bootscripts-$bootscriptsversion.tar.xz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
sed -i -e 's:<gpm.h>:"headers/gpm.h":' src/prog/{display-buttons,display-coords,get-versions}.c
|
|
patch -Np1 -i ../gpm-1.20.7-glibc_2.26-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
|
|
}
|