1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Logwatch is a customizable, pluggable log-monitoring system. It will go

through your logs for a given period of time and make a report in the areas
that you wish with the detail that you wish.

WWW: http://www.logwatch.org:81/

PR:		ports/118746
Submitted by:	Trix Farrar <trix@basement.net>
This commit is contained in:
Pav Lucistnik 2008-03-13 13:35:12 +00:00
parent 0a18493b93
commit 2356ed53b9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=208941
6 changed files with 557 additions and 0 deletions

View File

@ -386,6 +386,7 @@
SUBDIR += logserial
SUBDIR += logtool
SUBDIR += logtool-devel
SUBDIR += logwatch
SUBDIR += lookat
SUBDIR += lookupd
SUBDIR += lookupd_ldap

View File

@ -0,0 +1,51 @@
# New ports collection makefile for: logwatch
# Date created: 8 December 2007
# Whom: John D. "Trix" Farrar <trix@basement.net>
#
# $FreeBSD$
#
PORTNAME= logwatch
PORTVERSION= 7.3.6
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.kaybee.org/pub/linux/
MAINTAINER= trix@basement.net
COMMENT= A log file analysis program
RUN_DEPENDS= ${SITE_PERL}/mach/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
USE_PERL5_RUN= yes
MAN8= logwatch.8
DOCS= HOWTO-Customize-LogWatch License README
NO_BUILD= yes
pre-configure:
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
post-patch:
${REINPLACE_CMD} -E \
-e "s,/usr/share/logwatch,${LOCALBASE}," \
-e "s,/etc/logwatch,${ETCDIR}," \
-e 's,^eval "use lib.*,,' \
-e "s,.BaseDir/lib,${LIBEXECDIR}," \
-e 's,BaseDir/dist.conf,ConfigDir/defaults,' \
-e 's,BaseDir/default.conf,ConfigDir/defaults,' \
-e 's,ConfigDir/conf,ConfigDir,' \
-e "s,BaseDir/scripts/([^/]*)/,BaseDir/libexec/${PORTNAME}/defaults/\1/," \
-e "s,ConfigDir/scripts/([^/]*)/,BaseDir/libexec/${PORTNAME}/\1/," \
${WRKSRC}/scripts/logwatch.pl
${REINPLACE_CMD} -E \
-e "s,/var/cache/logwatch,${LOCALBASE}/var/${PORTNAME}," \
${WRKSRC}/conf/logwatch.conf
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/HOWTO-Customize-LogWatch ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (logwatch-7.3.6.tar.gz) = 937d982006b2a76a83edfcfd2e5a9d7d
SHA256 (logwatch-7.3.6.tar.gz) = 84b7cc37d075674e0d69df2ef4d1b4464129b43d5ca1607af0852ef96f51bc3e
SIZE (logwatch-7.3.6.tar.gz) = 297296

View File

@ -0,0 +1,213 @@
# $FreeBSD$
PORTNAME?=logwatch
PREFIX?=/usr/local/${PORTNAME}
ETCDIR?=${PREFIX}/etc/${PORTNAME}
LIBDIR?=${PREFIX}/lib/${PORTNAME}
LIBEXECDIR?=${PREFIX}/libexec/${PORTNAME}
CACHEDIR?=${PREFIX}/var/${PORTNAME}
MANDIR?=${PREFIX}/man
MAN8DIR?=${MANDIR}/man8
PERL_VER?=5.8.8
SITE_PERL_REL?= lib/perl5/site_perl/${PERL_VER}
SITE_PERL?= ${PREFIX}/${SITE_PERL_REL}
all: logwatch
logwatch:
@echo "There is no build target, only install."
@echo "If you are not using FreeBSD ports,"
@echo "please run, ./install_logwatch.sh after"
@echo "reading the ./README file."
install:
install -d ${PREFIX}/sbin
install -d ${ETCDIR}/html
install -d ${ETCDIR}/logfiles
install -d ${ETCDIR}/services
install -d ${ETCDIR}/defaults/html
install -d ${ETCDIR}/defaults/logfiles
install -d ${ETCDIR}/defaults/services
install -d ${LIBEXECDIR}
install -d ${SITE_PERL}
install -d ${CACHEDIR}
install -d ${MAN8DIR}
install -m 555 scripts/logwatch.pl ${PREFIX}/sbin
install -m 555 lib/Logwatch.pm ${SITE_PERL}
install -m 444 logwatch.8 ${MAN8DIR}
install -m 644 conf/logwatch.conf ${ETCDIR}/defaults
install -m 640 conf/ignore.conf ${ETCDIR}/defaults
install -m 444 conf/html/header.html ${ETCDIR}/defaults/html
install -m 444 conf/html/footer.html ${ETCDIR}/defaults/html
.for etcdir in html logfiles services
mkdir -p ${ETCDIR}/defaults/${etcdir}
.endfor
.for scriptdir in logfiles services shared
mkdir -p ${LIBEXECDIR}/defaults/${scriptdir}
.endfor
.for logfile in \
autorpm \
bfd \
cisco \
clam-update \
cron \
daemon \
denyhosts \
dnssec \
dpkg \
emerge \
eventlog \
exim \
extreme-networks \
fail2ban \
http \
iptables \
kernel \
maillog \
messages \
netopia \
netscreen \
php \
pix \
pureftp \
qmail-pop3d-current \
qmail-pop3ds-current \
qmail-send-current \
qmail-smtpd-current \
resolver \
rt314 \
samba \
secure \
sonicwall \
syslog \
tac_acc \
up2date \
vsftpd \
windows \
xferlog \
yum
install -m 640 conf/logfiles/${logfile}.conf ${ETCDIR}/defaults/logfiles/${logfile}.conf
.endfor
.for service in \
afpd \
amavis \
arpwatch \
audit \
automount \
autorpm \
bfd \
cisco \
clam-update \
clamav \
clamav-milter \
courier \
cron \
denyhosts \
dhcpd \
dnssec \
dovecot \
dpkg \
emerge \
evtapplication \
evtsecurity \
evtsystem \
exim \
eximstats \
extreme-networks \
fail2ban \
ftpd-messages \
ftpd-xferlog \
http \
identd \
imapd \
in.qpopper \
init \
ipop3d \
iptables \
kernel \
mailscanner \
modprobe \
mountd \
named \
netopia \
netscreen \
oidentd \
openvpn \
pam \
pam_pwdb \
pam_unix \
php \
pix \
pluto \
pop3 \
portsentry \
postfix \
pound \
proftpd-messages \
pureftpd \
qmail \
qmail-pop3d \
qmail-pop3ds \
qmail-send \
qmail-smtpd \
raid \
resolver \
rt314 \
samba \
saslauthd \
scsi \
secure \
sendmail \
sendmail-largeboxes \
shaperd \
slon \
smartd \
sonicwall \
sshd \
sshd2 \
stunnel \
sudo \
syslogd \
tac_acc \
up2date \
vpopmail \
vsftpd \
windows \
xntpd \
yum \
zz-disk_space \
zz-fortune \
zz-network \
zz-runtime \
zz-sys
install -m 444 scripts/services/${service} ${LIBEXECDIR}/defaults/services/${service}
install -m 444 conf/services/${service}.conf ${ETCDIR}/defaults/services/${service}.conf
.endfor
.for script in \
applybinddate \
applyeurodate \
applyhttpdate \
applystddate \
applytaidate \
applyusdate \
eventlogonlyservice \
eventlogremoveservice \
expandrepeats \
hosthash \
hostlist \
multiservice \
onlycontains \
onlyhost \
onlyservice \
remove \
removeheaders \
removeservice
install -m 555 scripts/shared/${script} ${LIBEXECDIR}/defaults/shared/${script}
.endfor
.for logfile in autorpm cron emerge samba up2date xferlog yum
mkdir -p ${LIBEXECDIR}/defaults/logfiles/${logfile}
install -m 555 scripts/logfiles/${logfile}/applydate ${LIBEXECDIR}/defaults/logfiles/${logfile}
.endfor
.for logfile in samba up2date xferlog
install -m 555 scripts/logfiles/${logfile}/removeheaders ${LIBEXECDIR}/defaults/logfiles/${logfile}
.endfor

View File

@ -0,0 +1,5 @@
Logwatch is a customizable, pluggable log-monitoring system. It will go
through your logs for a given period of time and make a report in the areas
that you wish with the detail that you wish.
WWW: http://www.logwatch.org:81/

284
sysutils/logwatch/pkg-plist Normal file
View File

@ -0,0 +1,284 @@
etc/logwatch/defaults/html/footer.html
etc/logwatch/defaults/html/header.html
etc/logwatch/defaults/logfiles/autorpm.conf
etc/logwatch/defaults/logfiles/bfd.conf
etc/logwatch/defaults/logfiles/cisco.conf
etc/logwatch/defaults/logfiles/clam-update.conf
etc/logwatch/defaults/logfiles/cron.conf
etc/logwatch/defaults/logfiles/daemon.conf
etc/logwatch/defaults/logfiles/denyhosts.conf
etc/logwatch/defaults/logfiles/dnssec.conf
etc/logwatch/defaults/logfiles/dpkg.conf
etc/logwatch/defaults/logfiles/emerge.conf
etc/logwatch/defaults/logfiles/eventlog.conf
etc/logwatch/defaults/logfiles/exim.conf
etc/logwatch/defaults/logfiles/extreme-networks.conf
etc/logwatch/defaults/logfiles/fail2ban.conf
etc/logwatch/defaults/logfiles/http.conf
etc/logwatch/defaults/logfiles/iptables.conf
etc/logwatch/defaults/logfiles/kernel.conf
etc/logwatch/defaults/logfiles/maillog.conf
etc/logwatch/defaults/logfiles/messages.conf
etc/logwatch/defaults/logfiles/netopia.conf
etc/logwatch/defaults/logfiles/netscreen.conf
etc/logwatch/defaults/logfiles/php.conf
etc/logwatch/defaults/logfiles/pix.conf
etc/logwatch/defaults/logfiles/pureftp.conf
etc/logwatch/defaults/logfiles/qmail-pop3d-current.conf
etc/logwatch/defaults/logfiles/qmail-pop3ds-current.conf
etc/logwatch/defaults/logfiles/qmail-send-current.conf
etc/logwatch/defaults/logfiles/qmail-smtpd-current.conf
etc/logwatch/defaults/logfiles/resolver.conf
etc/logwatch/defaults/logfiles/rt314.conf
etc/logwatch/defaults/logfiles/samba.conf
etc/logwatch/defaults/logfiles/secure.conf
etc/logwatch/defaults/logfiles/sonicwall.conf
etc/logwatch/defaults/logfiles/syslog.conf
etc/logwatch/defaults/logfiles/tac_acc.conf
etc/logwatch/defaults/logfiles/up2date.conf
etc/logwatch/defaults/logfiles/vsftpd.conf
etc/logwatch/defaults/logfiles/windows.conf
etc/logwatch/defaults/logfiles/xferlog.conf
etc/logwatch/defaults/logfiles/yum.conf
etc/logwatch/defaults/services/afpd.conf
etc/logwatch/defaults/services/amavis.conf
etc/logwatch/defaults/services/arpwatch.conf
etc/logwatch/defaults/services/audit.conf
etc/logwatch/defaults/services/automount.conf
etc/logwatch/defaults/services/autorpm.conf
etc/logwatch/defaults/services/bfd.conf
etc/logwatch/defaults/services/cisco.conf
etc/logwatch/defaults/services/clam-update.conf
etc/logwatch/defaults/services/clamav-milter.conf
etc/logwatch/defaults/services/clamav.conf
etc/logwatch/defaults/services/courier.conf
etc/logwatch/defaults/services/cron.conf
etc/logwatch/defaults/services/denyhosts.conf
etc/logwatch/defaults/services/dhcpd.conf
etc/logwatch/defaults/services/dnssec.conf
etc/logwatch/defaults/services/dovecot.conf
etc/logwatch/defaults/services/dpkg.conf
etc/logwatch/defaults/services/emerge.conf
etc/logwatch/defaults/services/evtapplication.conf
etc/logwatch/defaults/services/evtsecurity.conf
etc/logwatch/defaults/services/evtsystem.conf
etc/logwatch/defaults/services/exim.conf
etc/logwatch/defaults/services/eximstats.conf
etc/logwatch/defaults/services/extreme-networks.conf
etc/logwatch/defaults/services/fail2ban.conf
etc/logwatch/defaults/services/ftpd-messages.conf
etc/logwatch/defaults/services/ftpd-xferlog.conf
etc/logwatch/defaults/services/http.conf
etc/logwatch/defaults/services/identd.conf
etc/logwatch/defaults/services/imapd.conf
etc/logwatch/defaults/services/in.qpopper.conf
etc/logwatch/defaults/services/init.conf
etc/logwatch/defaults/services/ipop3d.conf
etc/logwatch/defaults/services/iptables.conf
etc/logwatch/defaults/services/kernel.conf
etc/logwatch/defaults/services/mailscanner.conf
etc/logwatch/defaults/services/modprobe.conf
etc/logwatch/defaults/services/mountd.conf
etc/logwatch/defaults/services/named.conf
etc/logwatch/defaults/services/netopia.conf
etc/logwatch/defaults/services/netscreen.conf
etc/logwatch/defaults/services/oidentd.conf
etc/logwatch/defaults/services/openvpn.conf
etc/logwatch/defaults/services/pam.conf
etc/logwatch/defaults/services/pam_pwdb.conf
etc/logwatch/defaults/services/pam_unix.conf
etc/logwatch/defaults/services/php.conf
etc/logwatch/defaults/services/pix.conf
etc/logwatch/defaults/services/pluto.conf
etc/logwatch/defaults/services/pop3.conf
etc/logwatch/defaults/services/portsentry.conf
etc/logwatch/defaults/services/postfix.conf
etc/logwatch/defaults/services/pound.conf
etc/logwatch/defaults/services/proftpd-messages.conf
etc/logwatch/defaults/services/pureftpd.conf
etc/logwatch/defaults/services/qmail-pop3d.conf
etc/logwatch/defaults/services/qmail-pop3ds.conf
etc/logwatch/defaults/services/qmail-send.conf
etc/logwatch/defaults/services/qmail-smtpd.conf
etc/logwatch/defaults/services/qmail.conf
etc/logwatch/defaults/services/raid.conf
etc/logwatch/defaults/services/resolver.conf
etc/logwatch/defaults/services/rt314.conf
etc/logwatch/defaults/services/samba.conf
etc/logwatch/defaults/services/saslauthd.conf
etc/logwatch/defaults/services/scsi.conf
etc/logwatch/defaults/services/secure.conf
etc/logwatch/defaults/services/sendmail-largeboxes.conf
etc/logwatch/defaults/services/sendmail.conf
etc/logwatch/defaults/services/shaperd.conf
etc/logwatch/defaults/services/slon.conf
etc/logwatch/defaults/services/smartd.conf
etc/logwatch/defaults/services/sonicwall.conf
etc/logwatch/defaults/services/sshd.conf
etc/logwatch/defaults/services/sshd2.conf
etc/logwatch/defaults/services/stunnel.conf
etc/logwatch/defaults/services/sudo.conf
etc/logwatch/defaults/services/syslogd.conf
etc/logwatch/defaults/services/tac_acc.conf
etc/logwatch/defaults/services/up2date.conf
etc/logwatch/defaults/services/vpopmail.conf
etc/logwatch/defaults/services/vsftpd.conf
etc/logwatch/defaults/services/windows.conf
etc/logwatch/defaults/services/xntpd.conf
etc/logwatch/defaults/services/yum.conf
etc/logwatch/defaults/services/zz-disk_space.conf
etc/logwatch/defaults/services/zz-fortune.conf
etc/logwatch/defaults/services/zz-network.conf
etc/logwatch/defaults/services/zz-runtime.conf
etc/logwatch/defaults/services/zz-sys.conf
etc/logwatch/defaults/ignore.conf
etc/logwatch/defaults/logwatch.conf
%%PORTDOCS%%%%DOCSDIR%%/HOWTO-Customize-LogWatch
%%PORTDOCS%%%%DOCSDIR%%/README
%%SITE_PERL%%/Logwatch.pm
libexec/logwatch/defaults/logfiles/autorpm/applydate
libexec/logwatch/defaults/logfiles/cron/applydate
libexec/logwatch/defaults/logfiles/emerge/applydate
libexec/logwatch/defaults/logfiles/samba/applydate
libexec/logwatch/defaults/logfiles/samba/removeheaders
libexec/logwatch/defaults/logfiles/up2date/applydate
libexec/logwatch/defaults/logfiles/up2date/removeheaders
libexec/logwatch/defaults/logfiles/xferlog/applydate
libexec/logwatch/defaults/logfiles/xferlog/removeheaders
libexec/logwatch/defaults/logfiles/yum/applydate
libexec/logwatch/defaults/services/afpd
libexec/logwatch/defaults/services/amavis
libexec/logwatch/defaults/services/arpwatch
libexec/logwatch/defaults/services/audit
libexec/logwatch/defaults/services/automount
libexec/logwatch/defaults/services/autorpm
libexec/logwatch/defaults/services/bfd
libexec/logwatch/defaults/services/cisco
libexec/logwatch/defaults/services/clam-update
libexec/logwatch/defaults/services/clamav
libexec/logwatch/defaults/services/clamav-milter
libexec/logwatch/defaults/services/courier
libexec/logwatch/defaults/services/cron
libexec/logwatch/defaults/services/denyhosts
libexec/logwatch/defaults/services/dhcpd
libexec/logwatch/defaults/services/dnssec
libexec/logwatch/defaults/services/dovecot
libexec/logwatch/defaults/services/dpkg
libexec/logwatch/defaults/services/emerge
libexec/logwatch/defaults/services/evtapplication
libexec/logwatch/defaults/services/evtsecurity
libexec/logwatch/defaults/services/evtsystem
libexec/logwatch/defaults/services/exim
libexec/logwatch/defaults/services/eximstats
libexec/logwatch/defaults/services/extreme-networks
libexec/logwatch/defaults/services/fail2ban
libexec/logwatch/defaults/services/ftpd-messages
libexec/logwatch/defaults/services/ftpd-xferlog
libexec/logwatch/defaults/services/http
libexec/logwatch/defaults/services/identd
libexec/logwatch/defaults/services/imapd
libexec/logwatch/defaults/services/in.qpopper
libexec/logwatch/defaults/services/init
libexec/logwatch/defaults/services/ipop3d
libexec/logwatch/defaults/services/iptables
libexec/logwatch/defaults/services/kernel
libexec/logwatch/defaults/services/mailscanner
libexec/logwatch/defaults/services/modprobe
libexec/logwatch/defaults/services/mountd
libexec/logwatch/defaults/services/named
libexec/logwatch/defaults/services/netopia
libexec/logwatch/defaults/services/netscreen
libexec/logwatch/defaults/services/oidentd
libexec/logwatch/defaults/services/openvpn
libexec/logwatch/defaults/services/pam
libexec/logwatch/defaults/services/pam_pwdb
libexec/logwatch/defaults/services/pam_unix
libexec/logwatch/defaults/services/php
libexec/logwatch/defaults/services/pix
libexec/logwatch/defaults/services/pluto
libexec/logwatch/defaults/services/pop3
libexec/logwatch/defaults/services/portsentry
libexec/logwatch/defaults/services/postfix
libexec/logwatch/defaults/services/pound
libexec/logwatch/defaults/services/proftpd-messages
libexec/logwatch/defaults/services/pureftpd
libexec/logwatch/defaults/services/qmail
libexec/logwatch/defaults/services/qmail-pop3d
libexec/logwatch/defaults/services/qmail-pop3ds
libexec/logwatch/defaults/services/qmail-send
libexec/logwatch/defaults/services/qmail-smtpd
libexec/logwatch/defaults/services/raid
libexec/logwatch/defaults/services/resolver
libexec/logwatch/defaults/services/rt314
libexec/logwatch/defaults/services/samba
libexec/logwatch/defaults/services/saslauthd
libexec/logwatch/defaults/services/scsi
libexec/logwatch/defaults/services/secure
libexec/logwatch/defaults/services/sendmail
libexec/logwatch/defaults/services/sendmail-largeboxes
libexec/logwatch/defaults/services/shaperd
libexec/logwatch/defaults/services/slon
libexec/logwatch/defaults/services/smartd
libexec/logwatch/defaults/services/sonicwall
libexec/logwatch/defaults/services/sshd
libexec/logwatch/defaults/services/sshd2
libexec/logwatch/defaults/services/stunnel
libexec/logwatch/defaults/services/sudo
libexec/logwatch/defaults/services/syslogd
libexec/logwatch/defaults/services/tac_acc
libexec/logwatch/defaults/services/up2date
libexec/logwatch/defaults/services/vpopmail
libexec/logwatch/defaults/services/vsftpd
libexec/logwatch/defaults/services/windows
libexec/logwatch/defaults/services/xntpd
libexec/logwatch/defaults/services/yum
libexec/logwatch/defaults/services/zz-disk_space
libexec/logwatch/defaults/services/zz-fortune
libexec/logwatch/defaults/services/zz-network
libexec/logwatch/defaults/services/zz-runtime
libexec/logwatch/defaults/services/zz-sys
libexec/logwatch/defaults/shared/applybinddate
libexec/logwatch/defaults/shared/applyeurodate
libexec/logwatch/defaults/shared/applyhttpdate
libexec/logwatch/defaults/shared/applystddate
libexec/logwatch/defaults/shared/applytaidate
libexec/logwatch/defaults/shared/applyusdate
libexec/logwatch/defaults/shared/eventlogonlyservice
libexec/logwatch/defaults/shared/eventlogremoveservice
libexec/logwatch/defaults/shared/expandrepeats
libexec/logwatch/defaults/shared/hosthash
libexec/logwatch/defaults/shared/hostlist
libexec/logwatch/defaults/shared/multiservice
libexec/logwatch/defaults/shared/onlycontains
libexec/logwatch/defaults/shared/onlyhost
libexec/logwatch/defaults/shared/onlyservice
libexec/logwatch/defaults/shared/remove
libexec/logwatch/defaults/shared/removeheaders
libexec/logwatch/defaults/shared/removeservice
sbin/logwatch.pl
@exec mkdir -p %D/var/logwatch
@dirrm var/logwatch
@dirrm libexec/logwatch/defaults/shared
@dirrm libexec/logwatch/defaults/services
@dirrm libexec/logwatch/defaults/logfiles/yum
@dirrm libexec/logwatch/defaults/logfiles/xferlog
@dirrm libexec/logwatch/defaults/logfiles/up2date
@dirrm libexec/logwatch/defaults/logfiles/samba
@dirrm libexec/logwatch/defaults/logfiles/emerge
@dirrm libexec/logwatch/defaults/logfiles/cron
@dirrm libexec/logwatch/defaults/logfiles/autorpm
@dirrm libexec/logwatch/defaults/logfiles
@dirrm libexec/logwatch/defaults
@dirrm libexec/logwatch
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm etc/logwatch/defaults/services
@dirrm etc/logwatch/defaults/logfiles
@dirrm etc/logwatch/defaults/html
@dirrm etc/logwatch/defaults
@exec mkdir -p %D/etc/logwatch/services
@exec mkdir -p %D/etc/logwatch/logfiles
@exec mkdir -p %D/etc/logwatch/html
@dirrmtry etc/logwatch/services
@dirrmtry etc/logwatch/logfiles
@dirrmtry etc/logwatch/html
@dirrmtry etc/logwatch