forked from pool/triggerhappy
Accepting request 500754 from home:michals
hotkey daemon Allows you to set volume regardless of desktop environment/X/wayland/console/whatever else (not) running. OBS-URL: https://build.opensuse.org/request/show/500754 OBS-URL: https://build.opensuse.org/package/show/hardware/triggerhappy?expand=0&rev=1
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 10 20:42:27 UTC 2017 - msuchanek@suse.com
|
||||
|
||||
- package triggerhappy
|
||||
+ fix provided systemd service to not timeout
|
||||
@@ -0,0 +1,77 @@
|
||||
#
|
||||
# spec file for package triggerhappy
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: triggerhappy
|
||||
Version: 0.5.0
|
||||
Release: 0
|
||||
Summary: Lightweight hotkey daemon
|
||||
License: GPL-3.0+
|
||||
Group: System/Base
|
||||
Url: https://github.com/wertarbyte/triggerhappy
|
||||
Source: https://github.com/wertarbyte/triggerhappy/archive/release/0.5.0.tar.gz
|
||||
Patch: 0001-Fix-systemd-service.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Triggerhappy
|
||||
- a lightweight hotkey daemon -
|
||||
|
||||
by Stefan Tomanek <stefan.tomanek+th@wertarbyte.de>
|
||||
http://github.com/wertarbyte/triggerhappy/
|
||||
|
||||
Triggerhappy is a hotkey daemon developed with small and embedded systems in
|
||||
mind, e.g. linux based routers. It attaches to the input device files and
|
||||
interprets the event data received and executes scripts configured in its
|
||||
configuration.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-release-%{version}
|
||||
%patch -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
install -D -m 644 -t %{buildroot}/usr/lib/systemd/system systemd/%{name}.service systemd/%{name}.socket
|
||||
install -D -m 644 udev/triggerhappy-udev.rules %{buildroot}/usr/lib/udev/rules.d/98-triggerhappy.rules
|
||||
mkdir -p %{buildroot}/etc/triggerhappy/triggers.d/
|
||||
|
||||
%pre
|
||||
%service_add_pre %{name}.service %{name}.socket
|
||||
|
||||
%post
|
||||
%service_add_post %{name}.service %{name}.socket
|
||||
|
||||
%postun
|
||||
%service_del_postun %{name}.service %{name}.socket
|
||||
|
||||
%preun
|
||||
%service_del_preun %{name}.service %{name}.socket
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS README COPYING triggerhappy.conf.examples
|
||||
%{_sbindir}/th*
|
||||
%{_mandir}/man1/th*
|
||||
/usr/lib/systemd/system/%{name}.*
|
||||
/usr/lib/udev/rules.d/??-%{name}.rules
|
||||
%dir /etc/triggerhappy/triggers.d/
|
||||
%dir /etc/triggerhappy
|
||||
|
||||
%changelog
|
||||
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
@@ -0,0 +1 @@
|
||||
.osc
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:af0fc196202f2d35153be401769a9ad9107b5b6387146cfa8895ae9cafad631c
|
||||
size 29841
|
||||
@@ -0,0 +1,26 @@
|
||||
From 73afa8127d226c40e93490469dd6461048425e81 Mon Sep 17 00:00:00 2001
|
||||
From: Michal Suchanek <msuchanek@suse.de>
|
||||
Date: Fri, 10 Mar 2017 21:40:15 +0100
|
||||
Subject: [PATCH] Fix systemd service.
|
||||
|
||||
With Type=notify systemd waits for something for a while and then kills
|
||||
thd. Remove that.
|
||||
---
|
||||
systemd/triggerhappy.service | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/systemd/triggerhappy.service b/systemd/triggerhappy.service
|
||||
index e00b285..385f7c1 100644
|
||||
--- a/systemd/triggerhappy.service
|
||||
+++ b/systemd/triggerhappy.service
|
||||
@@ -3,7 +3,6 @@ Description=triggerhappy global hotkey daemon
|
||||
After=local-fs.target
|
||||
|
||||
[Service]
|
||||
-Type=notify
|
||||
ExecStart=/usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
|
||||
|
||||
[Install]
|
||||
--
|
||||
2.10.2
|
||||
|
||||
Reference in New Issue
Block a user