summaryrefslogtreecommitdiff
path: root/x11-plugins/wmfrog
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-plugins/wmfrog
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-plugins/wmfrog')
-rw-r--r--x11-plugins/wmfrog/Manifest9
-rw-r--r--x11-plugins/wmfrog/files/01-fix-segfault-0.2.0.patch54
-rw-r--r--x11-plugins/wmfrog/files/02-buffer-overflow-0.2.0.patch60
-rw-r--r--x11-plugins/wmfrog/metadata.xml11
-rw-r--r--x11-plugins/wmfrog/wmfrog-0.2.0-r1.ebuild36
-rw-r--r--x11-plugins/wmfrog/wmfrog-0.3.1.ebuild36
6 files changed, 206 insertions, 0 deletions
diff --git a/x11-plugins/wmfrog/Manifest b/x11-plugins/wmfrog/Manifest
new file mode 100644
index 000000000000..195398d777cc
--- /dev/null
+++ b/x11-plugins/wmfrog/Manifest
@@ -0,0 +1,9 @@
+AUX 01-fix-segfault-0.2.0.patch 1350 SHA256 b7d1ca359acb17703d7c3ffafd1e32da987105c4595b507ece6c630c18cb9b2a SHA512 c01b3c78c12e58c30a5e634946ac7ec9ad285824010ba460781efca444a54caa5bf4426640b7245fd48d5ab8fd1ec519cd01ced96c2510e0f842f6f5125a2f27 WHIRLPOOL 46fdcd6f1eb47f23adf4446dbbea6bba1ba22f9e4e5d15953d6484ce52307343293641b2600cf11acce8ba2624203ba7084194fcda719d0e93a8ca317ee9e916
+AUX 02-buffer-overflow-0.2.0.patch 1794 SHA256 c785c041b2f1b20b0696d9b220ff1c586a4d3e43ce1eea52a33bc45663221768 SHA512 62a2b38bba61426810c3833a22733b3d4a7541f31b0153e3881e08b495150a819764769b55fa3f878ac6e62f603a52f0e5c074df364522347af670d979e61f26 WHIRLPOOL 208d9b0b5cb41fac542c6abad0b3593541bef9a42c3e7105af2ce76163556c8185968c078c0f58ab01eb6e30c91f2e78f98bae7f6a07cf2ee21581553a83b672
+DIST wmfrog-0.2.0.tgz 59113 SHA256 9471daf33a87ebab26a0f2477f86caa6d956f3f06771d58ce0b506049e2defb5 SHA512 e704600d2a3ce4ff64e4c5393ec4b977356ed18545b937102c2a120f6407f1b879f050a1a7f324c8ea40e2360dfb8147bf24e9910483aebb24a3f8e2692537f4 WHIRLPOOL b2bd28ad50075d6689b13760a1e334dbdba76bcfc32567bf6c20c5b5fe1e253bc1bcbe7eb6b10771e35af72f4d0114792a54a4c317fd1ff55e92446c5f88df0d
+DIST wmfrog-0.3.1.tgz 128499 SHA256 01929419c30ea50fbae28bb18ea26a53bb8a6b9b83c7d7d469bac867397616cb SHA512 35cd7da8ec0173f4799119191cd28befaed0fd5ea09c0dd2e9789ce37e9a1a4a83a9fb4562051a8da9c1449eafc8299c86914cb6f0e5bc35bd051560442af7ee WHIRLPOOL 1f0d5dc48f77a9629d11b074ebe7d3d356af5f61b7b80d667fed3200b5d25fea72d66ab2299b33aa616f6bd33ed147f4973f25aed8c56e6b1d0a0f51f34db11c
+EBUILD wmfrog-0.2.0-r1.ebuild 796 SHA256 22ac6da8453158fc2a0e933cf46b144f97a088cf72360182d8c0cff940c5f05d SHA512 441c877d59a571d638af43446e4786937453d0f92c4af5aefa4ce2c5a0c7f5a03136bfb3de752bab9d439f1554e8754a87032a2fcb6d0a37088e6f9672af8c04 WHIRLPOOL 09019b4954c296b1e45840ab10ff72f5814d33029c3596bb752a53ef4ad6c0f90a41e93e45d414f542d92554126d127d8f48d74460342ceee22b62c4f449766a
+EBUILD wmfrog-0.3.1.ebuild 742 SHA256 21b8e0d118c6c04d346b0177a9dfac1c599736eec291fc08de626249393e2bf0 SHA512 f165b79b18d50691b8e3eecd7fe7436b33a086d026c7184b1ff10c61a67a3c80b9787be60ce4590028cf8de7629980061d562241665cf9122c120b18f641e7d7 WHIRLPOOL db46d1b4e1bd428949085b224d62c1f5d1c745c4b7ba1516cc8739d2455226ab27f78a8915417a66bd043d138adf032abd2136b10394b02390f6c52476bffd7c
+MISC ChangeLog 3018 SHA256 4077d09e6b835bc25c0b305981b7ea2fbb6dc494e603598c86db979c0e4ad53a SHA512 d62a17d99d768f4a5b060cf2315198673a1ad3be3126e9b4106ad94d1a43cd3950f7194d7f34dd6a8b94cde892a903bc6de23b68a1e13c9097337f1e143b9d8c WHIRLPOOL 43d20b22d8f3e0deb94861ae102841aa7e59401558512f9439475dd8725b418e0f375e1c830a76eb30ceb109bcaac4954e77ee79d5249ba32a030bf65cc4e00a
+MISC ChangeLog-2015 1863 SHA256 10e0d90ec99dd573c5348b350b652ef95bbee097281d83f4c5aeed4c8fd124d7 SHA512 8527c2b5d5a25e7339e1a4e112eab067f7b8b1e1167e014617fe359360e1d1d73f674f75d4d1804d5b1fc47aa868d4f8464039222d83d1394aeff251f5acedfd WHIRLPOOL 19c03166bddb99fd684aee304d4e4bbc0a9e710d5d4e9d1a29965864a0301d15807e669ef47358d43ce7f94170f592a06adcce992964691537cc3eb622cd3718
+MISC metadata.xml 328 SHA256 4692b4c56aed75512509487d74f701b5504ced1cc6c40a14de51c1052b150cef SHA512 279b5bfe4731afe774f94c0588cb4939e33a8680d07fd1c0504f18f23e47dd4b11bea2237c5422896a5b204926dd6fc39237a62dc70d751891f2cd1bacfa48e7 WHIRLPOOL a0f873e369d2fdb7a3e28340d9fd422e463d515ef5abc2473e0f706205496d732e768e603e6a92bed805a9c2484630b22876e53871850f15aad5f2c1522321a9
diff --git a/x11-plugins/wmfrog/files/01-fix-segfault-0.2.0.patch b/x11-plugins/wmfrog/files/01-fix-segfault-0.2.0.patch
new file mode 100644
index 000000000000..7e88f49058ff
--- /dev/null
+++ b/x11-plugins/wmfrog/files/01-fix-segfault-0.2.0.patch
@@ -0,0 +1,54 @@
+From 7b9ead8d480eb2be07db646e9c6383f3397beaea Mon Sep 17 00:00:00 2001
+From: Jim Ramsay <lack@gentoo.org>
+Date: Thu, 6 Aug 2009 12:22:26 -0400
+Subject: [PATCH] Fixed segfault if Weather or Clouds not present
+
+Though the variables 'weatherFound' and 'cloudsFound' were being set properly by
+fscanf, their values were never actually checked.
+
+Furthermore, the strings (Weather, Clouds, tmp1 and tmp2) were not being
+initialized to NULL as the code seems to have been expecting.
+---
+ Src/wmFrog.c | 12 ++++++------
+ 1 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/Src/wmFrog.c b/Src/wmFrog.c
+index e2d82af..af4101a 100644
+--- a/Src/wmFrog.c
++++ b/Src/wmFrog.c
+@@ -68,10 +68,10 @@ int n, s, m, i, dt1, dt2, dt3 ;
+ XEvent event;
+ char command[1024], Line[512], FileName[10];
+ FILE *fp;
+- char* Weather;
+- char* Clouds;
+- char* tmp1;
+- char* tmp2;
++ char* Weather = NULL;
++ char* Clouds = NULL;
++ char* tmp1 = NULL;
++ char* tmp2 = NULL;
+ int intensity=0;
+ char* precip;
+ char* desc;
+@@ -238,7 +238,7 @@ FILE *fp;
+ keepgoing=1;
+ {
+
+- do{
++ if (weatherFound) do{
+
+
+ tmp1=mystrsep(&Weather,";");
+@@ -289,7 +289,7 @@ FILE *fp;
+ while(keepgoing);
+ }
+
+- do{
++ if (cloudsFound) do{
+ tmp1=mystrsep(&Clouds,";");
+ if(tmp1)
+ {
+--
+1.6.3.3
+
diff --git a/x11-plugins/wmfrog/files/02-buffer-overflow-0.2.0.patch b/x11-plugins/wmfrog/files/02-buffer-overflow-0.2.0.patch
new file mode 100644
index 000000000000..c4267585836c
--- /dev/null
+++ b/x11-plugins/wmfrog/files/02-buffer-overflow-0.2.0.patch
@@ -0,0 +1,60 @@
+From 5cc2198aebf090b399bd8aaea0e1c8b054bbda58 Mon Sep 17 00:00:00 2001
+From: Jim Ramsay <i.am@jimramsay.com>
+Date: Thu, 6 Aug 2009 12:51:56 -0400
+Subject: [PATCH] Remove buffer overflows
+
+Replaced all 'sprintf' calls with 'snprintf' and fixed all buffers to reasonable
+sizes.
+---
+ Src/wmFrog.c | 11 +++++------
+ 1 files changed, 5 insertions(+), 6 deletions(-)
+
+diff --git a/Src/wmFrog.c b/Src/wmFrog.c
+index af4101a..74e8b56 100644
+--- a/Src/wmFrog.c
++++ b/Src/wmFrog.c
+@@ -66,7 +66,7 @@ char* folder;
+ int main(int argc, char *argv[]) {
+ int n, s, m, i, dt1, dt2, dt3 ;
+ XEvent event;
+-char command[1024], Line[512], FileName[10];
++char command[1024], Line[512], FileName[128];
+ FILE *fp;
+ char* Weather = NULL;
+ char* Clouds = NULL;
+@@ -213,7 +213,7 @@ FILE *fp;
+
+ dt2 = 0;
+
+- sprintf(FileName, "%s/%s", folder, StationID);
++ snprintf(FileName, 128, "%s/%s", folder, StationID);
+ fprintf(stderr,"%s\n\n",FileName);
+ if ((fp = fopen(FileName, "r")) != NULL){
+ fscanf(fp, "Hour:%d", &hour);
+@@ -571,7 +571,7 @@ UpToDate = 0;
+ /*
+ * Execute Perl script to grab the Latest METAR Report
+ */
+- sprintf(command, "/usr/lib/wmfrog/weather.pl %s %s &", StationID, folder);
++ snprintf(command, 1024, "/usr/lib/wmfrog/weather.pl %s %s &", StationID, folder);
+ //printf("Retrieveing data\n");
+ system(command);
+ ForceDownload = 0;
+@@ -844,12 +844,11 @@ char *GetTempDir(char *suffix)
+ {
+ uid_t id;
+ struct passwd *userEntry;
+- char * userHome;
++ static char userHome[128];
+
+ id=getuid();
+ userEntry=getpwuid(id);
+- userHome=userEntry->pw_dir;
+- sprintf(userHome,"%s/%s",userHome,suffix);
++ snprintf(userHome, 128, "%s/%s", userEntry->pw_dir, suffix);
+ return userHome;
+ }
+
+--
+1.6.3.3
+
diff --git a/x11-plugins/wmfrog/metadata.xml b/x11-plugins/wmfrog/metadata.xml
new file mode 100644
index 000000000000..4734ce63e025
--- /dev/null
+++ b/x11-plugins/wmfrog/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">wmfrog</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/x11-plugins/wmfrog/wmfrog-0.2.0-r1.ebuild b/x11-plugins/wmfrog/wmfrog-0.2.0-r1.ebuild
new file mode 100644
index 000000000000..ad134fe8a64d
--- /dev/null
+++ b/x11-plugins/wmfrog/wmfrog-0.2.0-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils toolchain-funcs
+
+DESCRIPTION="a weather application, it shows the weather in a graphical way"
+HOMEPAGE="http://wiki.colar.net/wmfrog_dockapp"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~sparc x86"
+IUSE=""
+
+RDEPEND="x11-libs/libXext
+ x11-libs/libXpm
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ x11-proto/xextproto"
+
+S=${WORKDIR}/Src
+
+src_prepare() {
+ epatch "${FILESDIR}"/*-${PV}.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" INCDIR="" \
+ LIBDIR="" SYSTEM="${LDFLAGS}" || die "emake failed."
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc ../{CHANGES,HINTS}
+}
diff --git a/x11-plugins/wmfrog/wmfrog-0.3.1.ebuild b/x11-plugins/wmfrog/wmfrog-0.3.1.ebuild
new file mode 100644
index 000000000000..9bbe9bda51b6
--- /dev/null
+++ b/x11-plugins/wmfrog/wmfrog-0.3.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit toolchain-funcs
+
+DESCRIPTION="a weather application, it shows the weather in a graphical way"
+HOMEPAGE="http://wiki.colar.net/wmfrog_dockapp"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libXext
+ x11-libs/libXpm
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ x11-proto/xextproto"
+
+S=${WORKDIR}/Src
+
+src_prepare() {
+ emake clean || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" INCDIR="" \
+ LIBDIR="" SYSTEM="${LDFLAGS}" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc ../{CHANGES,HINTS} || die
+}