aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorSahil Tandon <sahil@FreeBSD.org>2011-08-23 03:18:46 +0000
committerSahil Tandon <sahil@FreeBSD.org>2011-08-23 03:18:46 +0000
commit693a7f2e5da6847aec50e311d80d7ebb1b9d6545 (patch)
treefafe6df71d2791cc5d1e8c7766b9bf55e886d451 /mail
parent63309d266bc370804245d8e282ef51c36f38a8aa (diff)
Notes
Diffstat (limited to 'mail')
-rw-r--r--mail/Makefile1
-rw-r--r--mail/postfix-logwatch/Makefile52
-rw-r--r--mail/postfix-logwatch/distinfo2
-rw-r--r--mail/postfix-logwatch/pkg-descr14
-rw-r--r--mail/postfix-logwatch/pkg-plist5
5 files changed, 74 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index d9df8387af82..452089ce869f 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -516,6 +516,7 @@
SUBDIR += postfix
SUBDIR += postfix-current
SUBDIR += postfix-gps
+ SUBDIR += postfix-logwatch
SUBDIR += postfix-policyd-sf
SUBDIR += postfix-policyd-spf
SUBDIR += postfix-policyd-spf-perl
diff --git a/mail/postfix-logwatch/Makefile b/mail/postfix-logwatch/Makefile
new file mode 100644
index 000000000000..efead3760b7c
--- /dev/null
+++ b/mail/postfix-logwatch/Makefile
@@ -0,0 +1,52 @@
+# New ports collection makefile for: postfix-logwatch
+# Date created: 2011-08-19
+# Whom: Alexander Moisseev <moiseev@mezonplus.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= postfix-logwatch
+PORTVERSION= 1.39.05
+CATEGORIES= mail
+MASTER_SITES= SF/logreporters/${PORTNAME}/release/${PORTVERSION}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= moiseev@mezonplus.ru
+COMMENT= Postfix MTA log parser
+
+LICENSE= GPLv2
+
+PORTDOCS= Bugs Changes README
+PORTEXAMPLES= ${PORTNAME}.conf ${PORTNAME}.conf-topn
+
+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/postfix-logwatch/distinfo b/mail/postfix-logwatch/distinfo
new file mode 100644
index 000000000000..b96c3bb624c9
--- /dev/null
+++ b/mail/postfix-logwatch/distinfo
@@ -0,0 +1,2 @@
+SHA256 (postfix-logwatch-1.39.05.tgz) = fb545253ce137c32e61c0a5a0c92eacc7785cb2e7973d2bd15562e52b626f96a
+SIZE (postfix-logwatch-1.39.05.tgz) = 99813
diff --git a/mail/postfix-logwatch/pkg-descr b/mail/postfix-logwatch/pkg-descr
new file mode 100644
index 000000000000..1974be015d0d
--- /dev/null
+++ b/mail/postfix-logwatch/pkg-descr
@@ -0,0 +1,14 @@
+The postfix-logwatch(1) utility is a Postfix MTA log parser
+that produces summaries, details, and statistics regarding
+the operation of Postfix.
+
+A key feature of postfix-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 Postfix
+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/postfix-logwatch/pkg-plist b/mail/postfix-logwatch/pkg-plist
new file mode 100644
index 000000000000..be3df4da16a1
--- /dev/null
+++ b/mail/postfix-logwatch/pkg-plist
@@ -0,0 +1,5 @@
+@unexec if cmp -s %D/%%ETCDIR%%/postfix-logwatch.conf.sample %D/%%ETCDIR%%/postfix-logwatch.conf; then rm -f %D/%%ETCDIR%%/postfix-logwatch.conf; fi
+%%ETCDIR%%/postfix-logwatch.conf.sample
+@exec if [ ! -f %B/postfix-logwatch.conf ] ; then cp -p %B/%f %B/postfix-logwatch.conf; fi
+@dirrmtry %%ETCDIR%%
+bin/postfix-logwatch