2006-11-03 01:44:04 +01:00
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
PKG="gpm"
|
2016-02-20 23:13:22 +01:00
|
|
|
PKG_VERSION="1.20.7"
|
2006-11-03 01:44:04 +01:00
|
|
|
PKG_FILE="gpm-${PKG_VERSION}.tar.bz2"
|
2021-10-14 08:51:49 +02:00
|
|
|
URL="https://anduin.linuxfromscratch.org/BLFS/gpm/${PKG_FILE}"
|
2016-02-20 23:13:22 +01:00
|
|
|
MD5="bf84143905a6a903dbd4d4b911a2a2b8"
|
2007-02-16 16:28:30 +01:00
|
|
|
for i in PATCH{1..10}; do
|
|
|
|
unset $i
|
|
|
|
done
|
2021-10-14 08:51:49 +02:00
|
|
|
PATCH1="https://www.linuxfromscratch.org/patches/blfs/svn/gpm-1.20.7-consolidated-1.patch"
|
2006-11-03 01:44:04 +01:00
|
|
|
|
|
|
|
( cat << "xEOFx"
|
|
|
|
|
2021-10-14 08:51:49 +02:00
|
|
|
patch -Np1 -i ../gpm-1.20.7-consolidated-1.patch &&
|
|
|
|
./autogen.sh &&
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc &&
|
2016-02-20 23:13:22 +01:00
|
|
|
make
|
|
|
|
|
|
|
|
make install &&
|
|
|
|
|
|
|
|
install-info --dir-file=/usr/share/info/dir \
|
|
|
|
/usr/share/info/gpm.info &&
|
|
|
|
|
2021-10-14 08:51:49 +02:00
|
|
|
rm -fv /usr/lib/libgpm.a &&
|
2016-02-20 23:13:22 +01:00
|
|
|
ln -sfv libgpm.so.2.1.0 /usr/lib/libgpm.so &&
|
|
|
|
install -v -m644 conf/gpm-root.conf /etc &&
|
2006-11-03 01:44:04 +01:00
|
|
|
|
2021-10-14 08:51:49 +02:00
|
|
|
install -v -m755 -d /usr/share/doc/gpm-1.20.7/support &&
|
2016-02-20 23:13:22 +01:00
|
|
|
install -v -m644 doc/support/* \
|
2021-10-14 08:51:49 +02:00
|
|
|
/usr/share/doc/gpm-1.20.7/support &&
|
2016-02-20 23:13:22 +01:00
|
|
|
install -v -m644 doc/{FAQ,HACK_GPM,README*} \
|
2021-10-14 08:51:49 +02:00
|
|
|
/usr/share/doc/gpm-1.20.7
|
2006-11-03 01:44:04 +01:00
|
|
|
|
|
|
|
# The normal cmd to install the boot script for gpm
|
|
|
|
# --- PUT THIS CMD INSIDE 999-blfs_bootscripts
|
|
|
|
#make install-gpm
|
|
|
|
|
|
|
|
cat > /etc/sysconfig/mouse << "EOF"
|
|
|
|
# Begin /etc/sysconfig/mouse
|
|
|
|
|
2016-02-20 23:13:22 +01:00
|
|
|
MDEVICE="/dev/input/mice"
|
2006-11-03 01:44:04 +01:00
|
|
|
PROTOCOL="imps2"
|
|
|
|
GPMOPTS=""
|
|
|
|
|
|
|
|
# End /etc/sysconfig/mouse
|
|
|
|
EOF
|
|
|
|
|
|
|
|
xEOFx
|
|
|
|
) > tmp
|
|
|
|
|