summaryrefslogtreecommitdiff
path: root/sci-misc/oww
diff options
context:
space:
mode:
Diffstat (limited to 'sci-misc/oww')
-rw-r--r--sci-misc/oww/Manifest9
-rw-r--r--sci-misc/oww/files/oww-0.86.4-build.patch79
-rw-r--r--sci-misc/oww/files/oww-0.86.5-format-security.patch30
-rw-r--r--sci-misc/oww/metadata.xml11
-rw-r--r--sci-misc/oww/oww-0.86.4.ebuild37
-rw-r--r--sci-misc/oww/oww-0.86.5.ebuild38
6 files changed, 204 insertions, 0 deletions
diff --git a/sci-misc/oww/Manifest b/sci-misc/oww/Manifest
new file mode 100644
index 000000000000..7a16721850db
--- /dev/null
+++ b/sci-misc/oww/Manifest
@@ -0,0 +1,9 @@
+AUX oww-0.86.4-build.patch 1953 SHA256 b1e72f5738a11bf96c6b3a41565b893177d50231ca37e5ba7b705f2ab8d57bf2 SHA512 596ae53c671f8cd94a20c1867fbf03ba06955d660d3c642b9ef6a8c825422e29c0162e4280925135c172b56329934caabd6ff4f4dcf0f8f0238ab0eae0a4f8e9 WHIRLPOOL 1025e998c549c80f11923ae31ff51a85cd95c7629054f68fffdd758a8d48b39aa5c14eda34f6a3821ec0352838ab20095d07ec801451806405846eb10ab3b17a
+AUX oww-0.86.5-format-security.patch 869 SHA256 875d7c8c1fccd1e82d2754ddce8c4e5a6e06443cb30796b376df1c0dd6caa5e8 SHA512 fadfa26d67320519df3288d85ee335b0080760204735aa0a7c493bcbeebd1bfe676f211e9edb64173a1fc96df308caafed82bd3e8652ab35f2637a8edd489e6b WHIRLPOOL e0c344382b8305e12877b23d1fc1c6addeae78e3cd7b55a36eacbec99add25726ad59f117127fcdb55f409b65bcbfd9646c22f5bf94cd2e0eb431cf1675fe723
+DIST oww-0.86.4.tar.gz 927032 SHA256 ad8347590d29d58dfa693ee1be0bf49a08bb8d1e065dc119e7f6624303262ae0 SHA512 b97ddd164fe81848e87466992414c8382a0f681bd8f1e16fc51a43facb73f073eb6b0c1da858f4d2d1ffc09273b05b6c3b526a1ccf1d572dbbfd3bfcd0742e05 WHIRLPOOL 82f3a61f25fcfe2e30fed4550b8d647010ab2a5c7ba8083341f3fee8157968a647df0361b08bfc55c76d7c150a249b53aba4dc886621eda0c7a64b3b24516968
+DIST oww-0.86.5.tar.gz 926962 SHA256 d374cfb421b8a421acd3d049b3ec6113e25ebfdf31a973143ee05ac69a8a30d6 SHA512 cc787379790367eea02423f5213a8947de906d6ccdebb1b76e97196e0be9d9f86e77fbc402693588ae4d7db69968caa7bc9e97e8dfc9395bf420d9df51b28ba9 WHIRLPOOL 2a777fe31116a16526851e8d8e7d60d8549c2db752d771b278cd1036e50c45e2508717fbd1541ff0bcc70302d98289a956c676d7ed3faa214ed29dd6b8c7c229
+EBUILD oww-0.86.4.ebuild 692 SHA256 f362a0997eb4039da2b730cb500722f0e8f8a77d18370601daa9287a459d02a2 SHA512 68d181a634fcfe09cda4cf3a636914ffb5fd0165543ec279dfc153fa9a82ea1eb35ea268aadd107760a2973b8cdd5474fac4cae055eb7d2b0a6514508dad6900 WHIRLPOOL f0dab81b2406284b536c579f66841a05d88b0ad7efa5906628786f1632cce8c5e2e35d7cc222b97cf627db3cbf19f1ed3fbaad4f535baa3d46f0d2b8ac54aa87
+EBUILD oww-0.86.5.ebuild 742 SHA256 b938376977cb8ce6926fdc2f47c1c4d38cfc5124e1af80e5a4ce862d577a7674 SHA512 d96f9c7fea0ce26885e1920d439cabfa07d6550751038933cd152c66c14fd7c31fee5096d47ae3cf5e9f3e348765611e76d37dcdfc99671cbdf6a85ff8e29a24 WHIRLPOOL ff4a595d931a01fdd30619cb6ee8535672eb7298448b60c808a4e732607f7c0c8d280077d6da76316b027fb5ec21b2698371f7cf7545a673d97c48832affa2fe
+MISC ChangeLog 2537 SHA256 3d50e841fbfc680393a7706e1a09769bf80ec9b4fd1a03af833ba6fccb95a11a SHA512 df4a25bd2e3431a079122189e53673689c05e4a2f147c1e2dc1c80b03ef09235900d83cd8e2d4609460f78bf7704b13a59e91aaf7137d764139a74059e8dc306 WHIRLPOOL b8a4753ea17f46411aa44710be27aa0082f91ab801e665b5fa289fcac5cdd9a9fe9d9bc32599b12831d5388831059d9b7873ab466e3d85815e5667d53306266e
+MISC ChangeLog-2015 1969 SHA256 39ab55a45bc9e711c4e780aa02449fd103016c34957fb57b194122c0acbfaaa2 SHA512 969574c2057dd2f44f561c15ea0ca3d4fea93eb8a73236940272859d2523194b0e1901cf81014e9b369b0249737a8913171edb319090857d1efb6946709f27d9 WHIRLPOOL f6f3833b3556f5d03a03695ff3bf3740b5789e8e1651d78f2eeb7bc715cc91f4e39c209c821e1dbace607f6aaf69738b4007aba0c3f00323fa698c9e0c80a082
+MISC metadata.xml 336 SHA256 db3e3a338e9493f1206ca43e91f58a8bd43097e3a30d5ef094bcb0b7bbddcde1 SHA512 f65457a50fabeaf211324929431dac282d836873b8d918abe567d6a6d657555dbb89bb34d595569f6897d5ec8d5084d5689cc359c8aef9b6564f113f69194c5a WHIRLPOOL 0876be890ad23ce73f67d2cb58ff885b3151884ab913e2083209255601eef2117a6a1ca02352b0518a3590214835319653492eb448e621f0b96ece6eac18886c
diff --git a/sci-misc/oww/files/oww-0.86.4-build.patch b/sci-misc/oww/files/oww-0.86.4-build.patch
new file mode 100644
index 000000000000..19f96a0c8551
--- /dev/null
+++ b/sci-misc/oww/files/oww-0.86.4-build.patch
@@ -0,0 +1,79 @@
+ Makefile.am | 3 +--
+ configure.in | 15 ++++++++-------
+ src/Makefile.am | 2 +-
+ 3 files changed, 10 insertions(+), 10 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index f90cc9d..36495a7 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -5,10 +5,9 @@
+
+ SUBDIRS = src pixmaps po
+
+-owwdocdir = ${prefix}/doc/oww
++owwdocdir = ${docdir}
+ owwdoc_DATA = \
+ README\
+- COPYING\
+ AUTHORS\
+ ChangeLog\
+ INSTALL\
+diff --git a/configure.in b/configure.in
+index dbc694e..a9c779f 100644
+--- a/configure.in
++++ b/configure.in
+@@ -6,6 +6,8 @@ AM_INIT_AUTOMAKE
+
+ AM_CONFIG_HEADER(config.h)
+
++AC_CONFIG_MACRO_DIR([.])
++
+ AC_ISC_POSIX
+ dnl CFLAGS=""
+ AC_SUBST(CFLAGS)
+@@ -134,17 +136,16 @@ else
+ AC_MSG_WARN(interactive CLI will not be build)
+ fi
+
+-AC_ARG_ENABLE(gui, , build_gui=no, build_gui=yes)
+-AM_CONDITIONAL(DISABLEGUI, test "x$build_gui" = "xno")
++AC_ARG_ENABLE([gui],AS_HELP_STRING([--disable-gui], [Do not build gtk gui]))
+
+-if test "$build_gui" = yes ; then
++AM_CONDITIONAL([DISABLEGUI], [test "x$enable_gui" != "xyes"])
++
++AS_IF([test "x$enable_gui" != "xno"], [
+ AC_MSG_WARN(building gui)
+ PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.4.0 gdk-2.0 gdk-pixbuf-2.0 gmodule-export-2.0,,exit)
+ AC_SUBST(GTK_LIBS)
+ AC_SUBST(GTK_CFLAGS)
+-else
+- AC_MSG_WARN(skipping GTK gui)
+-fi
++])
+
+ dnl How many times do we retry T on failure?
+ AC_ARG_ENABLE(temptries,
+@@ -319,7 +320,7 @@ cat<<EOF
+ ------------------------------
+ Oww version $VERSION by Simon Melhuish (simon@melhuish.info)
+
+- build_gui = $build_gui
++ build_gui = $xgui
+ interactive = $interactive
+ seriallock = $seriallock
+ USB support = $usb_msg
+diff --git a/src/Makefile.am b/src/Makefile.am
+index e0f6746..c02aab5 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -2,7 +2,7 @@
+
+ # Needs USB_CFLAGS here else things like musbllnk compile will fail if usb.h
+ # isn't in the compilers standard include path.
+-INCLUDES = \
++AM_CPPFLAGS = \
+ $(USB_CFLAGS)\
+ $(GTK_CFLAGS)
+
diff --git a/sci-misc/oww/files/oww-0.86.5-format-security.patch b/sci-misc/oww/files/oww-0.86.5-format-security.patch
new file mode 100644
index 000000000000..190c637e1983
--- /dev/null
+++ b/sci-misc/oww/files/oww-0.86.5-format-security.patch
@@ -0,0 +1,30 @@
+ src/file.c | 2 +-
+ src/werr_linux.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/file.c b/src/file.c
+index 9726564..af2f672 100644
+--- a/src/file.c
++++ b/src/file.c
+@@ -152,7 +152,7 @@ int file_check_file(char *file_name, int create)
+
+ fp = fopen(file_name, "w") ;
+ if (!fp) return 0 ;
+- fprintf(fp, setup_format_loghead) ;
++ fprintf(fp, "%s", setup_format_loghead) ;
+ fprintf(fp, "\n") ;
+ fclose(fp) ;
+ return 1 ;
+diff --git a/src/werr_linux.c b/src/werr_linux.c
+index 50d3993..0f8834e 100644
+--- a/src/werr_linux.c
++++ b/src/werr_linux.c
+@@ -331,7 +331,7 @@ void werr(int flags, char* format, ...)
+ else
+ syslog_level = LOG_DEBUG ;
+
+- syslog(syslog_level, message) ;
++ syslog(syslog_level, "%s", message) ;
+ }
+ # endif
+ # else // i.e. ifndef NOGUI
diff --git a/sci-misc/oww/metadata.xml b/sci-misc/oww/metadata.xml
new file mode 100644
index 000000000000..6ab95b5edb74
--- /dev/null
+++ b/sci-misc/oww/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="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">oww</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-misc/oww/oww-0.86.4.ebuild b/sci-misc/oww/oww-0.86.4.ebuild
new file mode 100644
index 000000000000..37fca19f1314
--- /dev/null
+++ b/sci-misc/oww/oww-0.86.4.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="A one-wire weather station for Dallas Semiconductor"
+HOMEPAGE="http://oww.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="Artistic"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk nls usb"
+
+RDEPEND="
+ net-misc/curl
+ gtk? ( x11-libs/gtk+:2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+ )
+
+src_configure() {
+ local myeconfargs=(
+ --enable-interactive
+ $(use_enable nls)
+ $(use_enable gtk gui)
+ $(use_with usb)
+ )
+ autotools-utils_src_configure
+}
diff --git a/sci-misc/oww/oww-0.86.5.ebuild b/sci-misc/oww/oww-0.86.5.ebuild
new file mode 100644
index 000000000000..83eafaaa6ac2
--- /dev/null
+++ b/sci-misc/oww/oww-0.86.5.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="A one-wire weather station for Dallas Semiconductor"
+HOMEPAGE="http://oww.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="Artistic"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk nls usb"
+
+RDEPEND="
+ net-misc/curl
+ gtk? ( x11-libs/gtk+:2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.86.4-build.patch
+ "${FILESDIR}"/${P}-format-security.patch
+ )
+
+src_configure() {
+ local myeconfargs=(
+ --enable-interactive
+ $(use_enable nls)
+ $(use_enable gtk gui)
+ $(use_with usb)
+ )
+ autotools-utils_src_configure
+}