summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2021-02-14 20:45:56 +0100
committerConrad Kostecki <conikost@gentoo.org>2021-02-14 20:47:04 +0100
commit5b38ee8430a925452ef2364c484d9992db05fcdd (patch)
treefb32a92587e2b2f7fd7938e88e809c4967fb8893 /app-misc
parentx11-terms/xterm: Stabilize 366 arm64, #769839 (diff)
downloadgentoo-5b38ee8430a925452ef2364c484d9992db05fcdd.tar.gz
gentoo-5b38ee8430a925452ef2364c484d9992db05fcdd.tar.bz2
gentoo-5b38ee8430a925452ef2364c484d9992db05fcdd.zip
app-misc/logiops: new ebuild
An unofficial userspace driver for HID++ Logitech devices. This userspace driver provides for various Logitech mice additional functions, which won't work without this one. Closes: https://bugs.gentoo.org/747442 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/logiops/Manifest1
-rw-r--r--app-misc/logiops/files/logid.initd19
-rw-r--r--app-misc/logiops/logiops-0.2.2.ebuild50
-rw-r--r--app-misc/logiops/metadata.xml12
4 files changed, 82 insertions, 0 deletions
diff --git a/app-misc/logiops/Manifest b/app-misc/logiops/Manifest
new file mode 100644
index 000000000000..2f12ef866a8d
--- /dev/null
+++ b/app-misc/logiops/Manifest
@@ -0,0 +1 @@
+DIST logiops-0.2.2.tar.gz 64350 BLAKE2B 84a8a0a7efd9c1cb87f78ad8bb685f75f34952a95879d93a4db6782dcc1b416a28402cd68affdea25c127013be801a819bbf91a614718ec413374c47c8282c34 SHA512 49803fe383b04a3c6cb6b1d094c73b29dd30534c8faad0ff1a0b3a35cf031c8b2751d1368d6bb2fcb1be84c83a97b70bc31a0fad1e898904b5371a210a6e88f5
diff --git a/app-misc/logiops/files/logid.initd b/app-misc/logiops/files/logid.initd
new file mode 100644
index 000000000000..3c852c6e4397
--- /dev/null
+++ b/app-misc/logiops/files/logid.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+logid_config="/etc/logid.cfg"
+name="Logitech Configuration Daemon"
+pidfile="${RC_PREFIX}/run/logid.pid"
+
+command="${RC_PREFIX}/usr/bin/logid"
+command_background="true"
+command_args="-c ${logid_config}"
+
+start_pre() {
+ if [ ! -f "${logid_config}" ]; then
+ eerror "The file '${logid_config}' could not be found!"
+ eerror "Please create one before you start the daemon."
+ exit 1
+ fi
+}
diff --git a/app-misc/logiops/logiops-0.2.2.ebuild b/app-misc/logiops/logiops-0.2.2.ebuild
new file mode 100644
index 000000000000..2e63d684128d
--- /dev/null
+++ b/app-misc/logiops/logiops-0.2.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake linux-info
+
+DESCRIPTION="An unofficial userspace driver for HID++ Logitech devices"
+HOMEPAGE="https://github.com/PixlOne/logiops"
+SRC_URI="https://github.com/PixlOne/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="systemd"
+
+DEPEND="
+ dev-libs/libconfig:=
+ dev-libs/libevdev
+ virtual/libudev
+ systemd? ( sys-apps/systemd )
+"
+
+RDEPEND="${DEPEND}"
+
+BDEPEND="virtual/pkgconfig"
+
+DOCS=( "README.md" "TESTED.md" )
+
+pkg_pretend() {
+ local CHECK_CONFIG="~HID_LOGITECH ~HID_LOGITECH_HIDPP"
+
+ check_extra_config
+}
+
+src_install() {
+ default
+
+ cmake_src_install
+
+ insinto /etc
+ newins logid.example.cfg logid.cfg
+
+ newinitd "${FILESDIR}"/logid.initd logid
+}
+
+pkg_postinst() {
+ einfo "An example config file has been installed as /etc/logid.cfg."
+ einfo "See https://github.com/PixlOne/logiops/wiki/Configuration for more information."
+}
diff --git a/app-misc/logiops/metadata.xml b/app-misc/logiops/metadata.xml
new file mode 100644
index 000000000000..97fd00877606
--- /dev/null
+++ b/app-misc/logiops/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>conikost@gentoo.org</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/PixlOne/logiops/issues</bugs-to>
+ <remote-id type="github">PixlOne/logiops</remote-id>
+ </upstream>
+</pkgmetadata>