blob: d7f7f1973bed81ba9f8a7b0c8c996c8948ecb142 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/logsentry/logsentry-1.1.1.ebuild,v 1.10 2003/03/28 10:27:14 pvdabeel Exp $
DESCRIPTION="automatically monitor system logs and mail security violations on a periodic basis"
HOMEPAGE="http://www.psionic.com/products/logsentry.html/"
SRC_URI="http://www.psionic.com/downloads/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc sparc"
RDEPEND="net-mail/mailx"
S=${WORKDIR}/logcheck-${PV}
src_compile() {
einfo "compile and install mixed in the package makefile"
}
src_install() {
dodir /usr/bin /etc/logcheck/tmp /etc/cron.hourly
cp systems/linux/logcheck.sh{,.orig}
sed -e 's:/usr/local/bin:/usr/bin:' \
-e 's:/usr/local/etc:/etc/logcheck:' \
systems/linux/logcheck.sh.orig > systems/linux/logcheck.sh
cp Makefile{,.orig}
sed -e "s:/usr/local/bin:${D}/usr/bin:" \
-e "s:/usr/local/etc:${D}/etc/logcheck:" \
Makefile.orig > Makefile
make CFLAGS="${CFLAGS}" linux || die
dodoc README* CHANGES CREDITS
dodoc systems/linux/README.*
cat << EOF > ${D}/etc/cron.hourly/logsentry.cron
#!/bin/sh
#
# Uncomment the following if you want
# logsentry (logcheck) to run hourly
#
# this is part of the logsentry package
#
#
#/bin/sh /etc/logcheck/logcheck.sh
EOF
}
pkg_postinst() {
einfo
einfo "uncomment the logwatch line in /etc/cron.hourly/logsentry.cron,"
einfo "or add directly to root's crontab"
einfo
}
|