Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/logwatch/
Date: Thu, 28 Apr 2016 07:07:10
Message-Id: 1461827189.0ff1ed287eaf4152bc1308c70202f027570e2e18.polynomial-c@gentoo
1 commit: 0ff1ed287eaf4152bc1308c70202f027570e2e18
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 28 07:06:29 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 28 07:06:29 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ff1ed28
7
8 sys-apps/logwatch: Bump to version 7.4.3
9
10 Package-Manager: portage-2.2.28
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-apps/logwatch/Manifest | 1 +
14 sys-apps/logwatch/logwatch-7.4.3.ebuild | 85 +++++++++++++++++++++++++++++++++
15 2 files changed, 86 insertions(+)
16
17 diff --git a/sys-apps/logwatch/Manifest b/sys-apps/logwatch/Manifest
18 index 26f6c6c..fdbb8d9 100644
19 --- a/sys-apps/logwatch/Manifest
20 +++ b/sys-apps/logwatch/Manifest
21 @@ -1,3 +1,4 @@
22 DIST logwatch-7.4.0_p170.tar.gz 455794 SHA256 27f4ae2692190aa96a3af997d66b39a595e9c72e4a078cbdfa7c13f5c885a42f SHA512 6c07cfb20c0bd121b698b48f060d50b45e018b81b2ed78c96d33c5b8cb43fd23a139cf95c64af9c3148c99fe1f9e9d2c0936e1d2ab6dfba105e4ad621db2fcdb WHIRLPOOL 6af221787ce7d71f0c238fbb18d3b272cfe42cb18a3a24a70fbf617f2a6d39fd41d4978dd2c8b67687fa003594300e4beb2fc0b2f0c2425cc1c6fd1d501cda50
23 DIST logwatch-7.4.1.tar.gz 464970 SHA256 35ec31f9fe981aaa727b144ab3ff2eb655997d8ccabaf66586458f5dfc3a56eb SHA512 f53400e6654b498371265ade82d51f0625904a33400f7f82b2dc8522ad561c8998fd9f23d569281f031142bb527fc1b38af1d7534fe3b3aef23780b0152e67d4 WHIRLPOOL 947f0796f5313c9eb5aff3cca8b47a861eda3ff0b3b65134a11792ddca2262fbd8fd0bdf83ce430d06efb4905187ca82a6978e6b5ae656ade63a7d181cc3faac
24 DIST logwatch-7.4.2.tar.gz 491073 SHA256 006e122a1973bb12b92eb79622ebc93716ec0766a6987e73b4ae5387509e5ade SHA512 aed19220ccbe70a39148e0cdcfe421e7cf744d06d01e4decc88980f3e9e97f85f1cc40aee9a8857fb123a41ffb001afa75eeccdfcdc001073057d39a01875cb2 WHIRLPOOL 1b05288e4af8f0a608aa658df43a351dec6b958f77b0646d2eb45d8349ad7c5030327745a2a8ebc1e2e432dc74abf20a1303f266ef97cf24f89b74bef5cb141f
25 +DIST logwatch-7.4.3.tar.gz 462552 SHA256 1dbdc48d65e150f2dbb43f1e4f4700d94166e053b1c7bbbdedf4ad670283720e SHA512 716d87238f487010f2bdf230fc66c16f3c3fe769e6bef04b0e7881c6b0563e1a4b4741235b8a40a16ab21d3803562e87e6bcf5cfbd0ace42414f1d1feae7a13a WHIRLPOOL abe7870020029f86f037f4c96dff96b6c542eb36df9f110c755d6de28965c6418dd4d03a2e6932ff8db7079f22ea396d352aa6b8ebba81576b588017b4694d02
26
27 diff --git a/sys-apps/logwatch/logwatch-7.4.3.ebuild b/sys-apps/logwatch/logwatch-7.4.3.ebuild
28 new file mode 100644
29 index 0000000..454da10
30 --- /dev/null
31 +++ b/sys-apps/logwatch/logwatch-7.4.3.ebuild
32 @@ -0,0 +1,85 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=5
38 +
39 +inherit eutils
40 +
41 +DESCRIPTION="Analyzes and Reports on system logs"
42 +HOMEPAGE="http://www.logwatch.org/"
43 +SRC_URI="mirror://sourceforge/${PN}/${P}/${P}.tar.gz"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
48 +IUSE=""
49 +
50 +DEPEND=""
51 +RDEPEND="virtual/cron
52 + virtual/mta
53 + virtual/mailx
54 + dev-lang/perl
55 + dev-perl/Date-Calc
56 + dev-perl/Date-Manip
57 + dev-perl/Tie-IxHash
58 + dev-perl/Sys-CPU
59 + dev-perl/Sys-MemInfo"
60 +
61 +src_prepare() {
62 + epatch "${FILESDIR}"/${PN}-7.4.2-openssh-hpn.patch
63 +}
64 +
65 +src_install() {
66 + dodir /usr/share/logwatch/lib
67 + dodir /usr/share/logwatch/scripts/services
68 + dodir /usr/share/logwatch/scripts/shared
69 + dodir /usr/share/logwatch/default.conf/logfiles
70 + dodir /usr/share/logwatch/default.conf/services
71 + dodir /usr/share/logwatch/default.conf/html
72 + keepdir /etc/logwatch
73 +
74 + newsbin scripts/logwatch.pl logwatch.pl
75 +
76 + exeinto /usr/share/logwatch/lib
77 + doexe lib/*.pm
78 +
79 + exeinto /usr/share/logwatch/scripts/services
80 + doexe scripts/services/*
81 +
82 + exeinto /usr/share/logwatch/scripts/shared
83 + doexe scripts/shared/*
84 +
85 + insinto /usr/share/logwatch/default.conf
86 + doins conf/logwatch.conf
87 +
88 + insinto /usr/share/logwatch/default.conf/logfiles
89 + doins conf/logfiles/*
90 +
91 + insinto /usr/share/logwatch/default.conf/services
92 + doins conf/services/*
93 +
94 + insinto /usr/share/logwatch/default.conf/html
95 + doins conf/html/*
96 +
97 + # Make sure logwatch is run before anything else #100243
98 + exeinto /etc/cron.daily
99 + newexe "${FILESDIR}"/logwatch 00-logwatch
100 +
101 + doman logwatch.8
102 + dodoc README HOWTO-Customize-LogWatch
103 +
104 + # Do last due to insopts modification.
105 + insinto /usr/share/logwatch/scripts/logfiles
106 + insopts -m755
107 + doins -r scripts/logfiles/*
108 +}
109 +
110 +pkg_postinst() {
111 + if [[ -e ${ROOT}/etc/cron.daily/logwatch ]] ; then
112 + local md5=$(md5sum "${ROOT}"/etc/cron.daily/logwatch)
113 + [[ ${md5} == "edb003cbc0686ed4cf37db16025635f3" ]] \
114 + && rm -f "${ROOT}"/etc/cron.daily/logwatch \
115 + || ewarn "You have two logwatch files in /etc/cron.daily/"
116 + fi
117 +}