mirror of
https://github.com/KeithDHedger/LFSPkgBuilds.git
synced 2026-01-12 15:43:15 +00:00
removed duplicate gpm
This commit is contained in:
@ -1,63 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
. /usr/share/LFSPkg/LFSFunctions
|
||||
|
||||
PKGNAME="gpm"
|
||||
TARNAME="$PKGNAME"
|
||||
VERSION="1.20.7"
|
||||
BUILD=${BUILD:-1}
|
||||
SECTION="DESKTOP"
|
||||
SUFFIX="LFSPKG"
|
||||
TARBALL="${TARNAME}-${VERSION}.tar.bz2"
|
||||
PKG="${OUTPUT}/${PKGNAME}"
|
||||
DOWHAT=${1:-"build"}
|
||||
CWD=$(pwd)
|
||||
|
||||
scriptLog "${PKGNAME}-${VERSION}"
|
||||
gettar "http://www.nico.schottelius.org/software/gpm/archives/${TARBALL}" $SECTION
|
||||
gettar "http://www.linuxfromscratch.org/patches/blfs/${LFSVERSION}/${TARNAME}-${VERSION}-glibc_2.26-1.patch" $SECTION
|
||||
rm -rf "$PKG" || true
|
||||
mkdir -p "$PKG"
|
||||
|
||||
pushd $COMPILEAT 2>/dev/null||true
|
||||
extractarchive "${SOURCEARCHIVES}/${SECTION}/${TARBALL}"
|
||||
pushd "${TARNAME}-${VERSION}"
|
||||
sed -i -e 's:<gpm.h>:"headers/gpm.h":' src/prog/{display-buttons,display-coords,get-versions}.c
|
||||
patch -Np1 -i ${SOURCEARCHIVES}/${SECTION}/${TARNAME}-${VERSION}-glibc_2.26-1.patch
|
||||
./autogen.sh
|
||||
CFLAGS="$LFSFLAGS" CXXFLAGS="$LFSFLAGS" ./configure --prefix=/usr --sysconfdir=/etc
|
||||
make $MAKEFLAGS||make|| exit 100
|
||||
make install DESTDIR=$PKG || exit 100
|
||||
mkdir -vp $PKG/usr/share/info $PKG/etc $PKG/usr/share/doc/${PKGNAME}-${VERSION} $PKG/usr/share/doc/${PKGNAME}-${VERSION}/support $PKG/etc/sysconfig
|
||||
install-info --dir-file=/usr/share/info/dir $PKG/usr/share/info/gpm.info
|
||||
ln -v -sfn libgpm.so.2.1.0 $PKG/usr/lib/libgpm.so
|
||||
install -v -m644 conf/gpm-root.conf $PKG/etc
|
||||
install -v -m755 -d $PKG/usr/share/doc/${PKGNAME}-${VERSION}/support
|
||||
install -v -m644 doc/support/* $PKG/usr/share/doc/${PKGNAME}-${VERSION}/support
|
||||
install -v -m644 doc/{FAQ,HACK_GPM,README*} $PKG/usr/share/doc/${PKGNAME}-${VERSION}
|
||||
popd
|
||||
|
||||
checketc $PKG
|
||||
packageclean "$PKG" "$CWD" "$CWD"
|
||||
|
||||
pushd "$PKG"
|
||||
/usr/bin/lfspkg -n "$PKGNAME" -p "$VERSION" -d $SECTION -b $BUILD -s $SUFFIX -m
|
||||
popd
|
||||
|
||||
case $DOWHAT in
|
||||
up*)
|
||||
lfspkg "^${PKGNAME}-[0-9][0-9]*" "${OUTPUT}/${SECTION}/${PKGNAME}-${VERSION}-${BUILD}_${SECTION}_${SUFFIX}.tar.gz" -u
|
||||
;;
|
||||
"install")
|
||||
lfspkg "${OUTPUT}/${SECTION}/${PKGNAME}-${VERSION}-${BUILD}_${SECTION}_${SUFFIX}.tar.gz" -i
|
||||
;;
|
||||
"build")
|
||||
echo "Just built"
|
||||
;;
|
||||
*)
|
||||
echo "*** Unknown command ***"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
rm -r "$PKG" "${TARNAME}-${VERSION}"
|
||||
popd 2>/dev/null||true
|
||||
@ -1,3 +0,0 @@
|
||||
The GPM (General Purpose Mouse daemon) package contains a mouse server for the console and xterm.
|
||||
It not only provides cut and paste support generally, but its library component is used by various software such as Links to provide mouse support to the application.
|
||||
It is useful on desktops, especially if following (Beyond) Linux From Scratch instructions; it's often much easier (and less error prone) to cut and paste between two console windows than to type everything by hand!
|
||||
@ -1,13 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
#©keithhedger Fri 13 Feb 11:19:57 GMT 2015 kdhedger68713@gmail.com
|
||||
|
||||
cat > /etc/sysconfig/mouse << "EOF"
|
||||
# Begin /etc/sysconfig/mouse
|
||||
|
||||
MDEVICE="/dev/input/mice"
|
||||
PROTOCOL="ps2"
|
||||
GPMOPTS=""
|
||||
|
||||
# End /etc/sysconfig/mouse
|
||||
EOF
|
||||
Reference in New Issue
Block a user