diff options
author | miwi <miwi@FreeBSD.org> | 2011-11-06 20:10:00 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2011-11-06 20:10:00 +0800 |
commit | fcbef2335c825c1b534df2a2ca4cea659f94dd33 (patch) | |
tree | ac7d2cd0cb5343b8520c4e216641cd9cc129eec2 /mail | |
parent | 470fdcde33941c1787e77f02f997e3dec02d3a6b (diff) | |
download | freebsd-ports-gnome-fcbef2335c825c1b534df2a2ca4cea659f94dd33.tar.gz freebsd-ports-gnome-fcbef2335c825c1b534df2a2ca4cea659f94dd33.tar.zst freebsd-ports-gnome-fcbef2335c825c1b534df2a2ca4cea659f94dd33.zip |
The amavis-logwatch(1) utility is an Amavisd-new log parser
that produces summaries, details, and statistics regarding
the operation of Amavisd-new (henceforth, simply called Amavis).
A key feature of amavis-logwatch is its ability to produce
a very wide range of reports with data grouped and sorted as
much as possible to reduce noise and highlight patterns. Brief
summary reports provide a quick overview of general Amavis
operations and message delivery, calling out warnings that
may require attention. Detailed reports provide easy to scan,
hierarchically-arranged and organized information, with as
much or little detail as desired.
WWW: http://logreporters.sourceforge.net/
PR: ports/162223
Submitted by: Masaki TAGAWA <masaki@club.kyutech.ac.jp>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/amavis-logwatch/Makefile | 52 | ||||
-rw-r--r-- | mail/amavis-logwatch/distinfo | 2 | ||||
-rw-r--r-- | mail/amavis-logwatch/pkg-descr | 14 | ||||
-rw-r--r-- | mail/amavis-logwatch/pkg-plist | 5 |
5 files changed, 74 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index e1becb3d1467..0b299bf57a3c 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -11,6 +11,7 @@ SUBDIR += alpine SUBDIR += altermime SUBDIR += althea + SUBDIR += amavis-logwatch SUBDIR += annoyance-filter SUBDIR += anomy-sanitizer SUBDIR += antivirus-milter diff --git a/mail/amavis-logwatch/Makefile b/mail/amavis-logwatch/Makefile new file mode 100644 index 000000000000..bb8a07dfce0e --- /dev/null +++ b/mail/amavis-logwatch/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: amavis-logwatch +# Date created: 2011-11-01 +# Whom: Masaki TAGAWA <masaki@club.kyutech.ac.jp> +# +# $FreeBSD$ +# + +PORTNAME= amavis-logwatch +PORTVERSION= 1.50.04 +CATEGORIES= mail +MASTER_SITES= SF/logreporters/${PORTNAME}/release/${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= masaki@club.kyutech.ac.jp +COMMENT= Amavisd-new log parser + +LICENSE= GPLv2 + +PORTDOCS= Bugs Changes README +PORTEXAMPLES= ${PORTNAME}.conf + +MAN1= ${PORTNAME}.1 + +USE_PERL5_RUN= yes +NO_BUILD= yes + +post-patch: + @cd ${WRKSRC} && ${REINPLACE_CMD} -e '\ + s!/usr/local/etc!${ETCDIR}! \ + ' ${PORTNAME} ${PORTNAME}.1 README + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1 + @${CP} ${WRKSRC}/${PORTNAME}.conf ${WRKSRC}/${PORTNAME}.conf.sample + @${MKDIR} ${ETCDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${ETCDIR} + +post-install: + @if [ ! -f ${ETCDIR}/${PORTNAME}.conf ]; then \ + ${CP} -p ${ETCDIR}/${PORTNAME}.conf.sample ${ETCDIR}/${PORTNAME}.conf; \ + fi +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${DOCSDIR} +.endif +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR} +.endif + +.include <bsd.port.mk> diff --git a/mail/amavis-logwatch/distinfo b/mail/amavis-logwatch/distinfo new file mode 100644 index 000000000000..5b789bdcbc6c --- /dev/null +++ b/mail/amavis-logwatch/distinfo @@ -0,0 +1,2 @@ +SHA256 (amavis-logwatch-1.50.04.tgz) = b7807dbc715152373207e1f15be72b1ea1fc392ab4e9d135c59e98e5c6ed5a08 +SIZE (amavis-logwatch-1.50.04.tgz) = 82384 diff --git a/mail/amavis-logwatch/pkg-descr b/mail/amavis-logwatch/pkg-descr new file mode 100644 index 000000000000..cd569b24aa4a --- /dev/null +++ b/mail/amavis-logwatch/pkg-descr @@ -0,0 +1,14 @@ +The amavis-logwatch(1) utility is an Amavisd-new log parser +that produces summaries, details, and statistics regarding +the operation of Amavisd-new (henceforth, simply called Amavis). + +A key feature of amavis-logwatch is its ability to produce +a very wide range of reports with data grouped and sorted as +much as possible to reduce noise and highlight patterns. Brief +summary reports provide a quick overview of general Amavis +operations and message delivery, calling out warnings that +may require attention. Detailed reports provide easy to scan, +hierarchically-arranged and organized information, with as +much or little detail as desired. + +WWW: http://logreporters.sourceforge.net/ diff --git a/mail/amavis-logwatch/pkg-plist b/mail/amavis-logwatch/pkg-plist new file mode 100644 index 000000000000..4b055a90204b --- /dev/null +++ b/mail/amavis-logwatch/pkg-plist @@ -0,0 +1,5 @@ +@unexec if cmp -s %D/%%ETCDIR%%/amavis-logwatch.conf.sample %D/%%ETCDIR%%/amavis-logwatch.conf; then rm -f %D/%%ETCDIR%%/amavis-logwatch.conf; fi +%%ETCDIR%%/amavis-logwatch.conf.sample +@exec if [ ! -f %B/amavis-logwatch.conf ] ; then cp -p %B/%f %B/amavis-logwatch.conf; fi +@dirrmtry %%ETCDIR%% +bin/amavis-logwatch |