1 |
commit: f636e22858e846912c7a01ae9aba0a0bc9895b81 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jul 23 18:36:23 2018 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 2 20:17:56 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f636e228 |
7 |
|
8 |
x11-plugins/wmping: EAPI7, improve ebuild |
9 |
|
10 |
.../files/wmping-0.2.1-format-security.patch | 4 +-- |
11 |
x11-plugins/wmping/wmping-0.2.1-r1.ebuild | 39 ++++++++++++++++++++++ |
12 |
2 files changed, 41 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/x11-plugins/wmping/files/wmping-0.2.1-format-security.patch b/x11-plugins/wmping/files/wmping-0.2.1-format-security.patch |
15 |
index cc9976d04ad..a0ad2b3fc29 100644 |
16 |
--- a/x11-plugins/wmping/files/wmping-0.2.1-format-security.patch |
17 |
+++ b/x11-plugins/wmping/files/wmping-0.2.1-format-security.patch |
18 |
@@ -1,5 +1,5 @@ |
19 |
---- wmping.c.orig 2015-08-06 15:03:32.407526918 +0200 |
20 |
-+++ wmping.c 2015-08-06 15:03:56.907978079 +0200 |
21 |
+--- a/wmping.c 2015-08-06 15:03:32.407526918 +0200 |
22 |
++++ b/wmping.c 2015-08-06 15:03:56.907978079 +0200 |
23 |
@@ -237,7 +237,7 @@ |
24 |
if(strcmp(tokens[1],"=")) |
25 |
{ |
26 |
|
27 |
diff --git a/x11-plugins/wmping/wmping-0.2.1-r1.ebuild b/x11-plugins/wmping/wmping-0.2.1-r1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..ab211f81e7b |
30 |
--- /dev/null |
31 |
+++ b/x11-plugins/wmping/wmping-0.2.1-r1.ebuild |
32 |
@@ -0,0 +1,39 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+DESCRIPTION="a simple host status monitoring dockapp" |
39 |
+HOMEPAGE="https://sourceforge.net/projects/wmping" |
40 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="+suid" |
46 |
+ |
47 |
+RDEPEND="x11-libs/libX11 |
48 |
+ x11-libs/libXext |
49 |
+ x11-libs/libXpm" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ x11-base/xorg-proto |
52 |
+ x11-libs/libICE |
53 |
+ x11-libs/libXt" |
54 |
+ |
55 |
+PATCHES=( "${FILESDIR}"/${P}-format-security.patch ) |
56 |
+ |
57 |
+DOCS=( AUTHORS CHANGES README ) |
58 |
+ |
59 |
+src_install() { |
60 |
+ if use suid; then |
61 |
+ default |
62 |
+ else |
63 |
+ dosbin ${PN} |
64 |
+ einstalldocs |
65 |
+ fi |
66 |
+ doman ${PN}.1 |
67 |
+} |
68 |
+ |
69 |
+pkg_postinst() { |
70 |
+ use suid || ewarn "warning, ${PN} needs to be executed as root." |
71 |
+} |