1 |
commit: f08577d4cc92ca08d867c4496b55ed594029d6d9 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 11 00:56:19 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 11 01:13:26 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f08577d4 |
7 |
|
8 |
sys-apps/logwatch: bump to v7.5.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
sys-apps/logwatch/Manifest | 1 + |
14 |
sys-apps/logwatch/logwatch-7.5.2.ebuild | 95 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 96 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/logwatch/Manifest b/sys-apps/logwatch/Manifest |
18 |
index aabad0546e0..c578f32578d 100644 |
19 |
--- a/sys-apps/logwatch/Manifest |
20 |
+++ b/sys-apps/logwatch/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST logwatch-7.5.1.tar.gz 469715 BLAKE2B 706352c60370d13b4f72047d08965ab0dd36837194a03bf44e08ec43641eddb8d80d655c783d4f25c8fa757853a4e069997b80676b781561c5e0a23b44a393c9 SHA512 945e66192a9e198169426497f7b5167fcbec2af9565dfead728aa91bfdac5f7e1b2ce2f5f404b6f03841fe6b978f70fb969b47d4f60f02f9a8ccea865c5c782c |
23 |
+DIST logwatch-7.5.2.tar.gz 475277 BLAKE2B e3d841749af4776da84646444dd90bb084dc33712c1a6eeab87d46cb267656527008505f78506168b7ded40f3d0f8209c205249c2f953e6ee8af7a6cd82833d9 SHA512 157486143ba12167f6c50c778372a4295db3744878607bceba8e0813357651bffd8924ef5ef41a4fbd20811c020dcc031eb354a0f52b8eb6d9aac197087c2bc5 |
24 |
|
25 |
diff --git a/sys-apps/logwatch/logwatch-7.5.2.ebuild b/sys-apps/logwatch/logwatch-7.5.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..eefc16389fc |
28 |
--- /dev/null |
29 |
+++ b/sys-apps/logwatch/logwatch-7.5.2.ebuild |
30 |
@@ -0,0 +1,95 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="7" |
35 |
+ |
36 |
+inherit tmpfiles |
37 |
+ |
38 |
+PATCHES=() |
39 |
+ |
40 |
+if [[ ${PV} == "9999" ]] ; then |
41 |
+ EGIT_REPO_URI="https://git.code.sf.net/p/logwatch/git ${PN}" |
42 |
+ inherit git-r3 |
43 |
+else |
44 |
+ SRC_URI="mirror://sourceforge/${PN}/${P}/${P}.tar.gz" |
45 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
46 |
+fi |
47 |
+ |
48 |
+DESCRIPTION="Analyzes and Reports on system logs" |
49 |
+HOMEPAGE="http://www.logwatch.org/" |
50 |
+ |
51 |
+LICENSE="MIT" |
52 |
+SLOT="0" |
53 |
+IUSE="" |
54 |
+ |
55 |
+DEPEND="" |
56 |
+RDEPEND="virtual/cron |
57 |
+ virtual/mta |
58 |
+ virtual/mailx |
59 |
+ dev-lang/perl |
60 |
+ dev-perl/Date-Calc |
61 |
+ dev-perl/Date-Manip |
62 |
+ dev-perl/Tie-IxHash |
63 |
+ dev-perl/Sys-CPU |
64 |
+ dev-perl/Sys-MemInfo" |
65 |
+ |
66 |
+src_install() { |
67 |
+ dodir /usr/share/logwatch/lib |
68 |
+ dodir /usr/share/logwatch/scripts/services |
69 |
+ dodir /usr/share/logwatch/scripts/shared |
70 |
+ dodir /usr/share/logwatch/default.conf/logfiles |
71 |
+ dodir /usr/share/logwatch/default.conf/services |
72 |
+ dodir /usr/share/logwatch/default.conf/html |
73 |
+ keepdir /etc/logwatch |
74 |
+ |
75 |
+ # logwatch.pl requires cache dir (bug #607668) |
76 |
+ newtmpfiles "${FILESDIR}"/logwatch.tmpfile ${PN}.conf |
77 |
+ |
78 |
+ newsbin scripts/logwatch.pl logwatch.pl |
79 |
+ |
80 |
+ exeinto /usr/share/logwatch/lib |
81 |
+ doexe lib/*.pm |
82 |
+ |
83 |
+ exeinto /usr/share/logwatch/scripts/services |
84 |
+ doexe scripts/services/* |
85 |
+ |
86 |
+ exeinto /usr/share/logwatch/scripts/shared |
87 |
+ doexe scripts/shared/* |
88 |
+ |
89 |
+ insinto /usr/share/logwatch/default.conf |
90 |
+ doins conf/logwatch.conf |
91 |
+ |
92 |
+ insinto /usr/share/logwatch/default.conf/logfiles |
93 |
+ doins conf/logfiles/* |
94 |
+ |
95 |
+ insinto /usr/share/logwatch/default.conf/services |
96 |
+ doins conf/services/* |
97 |
+ |
98 |
+ insinto /usr/share/logwatch/default.conf/html |
99 |
+ doins conf/html/* |
100 |
+ |
101 |
+ # Make sure logwatch is run before anything else #100243 |
102 |
+ exeinto /etc/cron.daily |
103 |
+ newexe "${FILESDIR}"/logwatch 00-logwatch |
104 |
+ |
105 |
+ doman logwatch.8 |
106 |
+ dodoc README HOWTO-Customize-LogWatch |
107 |
+ |
108 |
+ # Do last due to insopts modification. |
109 |
+ insinto /usr/share/logwatch/scripts/logfiles |
110 |
+ insopts -m755 |
111 |
+ doins -r scripts/logfiles/* |
112 |
+} |
113 |
+ |
114 |
+pkg_postinst() { |
115 |
+ # Migration from /etc/cron.daily/logwatch -> /etc/cron.daily/00-logwatch (bug #100243) |
116 |
+ if [[ -e ${ROOT}/etc/cron.daily/logwatch ]] ; then |
117 |
+ local md5=$(md5sum "${ROOT}"/etc/cron.daily/logwatch) |
118 |
+ [[ ${md5} == "edb003cbc0686ed4cf37db16025635f3" ]] \ |
119 |
+ && rm -f "${ROOT}"/etc/cron.daily/logwatch \ |
120 |
+ || ewarn "You have two logwatch files in /etc/cron.daily/" |
121 |
+ fi |
122 |
+ |
123 |
+ # Trigger cache dir creation to allow immediate use of logwatch (bug #607668) |
124 |
+ tmpfiles_process ${PN}.conf |
125 |
+} |