summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Albertson <ramereth@gentoo.org>2008-05-06 20:02:20 +0000
committerLance Albertson <ramereth@gentoo.org>2008-05-06 20:02:20 +0000
commitd28e625183717b65986ddd5f6b50ed2daba760bd (patch)
treeb810c599c5f91a80c4b615aa7af467c61a69e6fc /app-admin/cronolog
parentstable x86, security bug 220391 (diff)
downloadgentoo-2-d28e625183717b65986ddd5f6b50ed2daba760bd.tar.gz
gentoo-2-d28e625183717b65986ddd5f6b50ed2daba760bd.tar.bz2
gentoo-2-d28e625183717b65986ddd5f6b50ed2daba760bd.zip
Add a few patch fixes to app-admin/cronolog
(Portage version: 2.1.4.4)
Diffstat (limited to 'app-admin/cronolog')
-rw-r--r--app-admin/cronolog/ChangeLog19
-rw-r--r--app-admin/cronolog/cronolog-1.6.2-r3.ebuild32
-rw-r--r--app-admin/cronolog/files/1.6.2-patches/cronolog-define-strptime.patch.txt11
-rw-r--r--app-admin/cronolog/files/1.6.2-patches/cronolog-doc.patch.txt12
-rw-r--r--app-admin/cronolog/files/1.6.2-patches/cronolog-getopt-long.patch.txt24
5 files changed, 96 insertions, 2 deletions
diff --git a/app-admin/cronolog/ChangeLog b/app-admin/cronolog/ChangeLog
index b7b0a105c592..668be9f964e1 100644
--- a/app-admin/cronolog/ChangeLog
+++ b/app-admin/cronolog/ChangeLog
@@ -1,6 +1,21 @@
# ChangeLog for app-admin/cronolog
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/cronolog/ChangeLog,v 1.20 2007/01/04 12:44:12 flameeyes Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/cronolog/ChangeLog,v 1.21 2008/05/06 20:02:20 ramereth Exp $
+
+*cronolog-1.6.2-r3 (06 May 2008)
+
+ 06 May 2008; Lance Albertson <ramereth@gentoo.org>
+ +files/1.6.2-patches/cronolog-define-strptime.patch.txt,
+ +files/1.6.2-patches/cronolog-doc.patch.txt,
+ +files/1.6.2-patches/cronolog-getopt-long.patch.txt,
+ +cronolog-1.6.2-r3.ebuild:
+ Add a few patch fixes
+ * Implicit definition of strptime because of missing define #204501
+ * Segfaults if an unknown long option is used #204519
+ * Incorrect documentation for previous link long option #204521
+
+ Thanks to Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe> for reporting
+ these bugs.
04 Jan 2007; Diego Pettenò <flameeyes@gentoo.org>
cronolog-1.6.2-r2.ebuild:
diff --git a/app-admin/cronolog/cronolog-1.6.2-r3.ebuild b/app-admin/cronolog/cronolog-1.6.2-r3.ebuild
new file mode 100644
index 000000000000..83381247432d
--- /dev/null
+++ b/app-admin/cronolog/cronolog-1.6.2-r3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/cronolog/cronolog-1.6.2-r3.ebuild,v 1.1 2008/05/06 20:02:20 ramereth Exp $
+
+WANT_AUTOCONF="latest"
+WANT_AUTOMAKE="latest"
+
+inherit eutils autotools
+
+DESCRIPTION="Cronolog apache logfile rotator"
+HOMEPAGE="http://cronolog.org/"
+SRC_URI="http://cronolog.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PV}-patches/*.txt
+
+ eautoreconf
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog INSTALL NEWS README TODO
+}
diff --git a/app-admin/cronolog/files/1.6.2-patches/cronolog-define-strptime.patch.txt b/app-admin/cronolog/files/1.6.2-patches/cronolog-define-strptime.patch.txt
new file mode 100644
index 000000000000..a56112aed495
--- /dev/null
+++ b/app-admin/cronolog/files/1.6.2-patches/cronolog-define-strptime.patch.txt
@@ -0,0 +1,11 @@
+diff -urb cronolog-1.6.2/src/cronoutils.c cronolog-1.6.2-patched/src/cronoutils.c
+--- cronolog-1.6.2/src/cronoutils.c 2001-05-03 09:43:21.000000000 -0700
++++ cronolog-1.6.2/src/cronoutils.c 2008-01-05 22:08:42.000000000 -0800
+@@ -69,6 +69,8 @@
+ *
+ */
+
++#define _GNU_SOURCE
++
+ #include "cronoutils.h"
+ extern char *tzname[2];
diff --git a/app-admin/cronolog/files/1.6.2-patches/cronolog-doc.patch.txt b/app-admin/cronolog/files/1.6.2-patches/cronolog-doc.patch.txt
new file mode 100644
index 000000000000..ca3eb91e8079
--- /dev/null
+++ b/app-admin/cronolog/files/1.6.2-patches/cronolog-doc.patch.txt
@@ -0,0 +1,12 @@
+diff -ur cronolog-1.6.2/doc/cronolog.1m cronolog-1.6.2/doc/cronolog.1m
+--- cronolog-1.6.2/doc/cronolog.1m 2001-05-04 01:44:55.000000000 -0700
++++ cronolog-1.6.2/doc/cronolog.1m 2008-01-06 00:43:33.000000000 -0800
+@@ -77,7 +77,7 @@
+ to the current log file.
+ .\"
+ .IP "-P \fINAME\fP"
+-.IP "--prevlink=\fINAME\fP"
++.IP "--prev-symlink=\fINAME\fP"
+ maintain a symbolic link from
+ .I NAME
+ to the previous log file. Requires that the
diff --git a/app-admin/cronolog/files/1.6.2-patches/cronolog-getopt-long.patch.txt b/app-admin/cronolog/files/1.6.2-patches/cronolog-getopt-long.patch.txt
new file mode 100644
index 000000000000..a6ec261ee44b
--- /dev/null
+++ b/app-admin/cronolog/files/1.6.2-patches/cronolog-getopt-long.patch.txt
@@ -0,0 +1,24 @@
+diff -urp cronolog-1.6.2/src/cronolog.c cronolog-1.6.2/src/cronolog.c
+--- cronolog-1.6.2/src/cronolog.c 2001-05-03 09:42:48.000000000 -0700
++++ cronolog-1.6.2/src/cronolog.c 2008-01-05 23:54:53.000000000 -0800
+@@ -139,7 +139,8 @@ struct option long_options[] =
+ { "delay", required_argument, NULL, 'd' },
+ { "once-only", no_argument, NULL, 'o' },
+ { "help", no_argument, NULL, 'h' },
+- { "version", no_argument, NULL, 'V' }
++ { "version", no_argument, NULL, 'V' },
++ { NULL, 0, NULL, 0 }
+ };
+ #endif
+
+diff -urp cronolog-1.6.2/src/cronotest.c cronolog-1.6.2/src/cronotest.c
+--- cronolog-1.6.2/src/cronotest.c 2001-05-03 09:26:44.000000000 -0700
++++ cronolog-1.6.2/src/cronotest.c 2008-01-06 00:02:24.000000000 -0800
+@@ -112,7 +112,8 @@ struct option long_options[] =
+ { "test-subdirs", required_argument, NULL, 'D' },
+ { "help", no_argument, NULL, 'h' },
+ { "version", no_argument, NULL, 'V' },
+- { "verbose", no_argument, NULL, 'v' }
++ { "verbose", no_argument, NULL, 'v' },
++ { NULL, 0, NULL, 0 }
+ };