1 |
commit: 703ca218b4f1e0b9e22bf12c4cd8f41fab60508c |
2 |
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 27 21:21:38 2021 +0000 |
4 |
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 27 21:23:05 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=703ca218 |
7 |
|
8 |
app-laptop/tuxedo-control-center-bin: added openrc script |
9 |
|
10 |
Closes: https://bugs.gentoo.org/747802 |
11 |
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org> |
12 |
|
13 |
.../tuxedo-control-center-bin/files/tccd.initd | 25 ++++++++++++++++++++++ |
14 |
...d => tuxedo-control-center-bin-1.1.0-r1.ebuild} | 2 ++ |
15 |
2 files changed, 27 insertions(+) |
16 |
|
17 |
diff --git a/app-laptop/tuxedo-control-center-bin/files/tccd.initd b/app-laptop/tuxedo-control-center-bin/files/tccd.initd |
18 |
new file mode 100644 |
19 |
index 000000000000..ced84c8baa60 |
20 |
--- /dev/null |
21 |
+++ b/app-laptop/tuxedo-control-center-bin/files/tccd.initd |
22 |
@@ -0,0 +1,25 @@ |
23 |
+#!/sbin/openrc-run |
24 |
+# Copyright 2021 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+name=$RC_SVCNAME |
28 |
+description="TUXEDO Control Center Service" |
29 |
+supervisor="supervise-daemon" |
30 |
+command="/opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd" |
31 |
+command_args="--start" |
32 |
+ |
33 |
+depend() { |
34 |
+ need localmount |
35 |
+} |
36 |
+ |
37 |
+start(){ |
38 |
+ ebegin "Starting $RC_SVCNAME" |
39 |
+ start-stop-daemon -b --start /opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd -- --start |
40 |
+ eend $? |
41 |
+} |
42 |
+ |
43 |
+stop() { |
44 |
+ ebegin "Stopping $RC_SVCNAME" |
45 |
+ /opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd --stop |
46 |
+ eend $? |
47 |
+} |
48 |
|
49 |
diff --git a/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0.ebuild b/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0-r1.ebuild |
50 |
similarity index 98% |
51 |
rename from app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0.ebuild |
52 |
rename to app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0-r1.ebuild |
53 |
index 26e89d4b651e..3cc707212c10 100644 |
54 |
--- a/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0.ebuild |
55 |
+++ b/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0-r1.ebuild |
56 |
@@ -47,6 +47,8 @@ src_install() { |
57 |
|
58 |
systemd_dounit opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/dist-data/tccd.service |
59 |
systemd_dounit opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/dist-data/tccd-sleep.service |
60 |
+ |
61 |
+ doinitd "${FILES}/tccd.initd" |
62 |
} |
63 |
|
64 |
pkg_config() { |