1 |
commit: a7f69056bfc282b99f63cfcf3a143993ae66d7e3 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 24 13:58:28 2021 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 24 14:46:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7f69056 |
7 |
|
8 |
dev-perl/WattsUp-Daemon: EAPI bump, openrc fix, bug 670410 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/670410 |
11 |
Package-Manager: Portage-3.0.17, Repoman-3.0.2 |
12 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
13 |
|
14 |
.../WattsUp-Daemon/WattsUp-Daemon-0.4-r2.ebuild | 29 ++++++++++++++++++++++ |
15 |
.../files/WattsUp-Daemon-0.4-openrc.patch | 9 +++++++ |
16 |
2 files changed, 38 insertions(+) |
17 |
|
18 |
diff --git a/dev-perl/WattsUp-Daemon/WattsUp-Daemon-0.4-r2.ebuild b/dev-perl/WattsUp-Daemon/WattsUp-Daemon-0.4-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..542ec6f226c |
21 |
--- /dev/null |
22 |
+++ b/dev-perl/WattsUp-Daemon/WattsUp-Daemon-0.4-r2.ebuild |
23 |
@@ -0,0 +1,29 @@ |
24 |
+# Copyright 1999-2021 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+inherit perl-module |
30 |
+ |
31 |
+DESCRIPTION="Watt's Up Monitoring Daemon" |
32 |
+HOMEPAGE="https://dev.gentoo.org/~robbat2/wattsup-daemon/" |
33 |
+SRC_URI="https://dev.gentoo.org/~robbat2/wattsup-daemon/${P}.tar.gz" |
34 |
+ |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~ppc ~x86" |
37 |
+IUSE="" |
38 |
+ |
39 |
+BDEPEND="dev-perl/Device-SerialPort |
40 |
+ dev-perl/Time-TAI64 |
41 |
+ virtual/perl-Time-HiRes" |
42 |
+RDEPEND="${BDEPEND}" |
43 |
+ |
44 |
+PATCHES=( "${FILESDIR}/${P}-openrc.patch" ) |
45 |
+ |
46 |
+mydoc="AUTHORS doc/wattsup_spec_v442.txt" |
47 |
+ |
48 |
+src_install() { |
49 |
+ perl-module_src_install |
50 |
+ newinitd gentoo/wattsup-daemon.initd wattsup-daemon |
51 |
+ newconfd gentoo/wattsup-daemon.confd wattsup-daemon |
52 |
+} |
53 |
|
54 |
diff --git a/dev-perl/WattsUp-Daemon/files/WattsUp-Daemon-0.4-openrc.patch b/dev-perl/WattsUp-Daemon/files/WattsUp-Daemon-0.4-openrc.patch |
55 |
new file mode 100644 |
56 |
index 00000000000..6741775c799 |
57 |
--- /dev/null |
58 |
+++ b/dev-perl/WattsUp-Daemon/files/WattsUp-Daemon-0.4-openrc.patch |
59 |
@@ -0,0 +1,9 @@ |
60 |
+diff -ruN WattsUp-Daemon-0.4.orig/gentoo/wattsup-daemon.initd WattsUp-Daemon-0.4/gentoo/wattsup-daemon.initd |
61 |
+--- WattsUp-Daemon-0.4.orig/gentoo/wattsup-daemon.initd 2007-12-02 09:44:07.000000000 +0100 |
62 |
++++ WattsUp-Daemon-0.4/gentoo/wattsup-daemon.initd 2021-04-24 15:51:40.437424079 +0200 |
63 |
+@@ -1,4 +1,4 @@ |
64 |
+-#!/sbin/runscript |
65 |
++#!/sbin/openrc-run |
66 |
+ # Copyright 2007, Robin H. Johnson <robbat2@g.o> |
67 |
+ # You can use and redistribute WattsUpDaemon under the same terms as Perl itself. |
68 |
+ |