1 |
commit: 2d250269ac4b8af6f18f04c51f0c6cd40bbc461e |
2 |
Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 24 19:20:54 2017 +0000 |
4 |
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 24 19:21:17 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d250269 |
7 |
|
8 |
app-admin/logrotate: Drops old versions |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
app-admin/logrotate/Manifest | 2 - |
13 |
.../logrotate/files/logrotate-3.11.0-Werror.patch | 12 --- |
14 |
.../logrotate/files/logrotate-3.11.0-fbsd.patch | 57 ------------- |
15 |
.../files/logrotate-3.11.0-ignore-hidden.patch | 14 ---- |
16 |
.../logrotate/files/logrotate-3.11.0-lfs.patch | 11 --- |
17 |
.../files/logrotate-3.11.0-noasprintf.patch | 55 ------------ |
18 |
.../logrotate/files/logrotate-3.12.2-fbsd.patch | 36 -------- |
19 |
.../files/logrotate-3.12.2-ignore-hidden.patch | 14 ---- |
20 |
app-admin/logrotate/logrotate-3.11.0.ebuild | 88 ------------------- |
21 |
app-admin/logrotate/logrotate-3.12.2.ebuild | 83 ------------------ |
22 |
app-admin/logrotate/logrotate-3.12.3.ebuild | 98 ---------------------- |
23 |
11 files changed, 470 deletions(-) |
24 |
|
25 |
diff --git a/app-admin/logrotate/Manifest b/app-admin/logrotate/Manifest |
26 |
index f43f755b54c..ead9fe510d7 100644 |
27 |
--- a/app-admin/logrotate/Manifest |
28 |
+++ b/app-admin/logrotate/Manifest |
29 |
@@ -1,5 +1,3 @@ |
30 |
-DIST logrotate-3.11.0.tar.gz 176488 SHA256 7dcb440ed2f1937459e1e06f841c6af1e564b77b2df8009147b56c8649197910 SHA512 67ceb2e18c175a5935c81e7699af7a5e6625cef50a3f52e993d49d6c10d9c433f6c7354a8dd05cb35ab28e4393d1db198f2e46e5f6eafd3e6f040b6518438cc1 WHIRLPOOL 0a581aa5922386b84a7c40a9490364287f4e162f7180fd0e15bf191694294168b663947c7081e92755406fe4f0b3b8792b6f0c5f0e646afa5505a17995a86858 |
31 |
-DIST logrotate-3.12.2.tar.gz 202700 SHA256 754777ada2ef2f34378e8f6025cdb0c0725e212f12195d59971c42df0ae0597f SHA512 ba8c3d7c7134b9ab5968c0dc8a1c5d24d7287a3204e1c6eed080b537d6a0ed7765a47c69b3067493304994e3f4238dc0173b593e4628316bfadf3decd002da16 WHIRLPOOL a299bc2bd50ab36acdd4ab747a479c5b94e84ac92bf55b71a8a8a7d4e1b55eb909dce94c22a5fdadda946dc783376923de5f46729084e21b54811489ce97c482 |
32 |
DIST logrotate-3.12.3.tar.gz 202991 SHA256 435a3f9a534a37e11657532a090f6bf521d8696bdf9cb799a360c1750ba3aea9 SHA512 ab700a50736c7ce8a6e5b9dc2504919c6d3e6ae48a7f112f6980253df5c6bab7fc507c82a0cd961d73ed1312c930da46d96d9f27046996644e0759c84c6a1ae9 WHIRLPOOL ceadd2a748850f0035702156b9a566bf3a38749edf823062f1c867e60cac1c7b40d770d6c923eed79972ce58394b3220e16e40e97e192a6a7046cf09c5fcbf77 |
33 |
DIST logrotate-3.13.0.tar.gz 213726 SHA256 2ea33f69176dd2668fb85307210d7ed0411ff2a0429e4a0a2d881e740160e4b0 SHA512 3dec2fcdd674d3337b71fd70339cb5e3dd06b4bc24bee191356a30c2a211a290ae7747e63b90581e32a6d6d1f73cf62d5b0ee5a91aa05bad4d6ee403a35d9e76 WHIRLPOOL 952c5eda18870876ea5109d4c5ae7ac1048d3ea07c89b4a0320a48baa8170fbc200f5b4a1cc193da0f6b0e1ef8dbdcdb82f74f23d4f12e5a19bb98650c1e7d5a |
34 |
DIST logrotate-3.9.1.tar.gz 79061 SHA256 022769e3288c80981559a8421703c88e8438b447235e36dd3c8e97cd94c52545 SHA512 e6da7c7f067befaf2441e9c6ce77e53cf5ddb4f56cc3304c3e50873b6f20c68520f4a0e50ec466cbebcbed20bfd77bf6dfc489975a8131e9573fb19856c0fe28 WHIRLPOOL 9b3558bb03c6c95f8f386ea75ca09bfda802ae4c45b9ef8408692e3aa7a2ee57447cf15ce04d0289946b9cae2266acb5509d8151d15ac6ea0ad9113aeb32dc17 |
35 |
|
36 |
diff --git a/app-admin/logrotate/files/logrotate-3.11.0-Werror.patch b/app-admin/logrotate/files/logrotate-3.11.0-Werror.patch |
37 |
deleted file mode 100644 |
38 |
index 43c0ebaeb18..00000000000 |
39 |
--- a/app-admin/logrotate/files/logrotate-3.11.0-Werror.patch |
40 |
+++ /dev/null |
41 |
@@ -1,12 +0,0 @@ |
42 |
-diff -Nuar a/Makefile.am b/Makefile.am |
43 |
---- a/Makefile.am 2016-11-30 13:05:55.000000000 +0100 |
44 |
-+++ b/Makefile.am 2016-12-02 23:46:15.288908073 +0100 |
45 |
-@@ -8,7 +8,7 @@ |
46 |
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
47 |
- # GNU General Public License for more details. |
48 |
- # |
49 |
--AM_CFLAGS = -Wall -Werror |
50 |
-+AM_CFLAGS = -Wall |
51 |
- sbin_PROGRAMS = logrotate |
52 |
- logrotate_SOURCES = basenames.c config.c log.c logrotate.c \ |
53 |
- basenames.h config.h log.h logrotate.h queue.h |
54 |
|
55 |
diff --git a/app-admin/logrotate/files/logrotate-3.11.0-fbsd.patch b/app-admin/logrotate/files/logrotate-3.11.0-fbsd.patch |
56 |
deleted file mode 100644 |
57 |
index f5aa65272b8..00000000000 |
58 |
--- a/app-admin/logrotate/files/logrotate-3.11.0-fbsd.patch |
59 |
+++ /dev/null |
60 |
@@ -1,57 +0,0 @@ |
61 |
-diff -Nuar a/config.c b/config.c |
62 |
---- a/config.c 2016-12-02 23:33:36.768905615 +0100 |
63 |
-+++ b/config.c 2016-12-02 23:36:15.568906130 +0100 |
64 |
-@@ -1,6 +1,6 @@ |
65 |
- #include "queue.h" |
66 |
- /* Alloca is defined in stdlib.h in NetBSD */ |
67 |
--#ifndef __NetBSD__ |
68 |
-+#if !defined(__NetBSD__) && !defined(__FreeBSD__) |
69 |
- #include <alloca.h> |
70 |
- #endif |
71 |
- #include <limits.h> |
72 |
-@@ -24,6 +24,10 @@ |
73 |
- #include <fnmatch.h> |
74 |
- #include <sys/mman.h> |
75 |
- |
76 |
-+#if !defined(PATH_MAX) && defined(__FreeBSD__) |
77 |
-+#include <sys/param.h> |
78 |
-+#endif |
79 |
-+ |
80 |
- #include "basenames.h" |
81 |
- #include "log.h" |
82 |
- #include "logrotate.h" |
83 |
-diff -Nuar a/logrotate.c b/logrotate.c |
84 |
---- a/logrotate.c 2016-11-30 14:07:15.000000000 +0100 |
85 |
-+++ b/logrotate.c 2016-12-02 23:36:44.218906223 +0100 |
86 |
-@@ -1,6 +1,6 @@ |
87 |
- #include "queue.h" |
88 |
- /* alloca() is defined in stdlib.h in NetBSD */ |
89 |
--#ifndef __NetBSD__ |
90 |
-+#if !defined(__NetBSD__) && !defined(__FreeBSD__) |
91 |
- #include <alloca.h> |
92 |
- #endif |
93 |
- #include <limits.h> |
94 |
-@@ -26,6 +26,10 @@ |
95 |
- #include <limits.h> |
96 |
- #endif |
97 |
- |
98 |
-+#if !defined(PATH_MAX) && defined(__FreeBSD__) |
99 |
-+#include <sys/param.h> |
100 |
-+#endif |
101 |
-+ |
102 |
- #include "basenames.h" |
103 |
- #include "log.h" |
104 |
- #include "logrotate.h" |
105 |
-diff -Nuar a/Makefile.legacy b/Makefile.legacy |
106 |
---- a/Makefile.legacy 2016-11-30 13:05:55.000000000 +0100 |
107 |
-+++ b/Makefile.legacy 2016-12-02 23:37:33.938906384 +0100 |
108 |
-@@ -22,7 +22,9 @@ |
109 |
- |
110 |
- ifeq ($(WITH_ACL),yes) |
111 |
- CFLAGS += -DWITH_ACL |
112 |
-+ifneq ($(OS_NAME),FreeBSD) |
113 |
- LOADLIBES += -lacl |
114 |
-+endif |
115 |
- # See pretest |
116 |
- TEST_ACL=1 |
117 |
- else |
118 |
|
119 |
diff --git a/app-admin/logrotate/files/logrotate-3.11.0-ignore-hidden.patch b/app-admin/logrotate/files/logrotate-3.11.0-ignore-hidden.patch |
120 |
deleted file mode 100644 |
121 |
index 104f202efd2..00000000000 |
122 |
--- a/app-admin/logrotate/files/logrotate-3.11.0-ignore-hidden.patch |
123 |
+++ /dev/null |
124 |
@@ -1,14 +0,0 @@ |
125 |
-diff -Nuar a/config.c b/config.c |
126 |
---- a/config.c 2016-11-30 13:05:55.000000000 +0100 |
127 |
-+++ b/config.c 2016-12-02 23:33:36.768905615 +0100 |
128 |
-@@ -383,7 +383,9 @@ |
129 |
- int i; |
130 |
- |
131 |
- /* Check if fname is '.' or '..'; if so, return false */ |
132 |
-- if (fname[0] == '.' && (!fname[1] || (fname[1] == '.' && !fname[2]))) |
133 |
-+ /* Don't include 'hidden' files either; this breaks Gentoo |
134 |
-+ portage config file management http://bugs.gentoo.org/87683 */ |
135 |
-+ if (fname[0] == '.') |
136 |
- return 0; |
137 |
- |
138 |
- /* Check if fname is ending in a taboo-extension; if so, return false */ |
139 |
|
140 |
diff --git a/app-admin/logrotate/files/logrotate-3.11.0-lfs.patch b/app-admin/logrotate/files/logrotate-3.11.0-lfs.patch |
141 |
deleted file mode 100644 |
142 |
index 9cd5745e846..00000000000 |
143 |
--- a/app-admin/logrotate/files/logrotate-3.11.0-lfs.patch |
144 |
+++ /dev/null |
145 |
@@ -1,11 +0,0 @@ |
146 |
-diff -Nuar a/configure.ac b/configure.ac |
147 |
---- a/configure.ac 2016-12-02 14:08:40.000000000 +0100 |
148 |
-+++ b/configure.ac 2016-12-02 23:48:03.878908425 +0100 |
149 |
-@@ -12,6 +12,7 @@ |
150 |
- AC_PROG_CC_STDC |
151 |
- AC_STRUCT_ST_BLKSIZE |
152 |
- AC_STRUCT_ST_BLOCKS |
153 |
-+AC_SYS_LARGEFILE |
154 |
- |
155 |
- dnl Use 64-bit file offsets on 32-bit systems (defines C macros if necessary) |
156 |
- AC_SYS_LARGEFILE |
157 |
|
158 |
diff --git a/app-admin/logrotate/files/logrotate-3.11.0-noasprintf.patch b/app-admin/logrotate/files/logrotate-3.11.0-noasprintf.patch |
159 |
deleted file mode 100644 |
160 |
index 36733a25d03..00000000000 |
161 |
--- a/app-admin/logrotate/files/logrotate-3.11.0-noasprintf.patch |
162 |
+++ /dev/null |
163 |
@@ -1,55 +0,0 @@ |
164 |
-diff -Nuar a/config.c b/config.c |
165 |
---- a/config.c 2016-12-02 23:36:15.568906130 +0100 |
166 |
-+++ b/config.c 2016-12-02 23:41:17.438907108 +0100 |
167 |
-@@ -49,39 +49,6 @@ |
168 |
- #include "asprintf.c" |
169 |
- #endif |
170 |
- |
171 |
--#if !defined(HAVE_ASPRINTF) && !defined(_FORTIFY_SOURCE) |
172 |
--#include <stdarg.h> |
173 |
-- |
174 |
--int asprintf(char **string_ptr, const char *format, ...) |
175 |
--{ |
176 |
-- va_list arg; |
177 |
-- char *str; |
178 |
-- int size; |
179 |
-- int rv; |
180 |
-- |
181 |
-- va_start(arg, format); |
182 |
-- size = vsnprintf(NULL, 0, format, arg); |
183 |
-- size++; |
184 |
-- va_start(arg, format); |
185 |
-- str = malloc(size); |
186 |
-- if (str == NULL) { |
187 |
-- va_end(arg); |
188 |
-- /* |
189 |
-- * Strictly speaking, GNU asprintf doesn't do this, |
190 |
-- * but the caller isn't checking the return value. |
191 |
-- */ |
192 |
-- fprintf(stderr, "failed to allocate memory\\n"); |
193 |
-- exit(1); |
194 |
-- } |
195 |
-- rv = vsnprintf(str, size, format, arg); |
196 |
-- va_end(arg); |
197 |
-- |
198 |
-- *string_ptr = str; |
199 |
-- return (rv); |
200 |
--} |
201 |
-- |
202 |
--#endif |
203 |
-- |
204 |
- #if !defined(HAVE_STRNDUP) |
205 |
- char *strndup(const char *s, size_t n) |
206 |
- { |
207 |
-diff -Nuar a/logrotate.h b/logrotate.h |
208 |
---- a/logrotate.h 2016-11-30 13:05:55.000000000 +0100 |
209 |
-+++ b/logrotate.h 2016-12-02 23:40:54.518907034 +0100 |
210 |
-@@ -82,8 +82,5 @@ |
211 |
- extern int debug; |
212 |
- |
213 |
- int readAllConfigPaths(const char **paths); |
214 |
--#if !defined(asprintf) && !defined(_FORTIFY_SOURCE) |
215 |
--int asprintf(char **string_ptr, const char *format, ...); |
216 |
--#endif |
217 |
- |
218 |
- #endif |
219 |
|
220 |
diff --git a/app-admin/logrotate/files/logrotate-3.12.2-fbsd.patch b/app-admin/logrotate/files/logrotate-3.12.2-fbsd.patch |
221 |
deleted file mode 100644 |
222 |
index 67a60e3af17..00000000000 |
223 |
--- a/app-admin/logrotate/files/logrotate-3.12.2-fbsd.patch |
224 |
+++ /dev/null |
225 |
@@ -1,36 +0,0 @@ |
226 |
-diff -Nuar a/config.c b/config.c |
227 |
---- a/config.c 2017-04-22 23:46:08.201991730 +0200 |
228 |
-+++ b/config.c 2017-04-22 23:49:43.021996055 +0200 |
229 |
-@@ -25,6 +25,10 @@ |
230 |
- #include <sys/mman.h> |
231 |
- #include <libgen.h> |
232 |
- |
233 |
-+#if !defined(PATH_MAX) && defined(__FreeBSD__) |
234 |
-+#include <sys/param.h> |
235 |
-+#endif |
236 |
-+ |
237 |
- #include "log.h" |
238 |
- #include "logrotate.h" |
239 |
- |
240 |
-diff -Nuar a/logrotate.c b/logrotate.c |
241 |
---- a/logrotate.c 2017-04-21 10:52:10.000000000 +0200 |
242 |
-+++ b/logrotate.c 2017-04-22 23:50:20.691996814 +0200 |
243 |
-@@ -1,6 +1,6 @@ |
244 |
- #include "queue.h" |
245 |
- /* alloca() is defined in stdlib.h in NetBSD */ |
246 |
--#ifndef __NetBSD__ |
247 |
-+#if !defined(__NetBSD__) && !defined(__FreeBSD__) |
248 |
- #include <alloca.h> |
249 |
- #endif |
250 |
- #include <limits.h> |
251 |
-@@ -27,6 +27,10 @@ |
252 |
- #include <limits.h> |
253 |
- #endif |
254 |
- |
255 |
-+#if !defined(PATH_MAX) && defined(__FreeBSD__) |
256 |
-+#include <sys/param.h> |
257 |
-+#endif |
258 |
-+ |
259 |
- #include "log.h" |
260 |
- #include "logrotate.h" |
261 |
- |
262 |
|
263 |
diff --git a/app-admin/logrotate/files/logrotate-3.12.2-ignore-hidden.patch b/app-admin/logrotate/files/logrotate-3.12.2-ignore-hidden.patch |
264 |
deleted file mode 100644 |
265 |
index 0bbb91dcb4f..00000000000 |
266 |
--- a/app-admin/logrotate/files/logrotate-3.12.2-ignore-hidden.patch |
267 |
+++ /dev/null |
268 |
@@ -1,14 +0,0 @@ |
269 |
-diff -Nuar a/config.c b/config.c |
270 |
---- a/config.c 2017-04-18 14:57:02.000000000 +0200 |
271 |
-+++ b/config.c 2017-04-22 23:46:08.201991730 +0200 |
272 |
-@@ -389,7 +389,9 @@ |
273 |
- int i; |
274 |
- |
275 |
- /* Check if fname is '.' or '..'; if so, return false */ |
276 |
-- if (fname[0] == '.' && (!fname[1] || (fname[1] == '.' && !fname[2]))) |
277 |
-+ /* Don't include 'hidden' files either; this breaks Gentoo |
278 |
-+ portage config file management http://bugs.gentoo.org/87683 */ |
279 |
-+ if (fname[0] == '.') |
280 |
- return 0; |
281 |
- |
282 |
- /* Check if fname is ending in a taboo-extension; if so, return false */ |
283 |
|
284 |
diff --git a/app-admin/logrotate/logrotate-3.11.0.ebuild b/app-admin/logrotate/logrotate-3.11.0.ebuild |
285 |
deleted file mode 100644 |
286 |
index 2570ecbb1bf..00000000000 |
287 |
--- a/app-admin/logrotate/logrotate-3.11.0.ebuild |
288 |
+++ /dev/null |
289 |
@@ -1,88 +0,0 @@ |
290 |
-# Copyright 1999-2017 Gentoo Foundation |
291 |
-# Distributed under the terms of the GNU General Public License v2 |
292 |
- |
293 |
-EAPI=6 |
294 |
- |
295 |
-inherit autotools eutils toolchain-funcs flag-o-matic |
296 |
- |
297 |
-DESCRIPTION="Rotates, compresses, and mails system logs" |
298 |
-HOMEPAGE="https://github.com/logrotate/logrotate" |
299 |
-SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz -> ${P}.tar.gz" |
300 |
- |
301 |
-LICENSE="GPL-2" |
302 |
-SLOT="0" |
303 |
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd" |
304 |
-IUSE="acl +cron selinux" |
305 |
- |
306 |
-CDEPEND=" |
307 |
- >=dev-libs/popt-1.5 |
308 |
- selinux? ( |
309 |
- sys-libs/libselinux |
310 |
- ) |
311 |
- acl? ( virtual/acl )" |
312 |
- |
313 |
-DEPEND="${CDEPEND} |
314 |
- >=sys-apps/sed-4" |
315 |
- |
316 |
-RDEPEND="${CDEPEND} |
317 |
- selinux? ( sec-policy/selinux-logrotate ) |
318 |
- cron? ( virtual/cron )" |
319 |
- |
320 |
-install_cron_file() { |
321 |
- sed -i 's#/usr/sbin/logrotate#/usr/bin/logrotate#' "${S}"/examples/logrotate.cron || die |
322 |
- exeinto /etc/cron.daily |
323 |
- newexe "${S}"/examples/logrotate.cron "${PN}" |
324 |
-} |
325 |
- |
326 |
-PATCHES=( |
327 |
- "${FILESDIR}/${P}-ignore-hidden.patch" |
328 |
- "${FILESDIR}/${P}-fbsd.patch" |
329 |
- "${FILESDIR}/${P}-noasprintf.patch" |
330 |
- "${FILESDIR}/${P}-Werror.patch" |
331 |
- "${FILESDIR}/${P}-lfs.patch" |
332 |
-) |
333 |
- |
334 |
-src_prepare() { |
335 |
- default |
336 |
- eautoreconf |
337 |
-} |
338 |
- |
339 |
-src_configure() { |
340 |
- econf $(use_with acl) $(use_with selinux) |
341 |
-} |
342 |
- |
343 |
-src_compile() { |
344 |
- emake ${myconf} RPM_OPT_FLAGS="${CFLAGS}" |
345 |
-} |
346 |
- |
347 |
-src_test() { |
348 |
- emake test |
349 |
-} |
350 |
- |
351 |
-src_install() { |
352 |
- insinto /usr |
353 |
- dobin logrotate |
354 |
- doman logrotate.8 |
355 |
- dodoc ChangeLog.md examples/logrotate* |
356 |
- |
357 |
- insinto /etc |
358 |
- doins "${FILESDIR}"/logrotate.conf |
359 |
- |
360 |
- use cron && install_cron_file |
361 |
- |
362 |
- keepdir /etc/logrotate.d |
363 |
-} |
364 |
- |
365 |
-pkg_postinst() { |
366 |
- elog "The ${PN} binary is now installed under /usr/bin. Please" |
367 |
- elog "update your links" |
368 |
- elog |
369 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
370 |
- elog "If you wish to have logrotate e-mail you updates, please" |
371 |
- elog "emerge virtual/mailx and configure logrotate in" |
372 |
- elog "/etc/logrotate.conf appropriately" |
373 |
- elog |
374 |
- elog "Additionally, /etc/logrotate.conf may need to be modified" |
375 |
- elog "for your particular needs. See man logrotate for details." |
376 |
- fi |
377 |
-} |
378 |
|
379 |
diff --git a/app-admin/logrotate/logrotate-3.12.2.ebuild b/app-admin/logrotate/logrotate-3.12.2.ebuild |
380 |
deleted file mode 100644 |
381 |
index 15b0107f656..00000000000 |
382 |
--- a/app-admin/logrotate/logrotate-3.12.2.ebuild |
383 |
+++ /dev/null |
384 |
@@ -1,83 +0,0 @@ |
385 |
-# Copyright 1999-2017 Gentoo Foundation |
386 |
-# Distributed under the terms of the GNU General Public License v2 |
387 |
- |
388 |
-EAPI=6 |
389 |
- |
390 |
-inherit autotools eutils toolchain-funcs flag-o-matic |
391 |
- |
392 |
-DESCRIPTION="Rotates, compresses, and mails system logs" |
393 |
-HOMEPAGE="https://github.com/logrotate/logrotate" |
394 |
-SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz -> ${P}.tar.gz" |
395 |
- |
396 |
-LICENSE="GPL-2" |
397 |
-SLOT="0" |
398 |
-KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd" |
399 |
-IUSE="acl +cron selinux" |
400 |
- |
401 |
-CDEPEND=" |
402 |
- >=dev-libs/popt-1.5 |
403 |
- selinux? ( sys-libs/libselinux ) |
404 |
- acl? ( virtual/acl )" |
405 |
- |
406 |
-DEPEND="${CDEPEND} |
407 |
- >=sys-apps/sed-4" |
408 |
- |
409 |
-RDEPEND="${CDEPEND} |
410 |
- selinux? ( sec-policy/selinux-logrotate ) |
411 |
- cron? ( virtual/cron )" |
412 |
- |
413 |
-install_cron_file() { |
414 |
- sed -i 's#/usr/sbin/logrotate#/usr/bin/logrotate#' "${S}"/examples/logrotate.cron || die |
415 |
- exeinto /etc/cron.daily |
416 |
- newexe "${S}"/examples/logrotate.cron "${PN}" |
417 |
-} |
418 |
- |
419 |
-PATCHES=( |
420 |
- "${FILESDIR}/${P}-ignore-hidden.patch" |
421 |
- "${FILESDIR}/${P}-fbsd.patch" |
422 |
-) |
423 |
- |
424 |
-src_prepare() { |
425 |
- default |
426 |
- eautoreconf |
427 |
-} |
428 |
- |
429 |
-src_configure() { |
430 |
- econf $(use_with acl) $(use_with selinux) |
431 |
-} |
432 |
- |
433 |
-src_compile() { |
434 |
- emake ${myconf} RPM_OPT_FLAGS="${CFLAGS}" |
435 |
-} |
436 |
- |
437 |
-src_test() { |
438 |
- emake test |
439 |
-} |
440 |
- |
441 |
-src_install() { |
442 |
- insinto /usr |
443 |
- dobin logrotate |
444 |
- doman logrotate.8 |
445 |
- dodoc ChangeLog.md examples/logrotate* |
446 |
- |
447 |
- insinto /etc |
448 |
- doins "${FILESDIR}"/logrotate.conf |
449 |
- |
450 |
- use cron && install_cron_file |
451 |
- |
452 |
- keepdir /etc/logrotate.d |
453 |
-} |
454 |
- |
455 |
-pkg_postinst() { |
456 |
- elog "The ${PN} binary is now installed under /usr/bin. Please" |
457 |
- elog "update your links" |
458 |
- elog |
459 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
460 |
- elog "If you wish to have logrotate e-mail you updates, please" |
461 |
- elog "emerge virtual/mailx and configure logrotate in" |
462 |
- elog "/etc/logrotate.conf appropriately" |
463 |
- elog |
464 |
- elog "Additionally, /etc/logrotate.conf may need to be modified" |
465 |
- elog "for your particular needs. See man logrotate for details." |
466 |
- fi |
467 |
-} |
468 |
|
469 |
diff --git a/app-admin/logrotate/logrotate-3.12.3.ebuild b/app-admin/logrotate/logrotate-3.12.3.ebuild |
470 |
deleted file mode 100644 |
471 |
index 34807c80e88..00000000000 |
472 |
--- a/app-admin/logrotate/logrotate-3.12.3.ebuild |
473 |
+++ /dev/null |
474 |
@@ -1,98 +0,0 @@ |
475 |
-# Copyright 1999-2017 Gentoo Foundation |
476 |
-# Distributed under the terms of the GNU General Public License v2 |
477 |
- |
478 |
-EAPI=6 |
479 |
- |
480 |
-inherit systemd |
481 |
- |
482 |
-DESCRIPTION="Rotates, compresses, and mails system logs" |
483 |
-HOMEPAGE="https://github.com/logrotate/logrotate" |
484 |
-SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz -> ${P}.tar.gz" |
485 |
- |
486 |
-LICENSE="GPL-2" |
487 |
-SLOT="0" |
488 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
489 |
-IUSE="acl +cron selinux bzip2" |
490 |
- |
491 |
-CDEPEND=" |
492 |
- >=dev-libs/popt-1.5 |
493 |
- selinux? ( sys-libs/libselinux ) |
494 |
- acl? ( virtual/acl )" |
495 |
- |
496 |
-DEPEND="${CDEPEND} |
497 |
- >=sys-apps/sed-4" |
498 |
- |
499 |
-RDEPEND="${CDEPEND} |
500 |
- selinux? ( sec-policy/selinux-logrotate ) |
501 |
- cron? ( virtual/cron ) |
502 |
- bzip2? ( app-arch/bzip2 )" |
503 |
- |
504 |
-STATEFILE="/var/lib/misc/logrotate.status" |
505 |
-OLDSTATEFILE="/var/lib/logrotate.status" |
506 |
- |
507 |
-move_old_state_file() { |
508 |
- elog "logrotate state file is now located at ${STATEFILE}" |
509 |
- elog "See bug #357275" |
510 |
- if [[ -e "${OLDSTATEFILE}" ]] ; then |
511 |
- elog "Moving your current state file to new location: ${STATEFILE}" |
512 |
- mv -n "${OLDSTATEFILE}" "${STATEFILE}" |
513 |
- fi |
514 |
-} |
515 |
- |
516 |
-install_cron_file() { |
517 |
- exeinto /etc/cron.daily |
518 |
- newexe "${S}"/examples/logrotate.cron "${PN}" |
519 |
-} |
520 |
- |
521 |
-PATCHES=( |
522 |
- "${FILESDIR}/${P}-ignore-hidden.patch" |
523 |
- "${FILESDIR}/${P}-fbsd.patch" |
524 |
-) |
525 |
- |
526 |
-src_prepare() { |
527 |
- default |
528 |
- sed -i -e 's#/usr/sbin/logrotate#/usr/bin/logrotate#' "${S}"/examples/logrotate.{cron,service} || die |
529 |
-} |
530 |
- |
531 |
-src_configure() { |
532 |
- if use bzip2 ; then |
533 |
- compressconf="--with-compress-command=/bin/bzip2 --with-uncompress-command=/bin/bunzip2 --with-compress-extension=.bz2" |
534 |
- fi |
535 |
- econf $(use_with acl) $(use_with selinux) ${compressconf} --with-state-file-path="${STATEFILE}" |
536 |
-} |
537 |
- |
538 |
-src_test() { |
539 |
- emake test |
540 |
-} |
541 |
- |
542 |
-src_install() { |
543 |
- insinto /usr |
544 |
- dobin logrotate |
545 |
- doman logrotate.8 |
546 |
- dodoc ChangeLog.md examples/logrotate-default |
547 |
- |
548 |
- insinto /etc |
549 |
- doins "${FILESDIR}"/logrotate.conf |
550 |
- |
551 |
- use cron && install_cron_file |
552 |
- |
553 |
- systemd_dounit examples/logrotate.{service,timer} |
554 |
- |
555 |
- keepdir /etc/logrotate.d |
556 |
-} |
557 |
- |
558 |
-pkg_postinst() { |
559 |
- elog "The ${PN} binary is now installed under /usr/bin. Please" |
560 |
- elog "update your links" |
561 |
- elog |
562 |
- move_old_state_file |
563 |
- elog |
564 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
565 |
- elog "If you wish to have logrotate e-mail you updates, please" |
566 |
- elog "emerge virtual/mailx and configure logrotate in" |
567 |
- elog "/etc/logrotate.conf appropriately" |
568 |
- elog |
569 |
- elog "Additionally, /etc/logrotate.conf may need to be modified" |
570 |
- elog "for your particular needs. See man logrotate for details." |
571 |
- fi |
572 |
-} |