1 |
commit: 622008afcaaa99bb87dba14a12ccd02aaa925208 |
2 |
Author: José María Alonso Josa <nimiux <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 6 08:58:06 2015 +0000 |
4 |
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 6 08:58:50 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=622008af |
7 |
|
8 |
app-admin/logrotate: Drop old |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
app-admin/logrotate/Manifest | 1 - |
13 |
.../logrotate/files/logrotate-3.8.8-Werror.patch | 11 ---- |
14 |
.../files/logrotate-3.8.8-atomic-create.patch | 45 ------------- |
15 |
.../logrotate/files/logrotate-3.8.8-fbsd.patch | 57 ----------------- |
16 |
.../files/logrotate-3.8.8-ignore-hidden.patch | 14 ---- |
17 |
.../files/logrotate-3.8.8-noasprintf.patch | 55 ---------------- |
18 |
app-admin/logrotate/logrotate-3.8.8.ebuild | 74 ---------------------- |
19 |
7 files changed, 257 deletions(-) |
20 |
|
21 |
diff --git a/app-admin/logrotate/Manifest b/app-admin/logrotate/Manifest |
22 |
index d427552..25d4efc 100644 |
23 |
--- a/app-admin/logrotate/Manifest |
24 |
+++ b/app-admin/logrotate/Manifest |
25 |
@@ -1,3 +1,2 @@ |
26 |
-DIST logrotate-3.8.8.tar.gz 72014 SHA256 46a1510ef4a1f4359edd5f361112cfd1523942e85ff28e6cbb0c81bad1829d0f SHA512 2b7b5fe587b3a5cbe98b8035a541b5e272e6e4c40669f65ff6c43d1524b686eca9abc0b93bc00c8eb6da4d189f14a9b79905fcc0fadb914276d884ad7493bb4b WHIRLPOOL b145d51cdcf0214e4f4b6a97aed7b9e1375c2848efecbc16181eaa6e1105ac8892c57248c89b92eb080d6cd6b23958085f39a894df7f5dce0bea6516e2d583c4 |
27 |
DIST logrotate-3.8.9.tar.gz 77408 SHA256 700ed7ce9072a1cca324779a74797dfaefdae37ac50a817134b947c4ded1dfa7 SHA512 342533f321a1d77c0ca389fd0a393377ba73f10654aae163cbd35f8d5df25673f1aa6e44d0af42be5419d152a7dae11024d9005076bce0a3b3dad1f0e12b9c0d WHIRLPOOL 005621b5dc7f6954e505876eece76e3adf03b9b89b724e5c28b845c8af3ebb8e978d20e3a82c8a503c32bfd8758517625207e23518d6d08068e237c22fe7212d |
28 |
DIST logrotate-3.9.1.tar.gz 79061 SHA256 022769e3288c80981559a8421703c88e8438b447235e36dd3c8e97cd94c52545 SHA512 e6da7c7f067befaf2441e9c6ce77e53cf5ddb4f56cc3304c3e50873b6f20c68520f4a0e50ec466cbebcbed20bfd77bf6dfc489975a8131e9573fb19856c0fe28 WHIRLPOOL 9b3558bb03c6c95f8f386ea75ca09bfda802ae4c45b9ef8408692e3aa7a2ee57447cf15ce04d0289946b9cae2266acb5509d8151d15ac6ea0ad9113aeb32dc17 |
29 |
|
30 |
diff --git a/app-admin/logrotate/files/logrotate-3.8.8-Werror.patch b/app-admin/logrotate/files/logrotate-3.8.8-Werror.patch |
31 |
deleted file mode 100644 |
32 |
index db96529..0000000 |
33 |
--- a/app-admin/logrotate/files/logrotate-3.8.8-Werror.patch |
34 |
+++ /dev/null |
35 |
@@ -1,11 +0,0 @@ |
36 |
---- a/Makefile.am |
37 |
-+++ b/Makefile.am |
38 |
-@@ -1,7 +1,7 @@ |
39 |
- MAN = logrotate.8 |
40 |
- MAN5 = logrotate.conf.5 |
41 |
- |
42 |
--AM_CFLAGS = -Wall -Werror |
43 |
-+AM_CFLAGS = -Wall |
44 |
- sbin_PROGRAMS = logrotate |
45 |
- logrotate_SOURCES = logrotate.c log.c config.c basenames.c |
46 |
- |
47 |
|
48 |
diff --git a/app-admin/logrotate/files/logrotate-3.8.8-atomic-create.patch b/app-admin/logrotate/files/logrotate-3.8.8-atomic-create.patch |
49 |
deleted file mode 100644 |
50 |
index 2816125..0000000 |
51 |
--- a/app-admin/logrotate/files/logrotate-3.8.8-atomic-create.patch |
52 |
+++ /dev/null |
53 |
@@ -1,45 +0,0 @@ |
54 |
-diff -Nuar a/logrotate.c b/logrotate.c |
55 |
---- a/logrotate.c 2014-10-16 13:12:35.000000000 +0200 |
56 |
-+++ b/logrotate.c 2014-11-04 20:26:46.080067315 +0100 |
57 |
-@@ -359,15 +359,20 @@ |
58 |
- int createOutputFile(char *fileName, int flags, struct stat *sb, acl_type acl, int force_mode) |
59 |
- { |
60 |
- int fd; |
61 |
-- struct stat sb_create; |
62 |
-- int acl_set = 0; |
63 |
-- |
64 |
-- fd = open(fileName, (flags | O_EXCL | O_NOFOLLOW), |
65 |
-- (S_IRUSR | S_IWUSR) & sb->st_mode); |
66 |
-+ int acl_set = 0; |
67 |
-+ struct stat sb_create; |
68 |
-+ char template[PATH_MAX + 1]; |
69 |
-+ char *fname; |
70 |
-+ mode_t umask_value; |
71 |
-+ snprintf(template, PATH_MAX, "%s/logrotate_temp.XXXXXX", ourDirName(fileName)); |
72 |
-+ umask_value = umask(0000); |
73 |
-+ fname = mktemp(template); |
74 |
-+ fd = open(fname, (flags | O_EXCL | O_NOFOLLOW), (S_IRUSR | S_IWUSR) & sb->st_mode); |
75 |
-+ umask(umask_value); |
76 |
- |
77 |
- if (fd < 0) { |
78 |
-- message(MESS_ERROR, "error creating output file %s: %s\n", |
79 |
-- fileName, strerror(errno)); |
80 |
-+ message(MESS_ERROR, "error creating unique temp file: %s\n", |
81 |
-+ strerror(errno)); |
82 |
- return -1; |
83 |
- } |
84 |
- if (fchmod(fd, (S_IRUSR | S_IWUSR) & sb->st_mode)) { |
85 |
-@@ -418,6 +423,13 @@ |
86 |
- } |
87 |
- } |
88 |
- |
89 |
-+ if (rename(template, fileName)) { |
90 |
-+ message(MESS_ERROR, "error renaming temp file to %s: %s\n", |
91 |
-+ fileName, strerror(errno)); |
92 |
-+ close(fd); |
93 |
-+ return -1; |
94 |
-+ } |
95 |
-+ |
96 |
- return fd; |
97 |
- } |
98 |
- |
99 |
|
100 |
diff --git a/app-admin/logrotate/files/logrotate-3.8.8-fbsd.patch b/app-admin/logrotate/files/logrotate-3.8.8-fbsd.patch |
101 |
deleted file mode 100644 |
102 |
index ff10211..0000000 |
103 |
--- a/app-admin/logrotate/files/logrotate-3.8.8-fbsd.patch |
104 |
+++ /dev/null |
105 |
@@ -1,57 +0,0 @@ |
106 |
-diff -Nuar a/config.c b/config.c |
107 |
---- a/config.c 2014-10-16 13:12:35.000000000 +0200 |
108 |
-+++ b/config.c 2014-11-04 19:22:31.750055957 +0100 |
109 |
-@@ -1,6 +1,6 @@ |
110 |
- #include <sys/queue.h> |
111 |
- /* Alloca is defined in stdlib.h in NetBSD */ |
112 |
--#ifndef __NetBSD__ |
113 |
-+#if !defined(__NetBSD__) && !defined(__FreeBSD__) |
114 |
- #include <alloca.h> |
115 |
- #endif |
116 |
- #include <limits.h> |
117 |
-@@ -24,6 +24,10 @@ |
118 |
- #include <fnmatch.h> |
119 |
- #include <sys/mman.h> |
120 |
- |
121 |
-+#if !defined(PATH_MAX) && defined(__FreeBSD__) |
122 |
-+#include <sys/param.h> |
123 |
-+#endif |
124 |
-+ |
125 |
- #include "basenames.h" |
126 |
- #include "log.h" |
127 |
- #include "logrotate.h" |
128 |
-diff -Nuar a/logrotate.c b/logrotate.c |
129 |
---- a/logrotate.c 2014-10-16 13:12:35.000000000 +0200 |
130 |
-+++ b/logrotate.c 2014-11-04 19:25:35.440056498 +0100 |
131 |
-@@ -1,6 +1,6 @@ |
132 |
- #include <sys/queue.h> |
133 |
- /* alloca() is defined in stdlib.h in NetBSD */ |
134 |
--#ifndef __NetBSD__ |
135 |
-+#if !defined(__NetBSD__) && !defined(__FreeBSD__) |
136 |
- #include <alloca.h> |
137 |
- #endif |
138 |
- #include <limits.h> |
139 |
-@@ -25,6 +25,10 @@ |
140 |
- #include <limits.h> |
141 |
- #endif |
142 |
- |
143 |
-+#if !defined(PATH_MAX) && defined(__FreeBSD__) |
144 |
-+#include <sys/param.h> |
145 |
-+#endif |
146 |
-+ |
147 |
- #include "basenames.h" |
148 |
- #include "log.h" |
149 |
- #include "logrotate.h" |
150 |
-diff -Nuar a/Makefile b/Makefile |
151 |
---- a/Makefile 2014-10-16 13:12:35.000000000 +0200 |
152 |
-+++ b/Makefile 2014-11-04 19:26:07.850056594 +0100 |
153 |
-@@ -22,7 +22,9 @@ |
154 |
- |
155 |
- ifeq ($(WITH_ACL),yes) |
156 |
- CFLAGS += -DWITH_ACL |
157 |
-+ifneq ($(OS_NAME),FreeBSD) |
158 |
- LOADLIBES += -lacl |
159 |
-+endif |
160 |
- # See pretest |
161 |
- TEST_ACL=1 |
162 |
- else |
163 |
|
164 |
diff --git a/app-admin/logrotate/files/logrotate-3.8.8-ignore-hidden.patch b/app-admin/logrotate/files/logrotate-3.8.8-ignore-hidden.patch |
165 |
deleted file mode 100644 |
166 |
index bdd0fbd..0000000 |
167 |
--- a/app-admin/logrotate/files/logrotate-3.8.8-ignore-hidden.patch |
168 |
+++ /dev/null |
169 |
@@ -1,14 +0,0 @@ |
170 |
-diff -Nuar a/config.c b/config.c |
171 |
---- a/config.c 2014-10-16 13:12:35.000000000 +0200 |
172 |
-+++ b/config.c 2014-11-04 19:19:55.200055496 +0100 |
173 |
-@@ -255,7 +255,9 @@ |
174 |
- char *pattern; |
175 |
- |
176 |
- /* Check if fname is '.' or '..'; if so, return false */ |
177 |
-- if (fname[0] == '.' && (!fname[1] || (fname[1] == '.' && !fname[2]))) |
178 |
-+ /* Don't include 'hidden' files either; this breaks Gentoo |
179 |
-+ portage config file management http://bugs.gentoo.org/87683 */ |
180 |
-+ if (fname[0] == '.') |
181 |
- return 0; |
182 |
- |
183 |
- /* Check if fname is ending in a taboo-extension; if so, return false */ |
184 |
|
185 |
diff --git a/app-admin/logrotate/files/logrotate-3.8.8-noasprintf.patch b/app-admin/logrotate/files/logrotate-3.8.8-noasprintf.patch |
186 |
deleted file mode 100644 |
187 |
index 31ad707..0000000 |
188 |
--- a/app-admin/logrotate/files/logrotate-3.8.8-noasprintf.patch |
189 |
+++ /dev/null |
190 |
@@ -1,55 +0,0 @@ |
191 |
-diff -Nuar a/config.c b/config.c |
192 |
---- a/config.c 2014-10-16 13:12:35.000000000 +0200 |
193 |
-+++ b/config.c 2014-11-04 19:28:58.110057096 +0100 |
194 |
-@@ -45,39 +45,6 @@ |
195 |
- #include "asprintf.c" |
196 |
- #endif |
197 |
- |
198 |
--#if !defined(asprintf) && !defined(_FORTIFY_SOURCE) |
199 |
--#include <stdarg.h> |
200 |
-- |
201 |
--int asprintf(char **string_ptr, const char *format, ...) |
202 |
--{ |
203 |
-- va_list arg; |
204 |
-- char *str; |
205 |
-- int size; |
206 |
-- int rv; |
207 |
-- |
208 |
-- va_start(arg, format); |
209 |
-- size = vsnprintf(NULL, 0, format, arg); |
210 |
-- size++; |
211 |
-- va_start(arg, format); |
212 |
-- str = malloc(size); |
213 |
-- if (str == NULL) { |
214 |
-- va_end(arg); |
215 |
-- /* |
216 |
-- * Strictly speaking, GNU asprintf doesn't do this, |
217 |
-- * but the caller isn't checking the return value. |
218 |
-- */ |
219 |
-- fprintf(stderr, "failed to allocate memory\\n"); |
220 |
-- exit(1); |
221 |
-- } |
222 |
-- rv = vsnprintf(str, size, format, arg); |
223 |
-- va_end(arg); |
224 |
-- |
225 |
-- *string_ptr = str; |
226 |
-- return (rv); |
227 |
--} |
228 |
-- |
229 |
--#endif |
230 |
-- |
231 |
- #if !defined(strndup) |
232 |
- char *strndup(const char *s, size_t n) |
233 |
- { |
234 |
-diff -Nuar a/logrotate.h b/logrotate.h |
235 |
---- a/logrotate.h 2014-10-16 13:12:35.000000000 +0200 |
236 |
-+++ b/logrotate.h 2014-11-04 19:29:15.610057147 +0100 |
237 |
-@@ -75,8 +75,5 @@ |
238 |
- extern int debug; |
239 |
- |
240 |
- int readAllConfigPaths(const char **paths); |
241 |
--#if !defined(asprintf) && !defined(_FORTIFY_SOURCE) |
242 |
--int asprintf(char **string_ptr, const char *format, ...); |
243 |
--#endif |
244 |
- |
245 |
- #endif |
246 |
|
247 |
diff --git a/app-admin/logrotate/logrotate-3.8.8.ebuild b/app-admin/logrotate/logrotate-3.8.8.ebuild |
248 |
deleted file mode 100644 |
249 |
index 1085ce9..0000000 |
250 |
--- a/app-admin/logrotate/logrotate-3.8.8.ebuild |
251 |
+++ /dev/null |
252 |
@@ -1,74 +0,0 @@ |
253 |
-# Copyright 1999-2015 Gentoo Foundation |
254 |
-# Distributed under the terms of the GNU General Public License v2 |
255 |
-# $Id$ |
256 |
- |
257 |
-EAPI=5 |
258 |
- |
259 |
-inherit autotools eutils toolchain-funcs flag-o-matic |
260 |
- |
261 |
-DESCRIPTION="Rotates, compresses, and mails system logs" |
262 |
-HOMEPAGE="https://fedorahosted.org/logrotate/" |
263 |
-SRC_URI="https://fedorahosted.org/releases/l/o/logrotate/${P}.tar.gz" |
264 |
- |
265 |
-LICENSE="GPL-2" |
266 |
-SLOT="0" |
267 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ~ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd" |
268 |
-IUSE="acl selinux" |
269 |
- |
270 |
-CDEPEND=" |
271 |
- >=dev-libs/popt-1.5 |
272 |
- selinux? ( |
273 |
- sys-libs/libselinux |
274 |
- ) |
275 |
- acl? ( virtual/acl )" |
276 |
- |
277 |
-DEPEND="${CDEPEND} |
278 |
- >=sys-apps/sed-4 |
279 |
-" |
280 |
-RDEPEND="${CDEPEND} |
281 |
- selinux? ( sec-policy/selinux-logrotate ) |
282 |
-" |
283 |
- |
284 |
-src_prepare() { |
285 |
- epatch \ |
286 |
- "${FILESDIR}"/${P}-ignore-hidden.patch \ |
287 |
- "${FILESDIR}"/${P}-fbsd.patch \ |
288 |
- "${FILESDIR}"/${P}-noasprintf.patch \ |
289 |
- "${FILESDIR}"/${P}-atomic-create.patch \ |
290 |
- "${FILESDIR}"/${P}-Werror.patch |
291 |
- eautoreconf |
292 |
-} |
293 |
- |
294 |
-src_compile() { |
295 |
- local myconf |
296 |
- myconf="CC=$(tc-getCC)" |
297 |
- use selinux && myconf="${myconf} WITH_SELINUX=yes" |
298 |
- use acl && myconf="${myconf} WITH_ACL=yes" |
299 |
- emake ${myconf} RPM_OPT_FLAGS="${CFLAGS}" |
300 |
-} |
301 |
- |
302 |
-src_install() { |
303 |
- insinto /usr |
304 |
- dosbin logrotate |
305 |
- doman logrotate.8 |
306 |
- dodoc CHANGES examples/logrotate* |
307 |
- |
308 |
- exeinto /etc/cron.daily |
309 |
- newexe "${S}"/examples/logrotate.cron "${PN}" |
310 |
- |
311 |
- insinto /etc |
312 |
- doins "${FILESDIR}"/logrotate.conf |
313 |
- |
314 |
- keepdir /etc/logrotate.d |
315 |
-} |
316 |
- |
317 |
-pkg_postinst() { |
318 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
319 |
- elog "If you wish to have logrotate e-mail you updates, please" |
320 |
- elog "emerge virtual/mailx and configure logrotate in" |
321 |
- elog "/etc/logrotate.conf appropriately" |
322 |
- elog |
323 |
- elog "Additionally, /etc/logrotate.conf may need to be modified" |
324 |
- elog "for your particular needs. See man logrotate for details." |
325 |
- fi |
326 |
-} |