diff --git a/sysutils/logwatch/Makefile b/sysutils/logwatch/Makefile index 93ca0b5e08c2..85c179e0ff3f 100644 --- a/sysutils/logwatch/Makefile +++ b/sysutils/logwatch/Makefile @@ -1,46 +1,47 @@ PORTNAME= logwatch PORTVERSION= 7.5.1 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION} MAINTAINER= trix@basement.net COMMENT= Log file analysis program WWW= https://www.logwatch.org LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= perl5 shebangfix USE_PERL5= run SHEBANG_FILES= scripts/logwatch.pl PORTDOCS= HOWTO-Customize-LogWatch README NO_BUILD= yes NO_ARCH= yes MAKE_ENV+= SITE_PERL_REL=${SITE_PERL_REL} OPTIONS_DEFINE= DOCS 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-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/HOWTO-Customize-LogWatch ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include diff --git a/sysutils/logwatch/files/Makefile b/sysutils/logwatch/files/Makefile index 76afc25e4a57..ddee144aff02 100644 --- a/sysutils/logwatch/files/Makefile +++ b/sysutils/logwatch/files/Makefile @@ -1,222 +1,222 @@ 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 +MANDIR?=${PREFIX}/share/man MAN8DIR?=${MANDIR}/man8 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 $(DESTDIR)${PREFIX}/sbin install -d $(DESTDIR)${ETCDIR}/html install -d $(DESTDIR)${ETCDIR}/logfiles install -d $(DESTDIR)${ETCDIR}/services install -d $(DESTDIR)${ETCDIR}/defaults/html install -d $(DESTDIR)${ETCDIR}/defaults/logfiles install -d $(DESTDIR)${ETCDIR}/defaults/services install -d $(DESTDIR)${LIBEXECDIR} install -d $(DESTDIR)${SITE_PERL} install -d $(DESTDIR)${CACHEDIR} install -d $(DESTDIR)${MAN8DIR} install -m 555 scripts/logwatch.pl $(DESTDIR)${PREFIX}/sbin install -m 555 lib/Logwatch.pm $(DESTDIR)${SITE_PERL} install -m 444 logwatch.8 $(DESTDIR)${MAN8DIR} install -m 644 conf/logwatch.conf $(DESTDIR)${ETCDIR}/defaults install -m 640 conf/ignore.conf $(DESTDIR)${ETCDIR}/defaults install -m 444 conf/html/header.html $(DESTDIR)${ETCDIR}/defaults/html install -m 444 conf/html/footer.html $(DESTDIR)${ETCDIR}/defaults/html .for etcdir in html logfiles services mkdir -p $(DESTDIR)${ETCDIR}/defaults/${etcdir} .endfor .for scriptdir in logfiles services shared mkdir -p $(DESTDIR)${LIBEXECDIR}/defaults/${scriptdir} .endfor .for logfile in \ autorpm \ bfd \ cisco \ clamav \ clam-update \ cron \ daemon \ denyhosts \ dnssec \ dovecot \ dpkg \ emerge \ eventlog \ exim \ extreme-networks \ fail2ban \ http \ http-error \ iptables \ kernel \ maillog \ messages \ mysql \ netopia \ netscreen \ php \ pix \ pureftp \ qmail-pop3d-current \ qmail-pop3ds-current \ qmail-send-current \ qmail-smtpd-current \ resolver \ rsnapshot \ rt314 \ samba \ secure \ sonicwall \ spamassassin \ syslog \ tac_acc \ up2date \ vsftpd \ windows \ xferlog \ yum install -m 640 conf/logfiles/${logfile}.conf $(DESTDIR)${ETCDIR}/defaults/logfiles/${logfile}.conf .endfor .for service in \ afpd \ amavis \ arpwatch \ audit \ automount \ autorpm \ barracuda \ bfd \ cisco \ clam-update \ clamav \ clamav-milter \ courier \ cron \ denyhosts \ dhcpd \ dnssec \ dovecot \ dpkg \ emerge \ evtapplication \ evtsecurity \ evtsystem \ exim \ eximstats \ extreme-networks \ fail2ban \ fetchmail \ ftpd-messages \ ftpd-xferlog \ http \ http-error \ identd \ imapd \ in.qpopper \ init \ ipop3d \ iptables \ kernel \ mailscanner \ modprobe \ mountd \ mysql \ 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 \ rsnapshot \ rt314 \ samba \ saslauthd \ scsi \ secure \ sendmail \ sendmail-largeboxes \ shaperd \ slon \ smartd \ sonicwall \ spamassassin \ sshd \ sshd2 \ stunnel \ sudo \ syslogd \ syslog-ng \ tac_acc \ up2date \ vpopmail \ vsftpd \ windows \ xntpd \ yum \ zz-disk_space \ zz-network \ zz-runtime \ zz-sys \ zz-zfs install -m 444 scripts/services/${service} $(DESTDIR)${LIBEXECDIR}/defaults/services/${service} install -m 444 conf/services/${service}.conf $(DESTDIR)${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} $(DESTDIR)${LIBEXECDIR}/defaults/shared/${script} .endfor .for logfile in autorpm cron emerge samba up2date xferlog yum mkdir -p $(DESTDIR)${LIBEXECDIR}/defaults/logfiles/${logfile} install -m 555 scripts/logfiles/${logfile}/applydate $(DESTDIR)${LIBEXECDIR}/defaults/logfiles/${logfile} .endfor .for logfile in samba up2date xferlog install -m 555 scripts/logfiles/${logfile}/removeheaders $(DESTDIR)${LIBEXECDIR}/defaults/logfiles/${logfile} .endfor diff --git a/sysutils/logwatch/pkg-plist b/sysutils/logwatch/pkg-plist index db21ead8306e..061171ae0e3e 100644 --- a/sysutils/logwatch/pkg-plist +++ b/sysutils/logwatch/pkg-plist @@ -1,281 +1,281 @@ 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/clamav.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/dovecot.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/http-error.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/mysql.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/rsnapshot.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/spamassassin.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/barracuda.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/fetchmail.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/http-error.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/mysql.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/rsnapshot.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/spamassassin.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/syslog-ng.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-network.conf etc/logwatch/defaults/services/zz-runtime.conf etc/logwatch/defaults/services/zz-sys.conf etc/logwatch/defaults/services/zz-zfs.conf etc/logwatch/defaults/ignore.conf etc/logwatch/defaults/logwatch.conf %%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/barracuda 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/fetchmail libexec/logwatch/defaults/services/ftpd-messages libexec/logwatch/defaults/services/ftpd-xferlog libexec/logwatch/defaults/services/http libexec/logwatch/defaults/services/http-error 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/mysql 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/rsnapshot 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/spamassassin 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/syslog-ng 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-network libexec/logwatch/defaults/services/zz-runtime libexec/logwatch/defaults/services/zz-sys libexec/logwatch/defaults/services/zz-zfs 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 -man/man8/logwatch.8.gz +share/man/man8/logwatch.8.gz sbin/logwatch.pl @dir var/logwatch @dir etc/logwatch/services @dir etc/logwatch/logfiles @dir etc/logwatch/html