diff options
author | ale <ale@FreeBSD.org> | 2004-06-16 21:42:44 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2004-06-16 21:42:44 +0800 |
commit | 3cd8c891ceeb2f7f50304835b6e5cec043501d2e (patch) | |
tree | e492e3db8c9baddc0c1af7365206b907b236ce18 /mail | |
parent | e1db1998382860367b59eeb016d0f03110d77ba5 (diff) | |
download | freebsd-ports-gnome-3cd8c891ceeb2f7f50304835b6e5cec043501d2e.tar.gz freebsd-ports-gnome-3cd8c891ceeb2f7f50304835b6e5cec043501d2e.tar.zst freebsd-ports-gnome-3cd8c891ceeb2f7f50304835b6e5cec043501d2e.zip |
Add qmailmrtg7 4.0, a program to create mrtg graphs for qmail activity.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/qmailmrtg7/Makefile | 46 | ||||
-rw-r--r-- | mail/qmailmrtg7/distinfo | 2 | ||||
-rw-r--r-- | mail/qmailmrtg7/pkg-descr | 12 | ||||
-rw-r--r-- | mail/qmailmrtg7/pkg-plist | 7 |
5 files changed, 68 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index 9925ecba8fbf..02b1403a102f 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -338,6 +338,7 @@ SUBDIR += qmailadmin SUBDIR += qmailadmin-devel SUBDIR += qmailanalog + SUBDIR += qmailmrtg7 SUBDIR += qpopper SUBDIR += qscan SUBDIR += qsf diff --git a/mail/qmailmrtg7/Makefile b/mail/qmailmrtg7/Makefile new file mode 100644 index 000000000000..5930dfdf2d54 --- /dev/null +++ b/mail/qmailmrtg7/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: qmailmrtg7 +# Date created: 16 Jun 2004 +# Whom: Alex Dupre <ale@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= qmailmrtg7 +PORTVERSION= 4.0 +CATEGORIES= mail net-mgmt +MASTER_SITES= http://www.inter7.com/qmailmrtg7/ + +MAINTAINER= ale@FreeBSD.org +COMMENT= A program to create mrtg graphs for qmail activity + +BUILD_DEPENDS= ${QMAIL_DIR}/bin/qmail-queue:${PORTSDIR}/mail/qmail +RUN_DEPENDS= ${QMAIL_DIR}/bin/qmail-queue:${PORTSDIR}/mail/qmail \ + mrtg:${PORTSDIR}/net-mgmt/mrtg + +USE_REINPLACE= yes + +.include <bsd.port.pre.mk> + +.if exists(${LOCALBASE}/qmail/bin/qmail-queue) +QMAIL_DIR?= ${LOCALBASE}/qmail +.else +QMAIL_DIR?= /var/qmail +.endif + +post-patch: + @${REINPLACE_CMD} "s|cc|${CC}|g;s|-s -O|${CFLAGS}|g" ${WRKSRC}/Makefile + @${REINPLACE_CMD} "s|/usr/local|${PREFIX}|g;s|/var/qmail|${QMAIL_DIR}|g" \ + ${WRKSRC}/checkq.c ${WRKSRC}/qmail.mrtg.cfg + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/qmailmrtg7 ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/qmail.mrtg.cfg ${PREFIX}/etc/qmail.mrtg.cfg.sample + ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/index.html ${EXAMPLESDIR} +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/FAQ ${DOCSDIR} +.endif + +.include <bsd.port.post.mk> diff --git a/mail/qmailmrtg7/distinfo b/mail/qmailmrtg7/distinfo new file mode 100644 index 000000000000..7e3d2c754bab --- /dev/null +++ b/mail/qmailmrtg7/distinfo @@ -0,0 +1,2 @@ +MD5 (qmailmrtg7-4.0.tar.gz) = a8f576362e461b8618be435d4117bf33 +SIZE (qmailmrtg7-4.0.tar.gz) = 9168 diff --git a/mail/qmailmrtg7/pkg-descr b/mail/qmailmrtg7/pkg-descr new file mode 100644 index 000000000000..6c8c75762e28 --- /dev/null +++ b/mail/qmailmrtg7/pkg-descr @@ -0,0 +1,12 @@ +qmailmrtg7 utilizes qmail and tcpserver/multilog's +extensive logging capabilities to create mrtg graphs. +It efficiently processes the logs (large sites with +historical logs of over 100MB can be processed in a few seconds). + +For qmail it graphs remote/local delivery concurrency, +queue size, messages process, bytes transferred, +and success/failure delivery status. +For POP and SMTP it graphs total connections and concurrency. + +- Alex Dupre +ale@FreeBSD.org diff --git a/mail/qmailmrtg7/pkg-plist b/mail/qmailmrtg7/pkg-plist new file mode 100644 index 000000000000..8b5f8aaabcec --- /dev/null +++ b/mail/qmailmrtg7/pkg-plist @@ -0,0 +1,7 @@ +bin/qmailmrtg7 +etc/qmail.mrtg.cfg.sample +%%EXAMPLESDIR%%/index.html +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/FAQ +@dirrm %%EXAMPLESDIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% |