Gentoo Archives: gentoo-commits

From: "José María Alonso" <nimiux@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/logrotate/
Date: Tue, 03 Jan 2017 09:38:51
Message-Id: 1483436313.0f34c9f087ffab05d0506313100d05a48bddf85b.nimiux@gentoo
1 commit: 0f34c9f087ffab05d0506313100d05a48bddf85b
2 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 3 09:38:33 2017 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 3 09:38:33 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f34c9f0
7
8 app-admin/logrotate: Drops old version
9
10 Package-Manager: portage-2.3.0
11
12 app-admin/logrotate/logrotate-3.9.1-r1.ebuild | 83 ---------------------------
13 1 file changed, 83 deletions(-)
14
15 diff --git a/app-admin/logrotate/logrotate-3.9.1-r1.ebuild b/app-admin/logrotate/logrotate-3.9.1-r1.ebuild
16 deleted file mode 100644
17 index 34fca02..00000000
18 --- a/app-admin/logrotate/logrotate-3.9.1-r1.ebuild
19 +++ /dev/null
20 @@ -1,83 +0,0 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI=5
26 -
27 -inherit autotools eutils toolchain-funcs flag-o-matic
28 -
29 -DESCRIPTION="Rotates, compresses, and mails system logs"
30 -HOMEPAGE="https://fedorahosted.org/logrotate/"
31 -SRC_URI="https://fedorahosted.org/releases/l/o/logrotate/${P}.tar.gz"
32 -
33 -LICENSE="GPL-2"
34 -SLOT="0"
35 -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
36 -IUSE="acl +cron selinux"
37 -
38 -CDEPEND="
39 - >=dev-libs/popt-1.5
40 - selinux? (
41 - sys-libs/libselinux
42 - )
43 - acl? ( virtual/acl )"
44 -
45 -DEPEND="${CDEPEND}
46 - >=sys-apps/sed-4"
47 -
48 -RDEPEND="${CDEPEND}
49 - selinux? ( sec-policy/selinux-logrotate )
50 - cron? ( virtual/cron )"
51 -
52 -install_cron_file() {
53 - exeinto /etc/cron.daily
54 - newexe "${S}"/examples/logrotate.cron "${PN}"
55 -}
56 -
57 -src_prepare() {
58 - epatch \
59 - "${FILESDIR}"/${P}-ignore-hidden.patch \
60 - "${FILESDIR}"/${P}-fbsd.patch \
61 - "${FILESDIR}"/${P}-noasprintf.patch \
62 - "${FILESDIR}"/${P}-atomic-create.patch \
63 - "${FILESDIR}"/${P}-Werror.patch \
64 - "${FILESDIR}"/${P}-lfs.patch
65 - eautoreconf
66 -}
67 -
68 -src_configure() {
69 - econf $(use_with acl) $(use_with selinux)
70 -}
71 -
72 -src_compile() {
73 - emake ${myconf} RPM_OPT_FLAGS="${CFLAGS}"
74 -}
75 -
76 -src_test() {
77 - emake test
78 -}
79 -
80 -src_install() {
81 - insinto /usr
82 - dosbin logrotate
83 - doman logrotate.8
84 - dodoc CHANGES examples/logrotate*
85 -
86 - insinto /etc
87 - doins "${FILESDIR}"/logrotate.conf
88 -
89 - use cron && install_cron_file
90 -
91 - keepdir /etc/logrotate.d
92 -}
93 -
94 -pkg_postinst() {
95 - if [[ -z ${REPLACING_VERSIONS} ]] ; then
96 - elog "If you wish to have logrotate e-mail you updates, please"
97 - elog "emerge virtual/mailx and configure logrotate in"
98 - elog "/etc/logrotate.conf appropriately"
99 - elog
100 - elog "Additionally, /etc/logrotate.conf may need to be modified"
101 - elog "for your particular needs. See man logrotate for details."
102 - fi
103 -}