diff options
Diffstat (limited to 'app-misc/logiops')
-rw-r--r-- | app-misc/logiops/Manifest | 6 | ||||
-rw-r--r-- | app-misc/logiops/files/logid.initd | 19 | ||||
-rw-r--r-- | app-misc/logiops/logiops-0.2.2.ebuild | 50 | ||||
-rw-r--r-- | app-misc/logiops/logiops-0.2.2_p20200108.ebuild | 53 | ||||
-rw-r--r-- | app-misc/logiops/metadata.xml | 12 |
5 files changed, 140 insertions, 0 deletions
diff --git a/app-misc/logiops/Manifest b/app-misc/logiops/Manifest new file mode 100644 index 000000000000..6985ea89ac08 --- /dev/null +++ b/app-misc/logiops/Manifest @@ -0,0 +1,6 @@ +AUX logid.initd 509 BLAKE2B 950294904989544d1dea65f516493a986cbe8556a17e66f7be0cd33f19d514b38e820c61241d32785d6f3607d6f2c6a2af4270ab60dc72dfcc5a5ffa7b91779f SHA512 bf98e11c87d9486dd3f59494eae7fda9536bc6a90166bf8fa5c4226d189a86bc83aa9192d0b8f6e962cdc7d0f76e295d50c7c345f9ae445926670ecfe3b6830b +DIST logiops-0.2.2.tar.gz 64350 BLAKE2B 84a8a0a7efd9c1cb87f78ad8bb685f75f34952a95879d93a4db6782dcc1b416a28402cd68affdea25c127013be801a819bbf91a614718ec413374c47c8282c34 SHA512 49803fe383b04a3c6cb6b1d094c73b29dd30534c8faad0ff1a0b3a35cf031c8b2751d1368d6bb2fcb1be84c83a97b70bc31a0fad1e898904b5371a210a6e88f5 +DIST logiops-0.2.2_p20200108.tar.gz 69366 BLAKE2B 3a688123c6167ec365c2f538c8f36818662bf63f3b1cd98e26bb4fd32eaa6e026b3e1b9e8dc116a6b6988d7abcd34fe7506329a9453bbd678bbf6b0ec53fd4f5 SHA512 5072f85f7c9c2505a8e3e5e089383a22c6ff659ece35f6761f77c2b3c7bd65a8ace7351cefb387a46c2d9e1a904573c96bf5ef3d11f12300b699c1df2ffae3d1 +EBUILD logiops-0.2.2.ebuild 1004 BLAKE2B 7064a464cee391ac07914db3dd30241a3d1eb3187fbee277f60d02833e61d28a38111fdd402fa74cdf2e00257e7881b327dd0cae5b18fbfc14ed0fec9ab16f85 SHA512 8c79a77731025ff61526bca9c19fd90cb32966a22def50fddfd51ff80acb68cc3f2b4acd6b32c4103495571610d3c5b2ec1432da70889d06b87b87f17ee23b79 +EBUILD logiops-0.2.2_p20200108.ebuild 1104 BLAKE2B 3952e7407a265b6ffc7b2d5e005400e6a9a81500435397ffbe240217754af0eb9250ae7b599690095300bae0765b49b6ab033922cb0fd595ba9beea98902b3e6 SHA512 1b9c68de1c2108c574adbd8847d285ae360d5c85f81d45be675d4325445635d70e1d8ca8a2e6bb3842c7ff4b5dc491d491c7d01b8bc09baa3c814fda76c70b3e +MISC metadata.xml 393 BLAKE2B aaec420ee83380a435e6e5757f404d4ac0a9d6827bd35daf57807de0b0603e88308e1ecadca6c522afeccec6bb2e73d12970f2e5df180961fd9527b54f40351c SHA512 86b4e72e338e102564be34f04bc29da0cc3b4f78b608e31596f79e74dd85e074dac1f75d90fa1da9ae4fc62dbff8a35efc23bc9d16a52f147337cef795115ba1 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/logiops-0.2.2_p20200108.ebuild b/app-misc/logiops/logiops-0.2.2_p20200108.ebuild new file mode 100644 index 000000000000..56376f8f42ba --- /dev/null +++ b/app-misc/logiops/logiops-0.2.2_p20200108.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +EGIT_COMMIT="a0687c8f18e312824ac04043c410b637ce89e371" + +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/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${EGIT_COMMIT}" + +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> |