PKG="gpm" PKG_VERSION="1.20.7" PKG_FILE="gpm-${PKG_VERSION}.tar.bz2" URL="https://anduin.linuxfromscratch.org/BLFS/gpm/${PKG_FILE}" MD5="bf84143905a6a903dbd4d4b911a2a2b8" for i in PATCH{1..10}; do unset $i done PATCH1="https://www.linuxfromscratch.org/patches/blfs/svn/gpm-1.20.7-consolidated-1.patch" ( cat << "xEOFx" patch -Np1 -i ../gpm-1.20.7-consolidated-1.patch && ./autogen.sh && ./configure --prefix=/usr --sysconfdir=/etc && make make install && install-info --dir-file=/usr/share/info/dir \ /usr/share/info/gpm.info && rm -fv /usr/lib/libgpm.a && ln -sfv libgpm.so.2.1.0 /usr/lib/libgpm.so && install -v -m644 conf/gpm-root.conf /etc && install -v -m755 -d /usr/share/doc/gpm-1.20.7/support && install -v -m644 doc/support/* \ /usr/share/doc/gpm-1.20.7/support && install -v -m644 doc/{FAQ,HACK_GPM,README*} \ /usr/share/doc/gpm-1.20.7 # 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 MDEVICE="/dev/input/mice" PROTOCOL="imps2" GPMOPTS="" # End /etc/sysconfig/mouse EOF xEOFx ) > tmp