add gpm port
This commit is contained in:
parent
6b3a02f47b
commit
3e862d123d
2 changed files with 44 additions and 0 deletions
|
@ -80,6 +80,7 @@ d:libnl
|
|||
d:less
|
||||
d:expat
|
||||
d:bzip2
|
||||
d:gpm
|
||||
d:grub
|
||||
d:openssl
|
||||
d:libxml2
|
||||
|
@ -222,6 +223,7 @@ f:13a2ca78fcc57464cf27fe0b9325a060:libnl/Pkgfile
|
|||
f:5f327fb56bd527836a6cc0029714131c:less/Pkgfile
|
||||
f:15802c92f5dd9a1a32d14d9dfb455e72:expat/Pkgfile
|
||||
f:e69456ecdad98b7fea26c764ec4ad29d:bzip2/Pkgfile
|
||||
f:738650f16572f3507048b29b83a2e32f:gpm/Pkgfile
|
||||
f:c327a88c7755c1d73534c590cad08971:grub/Pkgfile
|
||||
f:9ec23142407e5e1a978605f4636aacec:grub/grub.default
|
||||
f:e78a420a6a5c2b2296895cb6b209fe96:openssl/Pkgfile
|
||||
|
|
42
ports/core/gpm/Pkgfile
Executable file
42
ports/core/gpm/Pkgfile
Executable file
|
@ -0,0 +1,42 @@
|
|||
# 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=20191025
|
||||
release=1
|
||||
source=(https://www.nico.schottelius.org/software/gpm/archives/$name-$version.tar.bz2
|
||||
http://www.linuxfromscratch.org/patches/blfs/svn/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
|
||||
}
|
Loading…
Add table
Reference in a new issue