From 8bf89fab9ec7a00f3cab9a509c2765fd63f0ccf9 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Sun, 6 Nov 2011 12:10:00 +0000 Subject: [PATCH] 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 --- mail/Makefile | 1 + mail/amavis-logwatch/Makefile | 52 ++++++++++++++++++++++++++++++++++ mail/amavis-logwatch/distinfo | 2 ++ mail/amavis-logwatch/pkg-descr | 14 +++++++++ mail/amavis-logwatch/pkg-plist | 5 ++++ 5 files changed, 74 insertions(+) create mode 100644 mail/amavis-logwatch/Makefile create mode 100644 mail/amavis-logwatch/distinfo create mode 100644 mail/amavis-logwatch/pkg-descr create mode 100644 mail/amavis-logwatch/pkg-plist 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 +# +# $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 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