From 26f2616f24ceecbb1f71f1553af3c0956aa81805 Mon Sep 17 00:00:00 2001 From: David P Date: Sun, 17 Jul 2022 19:13:14 -0400 Subject: addpkg: nonsystemd/gpm-openrc 20210505-2 Signed-off-by: David P --- nonsystemd/gpm-openrc/PKGBUILD | 23 +++++++++++++++++++++++ nonsystemd/gpm-openrc/gpm.confd | 23 +++++++++++++++++++++++ nonsystemd/gpm-openrc/gpm.initd | 28 ++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 nonsystemd/gpm-openrc/PKGBUILD create mode 100644 nonsystemd/gpm-openrc/gpm.confd create mode 100644 nonsystemd/gpm-openrc/gpm.initd diff --git a/nonsystemd/gpm-openrc/PKGBUILD b/nonsystemd/gpm-openrc/PKGBUILD new file mode 100644 index 000000000..55f848763 --- /dev/null +++ b/nonsystemd/gpm-openrc/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: artoo + +pkgname=gpm-openrc +pkgver=20210505 +pkgrel=2 +pkgdesc="OpenRC gpm init script" +arch=('any') +url="https://gitea.artixlinux.org/artixlinux/packages-openrc" +license=('GPL2') +groups=('openrc-system') +provides=('init-gpm') +depends=('openrc' 'gpm') +conflicts=('init-gpm') +backup=('etc/conf.d/gpm') +source=("gpm.confd" + "gpm.initd") +sha256sums=('73e7483fdc4b12ab4225a4cb13bbe7da71b07b9e69b17e3a6a4c63cb5e2287c8' + 'b0a698c19a699b66375b39ad10e59a1e565c67b4c2dbf281f571d185654cf711') + +package() { + install -Dm755 "${srcdir}"/gpm.initd "${pkgdir}"/etc/init.d/gpm + install -Dm755 "${srcdir}"/gpm.confd "${pkgdir}"/etc/conf.d/gpm +} diff --git a/nonsystemd/gpm-openrc/gpm.confd b/nonsystemd/gpm-openrc/gpm.confd new file mode 100644 index 000000000..f21c25755 --- /dev/null +++ b/nonsystemd/gpm-openrc/gpm.confd @@ -0,0 +1,23 @@ +# /etc/init.d/gpm + +# Please uncomment the type of mouse you have and the appropriate MOUSEDEV entry + +MOUSE=ps2 +#MOUSE=imps2 +#MOUSEDEV=/dev/psaux +MOUSEDEV=/dev/input/mice + +# Extra settings + +#RESPONSIVENESS= +#REPEAT_TYPE=raw + +# Please uncomment this line if you want gpm to understand charsets used +# in URLs and names with ~ or : in them, etc. This is a good idea to turn on! + +#APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\"" + +# Various other options, see gpm(8) manpage for more. + +#APPEND="-g 1 -A60" +#APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\" -g 1 -A60" diff --git a/nonsystemd/gpm-openrc/gpm.initd b/nonsystemd/gpm-openrc/gpm.initd new file mode 100644 index 000000000..4d06adbd4 --- /dev/null +++ b/nonsystemd/gpm-openrc/gpm.initd @@ -0,0 +1,28 @@ +#!/usr/bin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +#NB: Config is in /etc/conf.d/gpm + +command=/usr/bin/gpm +command_args=" + -m ${MOUSEDEV} + -t ${MOUSE} + ${RESPONSIVENESS:+ -r ${RESPONSIVENESS}} + ${REPEAT_TYPE:+ -R${REPEAT_TYPE}} + ${APPEND} +" + +pidfile=/var/run/gpm.pid + +depend() { + need localmount + use hotplug logger +} + +start_pre() { + if [ -z "${MOUSEDEV}" ] || [ -z "${MOUSE}" ] ; then + eerror "You need to setup MOUSEDEV and MOUSE in /etc/conf.d/gpm first" + return 1 + fi +} -- cgit v1.2.3