summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2022-07-17 19:13:14 -0400
committerDavid P <megver83@parabola.nu>2022-07-17 19:13:14 -0400
commit26f2616f24ceecbb1f71f1553af3c0956aa81805 (patch)
tree7eb549bd913b82cc931836eb1f067ad6825fbcce
parentf00e839d4a4763932deb9436836e43ffd05718ea (diff)
addpkg: nonsystemd/gpm-openrc 20210505-2
Signed-off-by: David P <megver83@parabola.nu>
-rw-r--r--nonsystemd/gpm-openrc/PKGBUILD23
-rw-r--r--nonsystemd/gpm-openrc/gpm.confd23
-rw-r--r--nonsystemd/gpm-openrc/gpm.initd28
3 files changed, 74 insertions, 0 deletions
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 <artoo@artixlinux.org>
+
+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
+}