Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/logrotate/
Date: Fri, 30 Jul 2021 08:39:52
Message-Id: 1627634340.51074ae5c81c0b5b65952e1dbd6dadba66dfb29d.gyakovlev@gentoo
1 commit: 51074ae5c81c0b5b65952e1dbd6dadba66dfb29d
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 30 08:39:00 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 30 08:39:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51074ae5
7
8 app-admin/logrotate: drop 3.18.0
9
10 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
11
12 app-admin/logrotate/Manifest | 1 -
13 app-admin/logrotate/logrotate-3.18.0.ebuild | 101 ----------------------------
14 2 files changed, 102 deletions(-)
15
16 diff --git a/app-admin/logrotate/Manifest b/app-admin/logrotate/Manifest
17 index 47c5cb3d375..0d34971c627 100644
18 --- a/app-admin/logrotate/Manifest
19 +++ b/app-admin/logrotate/Manifest
20 @@ -1,2 +1 @@
21 -DIST logrotate-3.18.0.tar.gz 224873 BLAKE2B f73ffa2d58a5125393e6c96e158e39e0b4cadef01e6eebd172220227a7e1363e6731bc2ac511fa028078054b55d42b131cdc30232ac5762ce4c6cbff79c19681 SHA512 d1bca267fbec4acbb83ffba4d3ac4c864f4269d8513e5614e7dbe6f3b1f176685218bffdb5d62f559ee73f84cf9a8a257c9f63e30af058d12d0034240f247586
22 DIST logrotate-3.18.1.tar.gz 225226 BLAKE2B 6f40dfe89f9c6202263f16204a9cff07b921abc9a298b58649bb4968c9f498626741be334c47d4092da564ed75642b687ff6ef8781f69f5e25364f8635646d9d SHA512 c40f920686aee014c652f087c64f2a85e9e866a8717d1bd3f32a9dd7959a02962e6174de28ae685428b442e12079d0c8d91485611ca34a873ffae872a54ec9fe
23
24 diff --git a/app-admin/logrotate/logrotate-3.18.0.ebuild b/app-admin/logrotate/logrotate-3.18.0.ebuild
25 deleted file mode 100644
26 index 9e712b69c69..00000000000
27 --- a/app-admin/logrotate/logrotate-3.18.0.ebuild
28 +++ /dev/null
29 @@ -1,101 +0,0 @@
30 -# Copyright 1999-2021 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=7
34 -
35 -inherit systemd tmpfiles
36 -
37 -DESCRIPTION="Rotates, compresses, and mails system logs"
38 -HOMEPAGE="https://github.com/logrotate/logrotate"
39 -SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz"
40 -
41 -LICENSE="GPL-2"
42 -SLOT="0"
43 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86"
44 -IUSE="acl +cron selinux"
45 -
46 -COMMON_DEPEND="
47 - >=dev-libs/popt-1.5
48 - selinux? ( sys-libs/libselinux )
49 - acl? ( virtual/acl )"
50 -
51 -DEPEND="${COMMON_DEPEND}
52 - >=sys-apps/sed-4"
53 -
54 -RDEPEND="${COMMON_DEPEND}
55 - selinux? ( sec-policy/selinux-logrotate )
56 - cron? ( virtual/cron )"
57 -
58 -STATEFILE="/var/lib/misc/logrotate.status"
59 -OLDSTATEFILE="/var/lib/logrotate.status"
60 -
61 -move_old_state_file() {
62 - elog "logrotate state file is now located at ${STATEFILE}"
63 - elog "See bug #357275"
64 - if [[ -e "${OLDSTATEFILE}" ]] ; then
65 - elog "Moving your current state file to new location: ${STATEFILE}"
66 - mv -n "${OLDSTATEFILE}" "${STATEFILE}" || die
67 - fi
68 -}
69 -
70 -install_cron_file() {
71 - exeinto /etc/cron.daily
72 - newexe "${S}"/examples/logrotate.cron "${PN}"
73 -}
74 -
75 -PATCHES=(
76 - "${FILESDIR}/${PN}-3.15.0-ignore-hidden.patch"
77 -)
78 -
79 -src_prepare() {
80 - sed -i -e 's#/usr/sbin/logrotate#/usr/bin/logrotate#' "${S}"/examples/logrotate.{cron,service} || die
81 - default
82 -}
83 -
84 -src_configure() {
85 - econf \
86 - $(use_with acl) \
87 - $(use_with selinux) \
88 - --with-state-file-path="${STATEFILE}"
89 -}
90 -
91 -src_test() {
92 - emake test
93 -}
94 -
95 -src_install() {
96 - insinto /usr
97 - dobin logrotate
98 - doman logrotate.8
99 - dodoc ChangeLog.md
100 -
101 - insinto /etc
102 - doins "${FILESDIR}"/logrotate.conf
103 -
104 - use cron && install_cron_file
105 -
106 - systemd_dounit examples/logrotate.{service,timer}
107 - newtmpfiles "${FILESDIR}/${PN}.tmpfiles" "${PN}".conf
108 -
109 - keepdir /etc/logrotate.d
110 -}
111 -
112 -pkg_postinst() {
113 - elog
114 - elog "The ${PN} binary is now installed under /usr/bin. Please"
115 - elog "update your links"
116 - elog
117 - move_old_state_file
118 - elog "If you are running systemd you might need to run:"
119 - elog "systemd-tmpfiles --create /usr/lib/tmpfiles.d/logrotate.conf"
120 - elog "in order to create the new location of the logrotate state file"
121 - elog
122 - if [[ -z ${REPLACING_VERSIONS} ]] ; then
123 - elog "If you wish to have logrotate e-mail you updates, please"
124 - elog "emerge virtual/mailx and configure logrotate in"
125 - elog "/etc/logrotate.conf appropriately"
126 - elog
127 - elog "Additionally, /etc/logrotate.conf may need to be modified"
128 - elog "for your particular needs. See man logrotate for details."
129 - fi
130 -}