/[gentoo-x86]/sys-apps/logwatch/logwatch-7.3.7_pre20100217.ebuild
Gentoo

Contents of /sys-apps/logwatch/logwatch-7.3.7_pre20100217.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Apr 24 20:35:22 2010 UTC (4 years, 4 months ago) by armin76
Branch: MAIN
Changes since 1.2: +2 -2 lines
Add ~arm
(Portage version: 2.1.7.17/cvs/Linux ia64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/logwatch/logwatch-7.3.7_pre20100217.ebuild,v 1.2 2010/02/23 15:22:26 josejx Exp $
4
5 DESCRIPTION="Analyzes and Reports on system logs"
6 HOMEPAGE="http://www.logwatch.org/"
7 SRC_URI="mirror://gentoo/${P}.tar.bz2"
8
9 LICENSE="MIT"
10 SLOT="0"
11 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
12 IUSE=""
13
14 DEPEND=""
15 RDEPEND="virtual/cron
16 virtual/mta
17 virtual/mailx
18 dev-lang/perl
19 dev-perl/Date-Calc
20 dev-perl/DateManip
21 dev-perl/Tie-IxHash
22 dev-perl/Sys-CPU
23 dev-perl/Sys-MemInfo"
24
25 src_install() {
26 dodir /usr/share/logwatch/lib
27 dodir /usr/share/logwatch/scripts/services
28 dodir /usr/share/logwatch/scripts/shared
29 dodir /usr/share/logwatch/default.conf/logfiles
30 dodir /usr/share/logwatch/default.conf/services
31 dodir /usr/share/logwatch/default.conf/html
32 keepdir /etc/logwatch
33 keepdir /var/cache/logwatch
34
35 newsbin scripts/logwatch.pl logwatch.pl || die "dosbin logwatch failed"
36
37 for i in scripts/logfiles/* ; do
38 exeinto /usr/share/logwatch/$i
39 doexe $i/* || die "doexe $i failed"
40 done
41
42 exeinto /usr/share/logwatch/lib
43 doexe lib/*.pm
44
45 exeinto /usr/share/logwatch/scripts/services
46 doexe scripts/services/*
47
48 exeinto /usr/share/logwatch/scripts/shared
49 doexe scripts/shared/*
50
51 insinto /usr/share/logwatch/default.conf
52 doins conf/logwatch.conf
53
54 insinto /usr/share/logwatch/default.conf/logfiles
55 doins conf/logfiles/*
56
57 insinto /usr/share/logwatch/default.conf/services
58 doins conf/services/*
59
60 insinto /usr/share/logwatch/default.conf/html
61 doins conf/html/*
62
63 # Make sure logwatch is run before anything else #100243
64 exeinto /etc/cron.daily
65 newexe "${FILESDIR}"/logwatch 00-logwatch
66
67 doman logwatch.8
68 dodoc project/CHANGES README HOWTO-Customize-LogWatch
69 }
70
71 pkg_postinst() {
72 if [[ -e ${ROOT}/etc/cron.daily/logwatch ]] ; then
73 local md5=$(md5sum "${ROOT}"/etc/cron.daily/logwatch)
74 [[ ${md5} == "edb003cbc0686ed4cf37db16025635f3" ]] \
75 && rm -f "${ROOT}"/etc/cron.daily/logwatch \
76 || ewarn "You have two logwatch files in /etc/cron.daily/"
77 fi
78 }

  ViewVC Help
Powered by ViewVC 1.1.20