summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2019-05-15 15:04:01 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2019-05-15 15:04:01 -0700
commite6468552930b857e2304d49c47a49e18e47ae561 (patch)
tree627ed296f472bd4c980b08aa23ccdcdeaf714959
downloadxboxdrv-openrc-master.tar.xz
Initial commitHEADmaster
-rw-r--r--PKGBUILD28
-rw-r--r--xboxdrv.confd1
-rw-r--r--xboxdrv.initd12
3 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..b0c7420
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
+
+# # I maintain this because:
+# Artix lacks this package entirely
+
+_pkgname=xboxdrv
+pkgname=${_pkgname}-openrc
+pkgver=20190515
+pkgrel=1
+pkgdesc="OpenRC ${_pkgname} init script"
+arch=('any')
+url="https://neueland.iserlohn-fortress.net/gitea/jc_gargma"
+license=('GPL2')
+depends=('openrc' "${_pkgname}")
+backup=(
+ "etc/conf.d/${_pkgname}"
+ )
+source=(
+ "${_pkgname}.initd"
+ "${_pkgname}.confd"
+ )
+sha256sums=('5526d49f08ab1a0a64b72396493433881c88eeaa9c79e34544bbba2e124c5168'
+ 'ca6e16e126b84c0df4c5d9fa23b8eefcd47bbac70c67e5478ba72ef4d00d10b4')
+
+package() {
+ install -Dm755 ${srcdir}/${_pkgname}.initd ${pkgdir}/etc/init.d/${_pkgname}
+ install -Dm644 ${srcdir}/${_pkgname}.confd ${pkgdir}/etc/conf.d/${_pkgname}
+}
diff --git a/xboxdrv.confd b/xboxdrv.confd
new file mode 100644
index 0000000..4fd11ff
--- /dev/null
+++ b/xboxdrv.confd
@@ -0,0 +1 @@
+XBOXDRV_OPTS="--daemon --detach --pid-file /run/xboxdrv.pid -c /etc/default/xboxdrv --detach-kernel-driver --deadzone 4000 --deadzone-trigger 10%"
diff --git a/xboxdrv.initd b/xboxdrv.initd
new file mode 100644
index 0000000..5f105b4
--- /dev/null
+++ b/xboxdrv.initd
@@ -0,0 +1,12 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/bin/xboxdrv"
+command_args="${XBOXDRV_OPTS}"
+pidfile="/run/${RC_SVCNAME}.pid"
+start_stop_daemon_args="--background --make-pidfile"
+
+depend() {
+ use logger
+}