summaryrefslogtreecommitdiff
path: root/x11-plugins/wmping
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /x11-plugins/wmping
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'x11-plugins/wmping')
-rw-r--r--x11-plugins/wmping/Manifest1
-rw-r--r--x11-plugins/wmping/files/wmping-0.2.1-format-security.patch38
-rw-r--r--x11-plugins/wmping/files/wmping-0.2.1-gcc-10.patch21
-rw-r--r--x11-plugins/wmping/metadata.xml9
-rw-r--r--x11-plugins/wmping/wmping-0.2.1-r1.ebuild49
5 files changed, 118 insertions, 0 deletions
diff --git a/x11-plugins/wmping/Manifest b/x11-plugins/wmping/Manifest
new file mode 100644
index 000000000000..f1041db65269
--- /dev/null
+++ b/x11-plugins/wmping/Manifest
@@ -0,0 +1 @@
+DIST wmping-0.2.1.tar.gz 100059 BLAKE2B ce6ec83cb93b2c7ee7412eb7c30388fe0d5adc4bb4021e1632e889886034336209cc3ffc2dd36a02a7bc73326e097272675bb48b255be7373aab3c4dedb44c13 SHA512 c13a4906810d7513fe3e1e88a77846a5b0a299180f858f755a2fe602eaab802e77062d29e767e4d5c28e45bc6ce1431418cc71ee26c3c8fc5521280999bb9351
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
new file mode 100644
index 000000000000..a0ad2b3fc290
--- /dev/null
+++ b/x11-plugins/wmping/files/wmping-0.2.1-format-security.patch
@@ -0,0 +1,38 @@
+--- a/wmping.c 2015-08-06 15:03:32.407526918 +0200
++++ b/wmping.c 2015-08-06 15:03:56.907978079 +0200
+@@ -237,7 +237,7 @@
+ if(strcmp(tokens[1],"="))
+ {
+ sprintf(str_err, "Not correct format of configuration file ( %s ): line %u", cfgfile, lineN);
+- fprintf(stderr, str_err);
++ fprintf(stderr, "%s", str_err);
+ exit(-1);
+ }
+
+@@ -288,7 +288,7 @@
+ else
+ {
+ sprintf(str_err, "Not correct format of configuration file ( %s ): line %u", cfgfile, lineN);
+- fprintf(stderr, str_err);
++ fprintf(stderr, "%s", str_err);
+ exit(-1);
+
+ }
+@@ -297,7 +297,7 @@
+ else
+ {
+ sprintf(str_err, "Error open configuration file ( %s ): %s", cfgfile, strerror(errno));
+- fprintf(stderr, str_err);
++ fprintf(stderr, "%s", str_err);
+ fprintf(stderr, "\n Create default configuration file\n");
+ createDefaultCfg(cfgfile);
+ }
+@@ -305,7 +305,7 @@
+ else
+ {
+ sprintf(str_err, "Error open configuration file ( %s ): %s", cfgfile, strerror(errno));
+- fprintf(stderr, str_err);
++ fprintf(stderr, "%s", str_err);
+ fprintf(stderr, "\n Create default configuration file\n");
+ createDefaultCfg(cfgfile);
+ }
diff --git a/x11-plugins/wmping/files/wmping-0.2.1-gcc-10.patch b/x11-plugins/wmping/files/wmping-0.2.1-gcc-10.patch
new file mode 100644
index 000000000000..3ed8b82f29e8
--- /dev/null
+++ b/x11-plugins/wmping/files/wmping-0.2.1-gcc-10.patch
@@ -0,0 +1,21 @@
+--- a/wmgeneral.c
++++ b/wmgeneral.c
+@@ -45,6 +45,7 @@ Window iconwin, win;
+ GC NormalGC;
+ XpmIcon wmgen;
+ Pixmap pixmask;
++Display *display;
+
+ /*****************/
+ /* Mouse Regions */
+--- a/wmgeneral.h
++++ b/wmgeneral.h
+@@ -21,7 +21,7 @@ typedef struct {
+ /* Global variable */
+ /*******************/
+
+-Display *display;
++extern Display *display;
+
+ /***********************/
+ /* Function Prototypes */
diff --git a/x11-plugins/wmping/metadata.xml b/x11-plugins/wmping/metadata.xml
new file mode 100644
index 000000000000..e7778ddc74c3
--- /dev/null
+++ b/x11-plugins/wmping/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>
diff --git a/x11-plugins/wmping/wmping-0.2.1-r1.ebuild b/x11-plugins/wmping/wmping-0.2.1-r1.ebuild
new file mode 100644
index 000000000000..30a9d66e3766
--- /dev/null
+++ b/x11-plugins/wmping/wmping-0.2.1-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="a simple host status monitoring dockapp"
+HOMEPAGE="https://sourceforge.net/projects/wmping"
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+suid"
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXpm"
+DEPEND="${RDEPEND}
+ x11-base/xorg-proto
+ x11-libs/libICE
+ x11-libs/libXt"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-format-security.patch
+ "${FILESDIR}"/${P}-gcc-10.patch
+ )
+
+DOCS=( AUTHORS CHANGES README )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_install() {
+ if use suid; then
+ default
+ else
+ dosbin ${PN}
+ einstalldocs
+ fi
+ doman ${PN}.1
+}
+
+pkg_postinst() {
+ use suid || ewarn "warning, ${PN} needs to be executed as root."
+}