added my Recipes
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Virtual console mouse server
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=@bindir@/gpm -m /dev/input/mice -t imps2
|
||||
PIDFile=/run/gpm.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
32
meta-openembedded/meta-oe/recipes-support/gpm/gpm/init
Normal file
32
meta-openembedded/meta-oe/recipes-support/gpm/gpm/init
Normal file
@@ -0,0 +1,32 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Grab the common functions
|
||||
#. /etc/init.d/functions
|
||||
|
||||
# FIXME:
|
||||
# Add a configuration file for GPM here
|
||||
|
||||
test -x /usr/sbin/gpm || exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ ! -p /dev/gpmdata ]; then
|
||||
mkfifo /dev/gpmdata
|
||||
fi
|
||||
|
||||
echo "Starting GPM:"
|
||||
start-stop-daemon -S -x /usr/sbin/gpm -- -R -m /dev/psaux -t ps2
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping GPM:"
|
||||
start-stop-daemon -K -x /usr/sbin/gpm
|
||||
;;
|
||||
restart|force-reload)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
usage /etc/init.d/gpm
|
||||
esac
|
||||
|
||||
exit 0
|
||||
39
meta-openembedded/meta-oe/recipes-support/gpm/gpm_git.bb
Normal file
39
meta-openembedded/meta-oe/recipes-support/gpm/gpm_git.bb
Normal file
@@ -0,0 +1,39 @@
|
||||
SUMMARY = "Console mouse driver"
|
||||
DESCRIPTION = "GPM (General Purpose Mouse) is a mouse server \
|
||||
for the console and xterm, with sample clients included \
|
||||
(emacs, etc)."
|
||||
HOMEPAGE = "https://www.nico.schottelius.org/software/gpm"
|
||||
SECTION = "console/utils"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"
|
||||
|
||||
PV = "1.99.7+git${SRCREV}"
|
||||
PR = "r2"
|
||||
SRCREV = "e82d1a653ca94aa4ed12441424da6ce780b1e530"
|
||||
|
||||
DEPENDS = "ncurses bison-native"
|
||||
|
||||
SRC_URI = "git://github.com/telmich/gpm;protocol=https;branch=master \
|
||||
file://init \
|
||||
file://gpm.service.in \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools-brokensep update-rc.d systemd texinfo
|
||||
|
||||
INITSCRIPT_NAME = "gpm"
|
||||
INITSCRIPT_PARAMS = "defaults"
|
||||
|
||||
do_configure:prepend() {
|
||||
(cd ${S};./autogen.sh;cd -)
|
||||
}
|
||||
|
||||
do_install:append () {
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
sed 's:@bindir@:${sbindir}:' < ${WORKDIR}/gpm.service.in >${D}${systemd_system_unitdir}/gpm.service
|
||||
install -D -m 0755 ${WORKDIR}/init ${D}${INIT_D_DIR}/gpm
|
||||
ln -s libgpm.so.2 ${D}${libdir}/libgpm.so
|
||||
}
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "gpm.service"
|
||||
Reference in New Issue
Block a user