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

Contents of /sys-apps/logwatch/logwatch-7.3.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Jun 6 14:45:34 2010 UTC (4 years, 6 months ago) by armin76
Branch: MAIN
Changes since 1.9: +2 -2 lines
arm stable wrt #300828
(Portage version: 2.1.8.3/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.6.ebuild,v 1.9 2010/04/24 20:35:22 armin76 Exp $
4
5 DESCRIPTION="Analyzes and Reports on system logs"
6 HOMEPAGE="http://www.logwatch.org/"
7 SRC_URI="ftp://ftp.kaybee.org/pub/linux/${P}.tar.gz"
8
9 LICENSE="MIT"
10 SLOT="0"
11 KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86"
12 IUSE=""
13
14 RDEPEND="virtual/cron
15 virtual/mta
16 dev-lang/perl
17 dev-perl/Tie-IxHash
18 dev-perl/Date-Calc
19 dev-perl/DateManip
20 virtual/mailx"
21 DEPEND=""
22
23 src_install() {
24 dodir /usr/share/logwatch/lib
25 dodir /usr/share/logwatch/scripts/services
26 dodir /usr/share/logwatch/scripts/shared
27 dodir /usr/share/logwatch/default.conf/logfiles
28 dodir /usr/share/logwatch/default.conf/services
29 dodir /usr/share/logwatch/default.conf/html
30 dodir /etc/logwatch
31 keepdir /var/cache/logwatch
32
33 newsbin scripts/logwatch.pl logwatch.pl || die "dosbin logwatch failed"
34
35 for i in scripts/logfiles/* ; do
36 exeinto /usr/share/logwatch/$i
37 doexe $i/* || die "doexe $i failed"
38 done
39
40 exeinto /usr/share/logwatch/lib
41 doexe lib/*.pm
42
43 exeinto /usr/share/logwatch/scripts/services
44 doexe scripts/services/*
45
46 exeinto /usr/share/logwatch/scripts/shared
47 doexe scripts/shared/*
48
49 insinto /usr/share/logwatch/default.conf
50 doins conf/logwatch.conf
51
52 insinto /usr/share/logwatch/default.conf/logfiles
53 doins conf/logfiles/*
54
55 insinto /usr/share/logwatch/default.conf/services
56 doins conf/services/*
57
58 insinto /usr/share/logwatch/default.conf/html
59 doins conf/html/*
60
61 # Make sure logwatch is run before anything else #100243
62 exeinto /etc/cron.daily
63 newexe "${FILESDIR}"/logwatch 00-logwatch
64
65 doman logwatch.8
66 dodoc project/CHANGES README HOWTO-Customize-LogWatch
67 }
68
69 pkg_postinst() {
70 if [[ -e ${ROOT}/etc/cron.daily/logwatch ]] ; then
71 local md5=$(md5sum "${ROOT}"/etc/cron.daily/logwatch)
72 [[ ${md5} == "edb003cbc0686ed4cf37db16025635f3" ]] \
73 && rm -f "${ROOT}"/etc/cron.daily/logwatch \
74 || ewarn "You have two logwatch files in /etc/cron.daily/"
75 fi
76 }

  ViewVC Help
Powered by ViewVC 1.1.20