1 |
commit: 6394191ba04bcb5dd9a704936ce659ab6d1bffbe |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 26 16:59:16 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 26 17:04:55 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6394191b |
7 |
|
8 |
app-misc/actkbd: use #!/sbin/openrc-run instead of #!/sbin/runscript |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573846 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
app-misc/actkbd/actkbd-0.2.8-r2.ebuild | 49 ++++++++++++++++++++++++++++++++++ |
15 |
app-misc/actkbd/files/actkbd.initd | 4 +-- |
16 |
2 files changed, 51 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/app-misc/actkbd/actkbd-0.2.8-r2.ebuild b/app-misc/actkbd/actkbd-0.2.8-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 0000000..ec6c410 |
21 |
--- /dev/null |
22 |
+++ b/app-misc/actkbd/actkbd-0.2.8-r2.ebuild |
23 |
@@ -0,0 +1,49 @@ |
24 |
+# Copyright 1999-2016 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+# $Id$ |
27 |
+ |
28 |
+EAPI=5 |
29 |
+ |
30 |
+inherit linux-info eutils toolchain-funcs |
31 |
+ |
32 |
+DESCRIPTION="A keyboard shortcut daemon" |
33 |
+HOMEPAGE="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/" |
34 |
+SRC_URI="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/${P}.tar.bz2" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="amd64 x86" |
39 |
+IUSE="" |
40 |
+ |
41 |
+DEPEND="" |
42 |
+RDEPEND="" |
43 |
+ |
44 |
+CONFIG_CHECK="~INPUT_EVDEV" |
45 |
+ |
46 |
+src_prepare() { |
47 |
+ epatch "${FILESDIR}"/${PN}-0.2.7-amd64.patch |
48 |
+} |
49 |
+ |
50 |
+src_compile() { |
51 |
+ emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" |
52 |
+} |
53 |
+ |
54 |
+src_install() { |
55 |
+ dobin actkbd |
56 |
+ dodoc AUTHORS ChangeLog FAQ README TODO |
57 |
+ docinto samples |
58 |
+ dodoc samples/actkbd.conf |
59 |
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} |
60 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
61 |
+} |
62 |
+ |
63 |
+pkg_postinst() { |
64 |
+ elog |
65 |
+ elog "System-wide configuration file is /etc/actkbd.conf." |
66 |
+ elog "Use actkbd.conf from usr/share/doc/${PF}/samples as a template." |
67 |
+ elog "You need to create the config and set right input device from" |
68 |
+ elog "/dev/input/event* in /etc/conf.d/actkbd" |
69 |
+ elog |
70 |
+ elog "To obtain keycodes for pressed combinations/keys just run:" |
71 |
+ elog " # actkbd -s -d /dev/input/event<MYDEVICENUMBER>" |
72 |
+} |
73 |
|
74 |
diff --git a/app-misc/actkbd/files/actkbd.initd b/app-misc/actkbd/files/actkbd.initd |
75 |
index e0fc046..b0a8b57 100644 |
76 |
--- a/app-misc/actkbd/files/actkbd.initd |
77 |
+++ b/app-misc/actkbd/files/actkbd.initd |
78 |
@@ -1,5 +1,5 @@ |
79 |
-#!/sbin/runscript |
80 |
-# Copyright 1999-2013 Gentoo Foundation |
81 |
+#!/sbin/openrc-run |
82 |
+# Copyright 1999-2016 Gentoo Foundation |
83 |
# Distributed under the terms of the GNU General Public License v2 |
84 |
# $Id$ |