1 |
commit: 26b09c54f989e5fb46dddc5f9013d9ca6c3adafd |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 7 09:17:48 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 7 09:17:48 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26b09c54 |
7 |
|
8 |
sys-apps/logwatch: Bump to version 7.4.2 |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-apps/logwatch/Manifest | 1 + |
14 |
.../files/logwatch-7.4.2-openssh-hpn.patch | 16 ++++ |
15 |
sys-apps/logwatch/logwatch-7.4.2.ebuild | 85 ++++++++++++++++++++++ |
16 |
3 files changed, 102 insertions(+) |
17 |
|
18 |
diff --git a/sys-apps/logwatch/Manifest b/sys-apps/logwatch/Manifest |
19 |
index 8bbcd3b..18e0247 100644 |
20 |
--- a/sys-apps/logwatch/Manifest |
21 |
+++ b/sys-apps/logwatch/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST logwatch-7.4.0.tar.gz 294398 SHA256 b8fd136a07a6b79962380d68b26328cdccc8b6a20310195e24e39b0bfd3287c4 SHA512 d556a5768ceeedc21396a38f02f2b2d8ca3556de92274038819840a6d41770437673a531d91f54cf3a905b6b4b8d72fa4011b838f81ed04b02265bde39b7b3c7 WHIRLPOOL 7643cb55ed330dacda223d5ff06dca16a29df2a8c50a6f4b2bded1ba764c07126101bce08422e5531cc7dd531960e6dd9a29114ac5e43987a3d2d9b796204d21 |
24 |
DIST logwatch-7.4.0_p170.tar.gz 455794 SHA256 27f4ae2692190aa96a3af997d66b39a595e9c72e4a078cbdfa7c13f5c885a42f SHA512 6c07cfb20c0bd121b698b48f060d50b45e018b81b2ed78c96d33c5b8cb43fd23a139cf95c64af9c3148c99fe1f9e9d2c0936e1d2ab6dfba105e4ad621db2fcdb WHIRLPOOL 6af221787ce7d71f0c238fbb18d3b272cfe42cb18a3a24a70fbf617f2a6d39fd41d4978dd2c8b67687fa003594300e4beb2fc0b2f0c2425cc1c6fd1d501cda50 |
25 |
DIST logwatch-7.4.1.tar.gz 464970 SHA256 35ec31f9fe981aaa727b144ab3ff2eb655997d8ccabaf66586458f5dfc3a56eb SHA512 f53400e6654b498371265ade82d51f0625904a33400f7f82b2dc8522ad561c8998fd9f23d569281f031142bb527fc1b38af1d7534fe3b3aef23780b0152e67d4 WHIRLPOOL 947f0796f5313c9eb5aff3cca8b47a861eda3ff0b3b65134a11792ddca2262fbd8fd0bdf83ce430d06efb4905187ca82a6978e6b5ae656ade63a7d181cc3faac |
26 |
+DIST logwatch-7.4.2.tar.gz 491073 SHA256 006e122a1973bb12b92eb79622ebc93716ec0766a6987e73b4ae5387509e5ade SHA512 aed19220ccbe70a39148e0cdcfe421e7cf744d06d01e4decc88980f3e9e97f85f1cc40aee9a8857fb123a41ffb001afa75eeccdfcdc001073057d39a01875cb2 WHIRLPOOL 1b05288e4af8f0a608aa658df43a351dec6b958f77b0646d2eb45d8349ad7c5030327745a2a8ebc1e2e432dc74abf20a1303f266ef97cf24f89b74bef5cb141f |
27 |
|
28 |
diff --git a/sys-apps/logwatch/files/logwatch-7.4.2-openssh-hpn.patch b/sys-apps/logwatch/files/logwatch-7.4.2-openssh-hpn.patch |
29 |
new file mode 100644 |
30 |
index 0000000..49513a7 |
31 |
--- /dev/null |
32 |
+++ b/sys-apps/logwatch/files/logwatch-7.4.2-openssh-hpn.patch |
33 |
@@ -0,0 +1,16 @@ |
34 |
+Add an 'ignore' line for the HPN patch that we enable on our openssh by default. |
35 |
+ |
36 |
+http://sourceforge.net/tracker/?func=detail&aid=3257504&group_id=312875&atid=1316824 |
37 |
+ |
38 |
+--- logwatch-7.4.2/scripts/services/sshd |
39 |
++++ logwatch-7.4.2/scripts/services/sshd |
40 |
+@@ -297,7 +297,8 @@ |
41 |
+ ($ThisLine =~ /Starting session: (forced-command|subsystem|shell|command)/ ) or |
42 |
+ ($ThisLine =~ /Found matching \w+ key:/ ) or |
43 |
+ ($ThisLine =~ /User child is on pid \d/ ) or |
44 |
+- ($ThisLine =~ /Nasty PTR record .* is set up for [\da-fA-F.:]+, ignoring/) |
45 |
++ ($ThisLine =~ /Nasty PTR record .* is set up for [\da-fA-F.:]+, ignoring/) or |
46 |
++ ($ThisLine =~ /^SSH: Server;L[Tt]ype: /) |
47 |
+ ) { |
48 |
+ # Ignore these |
49 |
+ } elsif ( my ($Method,$User,$Host,$Port,$Key) = ($ThisLine =~ /^Accepted (\S+) for ((?:invalid user )?\S+) from ([\d\.:a-f]+) port (\d+) ssh[12](?:: (\w+))?/) ) { |
50 |
|
51 |
diff --git a/sys-apps/logwatch/logwatch-7.4.2.ebuild b/sys-apps/logwatch/logwatch-7.4.2.ebuild |
52 |
new file mode 100644 |
53 |
index 0000000..9618d77 |
54 |
--- /dev/null |
55 |
+++ b/sys-apps/logwatch/logwatch-7.4.2.ebuild |
56 |
@@ -0,0 +1,85 @@ |
57 |
+# Copyright 1999-2016 Gentoo Foundation |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+# $Id$ |
60 |
+ |
61 |
+EAPI=5 |
62 |
+ |
63 |
+inherit eutils |
64 |
+ |
65 |
+DESCRIPTION="Analyzes and Reports on system logs" |
66 |
+HOMEPAGE="http://www.logwatch.org/" |
67 |
+SRC_URI="mirror://sourceforge/${PN}/${P}/${P}.tar.gz" |
68 |
+ |
69 |
+LICENSE="MIT" |
70 |
+SLOT="0" |
71 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
72 |
+IUSE="" |
73 |
+ |
74 |
+DEPEND="" |
75 |
+RDEPEND="virtual/cron |
76 |
+ virtual/mta |
77 |
+ virtual/mailx |
78 |
+ dev-lang/perl |
79 |
+ dev-perl/Date-Calc |
80 |
+ dev-perl/DateManip |
81 |
+ dev-perl/Tie-IxHash |
82 |
+ dev-perl/Sys-CPU |
83 |
+ dev-perl/Sys-MemInfo" |
84 |
+ |
85 |
+src_prepare() { |
86 |
+ epatch "${FILESDIR}"/${PN}-7.4.2-openssh-hpn.patch |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ dodir /usr/share/logwatch/lib |
91 |
+ dodir /usr/share/logwatch/scripts/services |
92 |
+ dodir /usr/share/logwatch/scripts/shared |
93 |
+ dodir /usr/share/logwatch/default.conf/logfiles |
94 |
+ dodir /usr/share/logwatch/default.conf/services |
95 |
+ dodir /usr/share/logwatch/default.conf/html |
96 |
+ keepdir /etc/logwatch |
97 |
+ |
98 |
+ newsbin scripts/logwatch.pl logwatch.pl |
99 |
+ |
100 |
+ exeinto /usr/share/logwatch/lib |
101 |
+ doexe lib/*.pm |
102 |
+ |
103 |
+ exeinto /usr/share/logwatch/scripts/services |
104 |
+ doexe scripts/services/* |
105 |
+ |
106 |
+ exeinto /usr/share/logwatch/scripts/shared |
107 |
+ doexe scripts/shared/* |
108 |
+ |
109 |
+ insinto /usr/share/logwatch/default.conf |
110 |
+ doins conf/logwatch.conf |
111 |
+ |
112 |
+ insinto /usr/share/logwatch/default.conf/logfiles |
113 |
+ doins conf/logfiles/* |
114 |
+ |
115 |
+ insinto /usr/share/logwatch/default.conf/services |
116 |
+ doins conf/services/* |
117 |
+ |
118 |
+ insinto /usr/share/logwatch/default.conf/html |
119 |
+ doins conf/html/* |
120 |
+ |
121 |
+ # Make sure logwatch is run before anything else #100243 |
122 |
+ exeinto /etc/cron.daily |
123 |
+ newexe "${FILESDIR}"/logwatch 00-logwatch |
124 |
+ |
125 |
+ doman logwatch.8 |
126 |
+ dodoc README HOWTO-Customize-LogWatch |
127 |
+ |
128 |
+ # Do last due to insopts modification. |
129 |
+ insinto /usr/share/logwatch/scripts/logfiles |
130 |
+ insopts -m755 |
131 |
+ doins -r scripts/logfiles/* |
132 |
+} |
133 |
+ |
134 |
+pkg_postinst() { |
135 |
+ if [[ -e ${ROOT}/etc/cron.daily/logwatch ]] ; then |
136 |
+ local md5=$(md5sum "${ROOT}"/etc/cron.daily/logwatch) |
137 |
+ [[ ${md5} == "edb003cbc0686ed4cf37db16025635f3" ]] \ |
138 |
+ && rm -f "${ROOT}"/etc/cron.daily/logwatch \ |
139 |
+ || ewarn "You have two logwatch files in /etc/cron.daily/" |
140 |
+ fi |
141 |
+} |