pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/mailgraph Add mailgraph 1.10



details:   https://anonhg.NetBSD.org/pkgsrc/rev/999a760efad2
branches:  trunk
changeset: 486681:999a760efad2
user:      kim <kim%pkgsrc.org@localhost>
date:      Fri Dec 31 21:36:59 2004 +0000

description:
Add mailgraph 1.10

Mailgraph is a very simple mail statistics RRDtool frontend for Postfix
and Sendmail that produces daily, weekly, monthly and yearly graphs of
received/sent and bounced/rejected mail.

diffstat:

 mail/mailgraph/DESCR              |   3 +
 mail/mailgraph/Makefile           |  66 +++++++++++++++++++++++++++++++++++++++
 mail/mailgraph/PLIST              |   6 +++
 mail/mailgraph/distinfo           |   4 ++
 mail/mailgraph/files/mailgraph.sh |  19 +++++++++++
 5 files changed, 98 insertions(+), 0 deletions(-)

diffs (118 lines):

diff -r 972fbbed4dce -r 999a760efad2 mail/mailgraph/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mailgraph/DESCR      Fri Dec 31 21:36:59 2004 +0000
@@ -0,0 +1,3 @@
+Mailgraph is a very simple mail statistics RRDtool frontend for Postfix
+and Sendmail that produces daily, weekly, monthly and yearly graphs of
+received/sent and bounced/rejected mail.
diff -r 972fbbed4dce -r 999a760efad2 mail/mailgraph/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mailgraph/Makefile   Fri Dec 31 21:36:59 2004 +0000
@@ -0,0 +1,66 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/12/31 21:36:59 kim Exp $
+#
+
+DISTNAME=      mailgraph-1.10
+CATEGORIES=    mail
+MASTER_SITES=  http://people.ee.ethz.ch/~dws/software/mailgraph/pub/ \
+               http://people.ee.ethz.ch/~dws/software/mailgraph/pub/old/
+
+MAINTAINER=    kim%tac.nyc.ny.us@localhost
+HOMEPAGE=      http://people.ee.ethz.ch/~dws/software/mailgraph/
+COMMENT=       RRDtool frontend for mail statistics
+
+USE_PKGINSTALL=        yes
+USE_PERL5=     yes
+
+DEPENDS+=      rrdtool-1*:../../databases/rrdtool
+DEPENDS+=      p5-File-Tail-[0-9]*:../../misc/p5-File-Tail
+
+USE_BUILDLINK3=        yes
+USE_LANGUAGES= yes
+USE_PERL5=     # defined
+
+.include "../../mk/bsd.prefs.mk"
+
+DBDIR?=                ${VARBASE}/db/${PKGBASE}
+
+MG_SCRIPTS=    mailgraph.cgi mailgraph.pl
+
+REPLACE_PERL=  ${MG_SCRIPTS}
+
+CGIDIR=                libexec/cgi-bin
+DOCDIR=                share/doc/${PKGBASE}
+
+OWN_DIRS+=     ${PREFIX}/${DOCDIR}
+RCD_SCRIPTS=   mailgraph
+
+PLIST_SUBST+=  CGIDIR="${CGIDIR}"
+PLIST_SUBST+=  DOCDIR="${DOCDIR}"
+
+SUBST_CLASSES+=                defs
+
+SUBST_STAGE.defs=      pre-build
+SUBST_FILES.defs=      ${MG_SCRIPTS}
+# Database
+SUBST_SED.defs+=       -e 's,/var/log\([^/]\),${DBDIR}\1,g'
+SUBST_SED.defs+=       -e 's,/var/log$$,${DBDIR},g'
+# Logfile
+SUBST_SED.defs+=       -e 's,/var/log/syslog,${VARBASE}/log/maillog,g'
+#
+SUBST_MESSAGE.defs=    "Fixing defaults"
+
+do-build:
+
+do-configure:
+
+do-install:
+       ${INSTALL_SCRIPT} \
+           ${WRKSRC}/mailgraph.cgi ${PREFIX}/${CGIDIR}/mailgraph.cgi
+       ${INSTALL_SCRIPT} \
+           ${WRKSRC}/mailgraph.pl ${PREFIX}/sbin/mailgraph
+.for i in CHANGES COPYING README
+       ${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/${DOCDIR}/$i
+.endfor
+
+.include "../../lang/perl5/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 972fbbed4dce -r 999a760efad2 mail/mailgraph/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mailgraph/PLIST      Fri Dec 31 21:36:59 2004 +0000
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/12/31 21:36:59 kim Exp $
+sbin/mailgraph
+${CGIDIR}/mailgraph.cgi
+${DOCDIR}/CHANGES
+${DOCDIR}/COPYING
+${DOCDIR}/README
diff -r 972fbbed4dce -r 999a760efad2 mail/mailgraph/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mailgraph/distinfo   Fri Dec 31 21:36:59 2004 +0000
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/12/31 21:36:59 kim Exp $
+
+SHA1 (mailgraph-1.10.tar.gz) = 9c7db8bedf13201a1e17446e415f9d5d7921c17b
+Size (mailgraph-1.10.tar.gz) = 19234 bytes
diff -r 972fbbed4dce -r 999a760efad2 mail/mailgraph/files/mailgraph.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mailgraph/files/mailgraph.sh Fri Dec 31 21:36:59 2004 +0000
@@ -0,0 +1,19 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: mailgraph.sh,v 1.1.1.1 2004/12/31 21:36:59 kim Exp $
+#
+
+# PROVIDE: mailgraph
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="@PKGBASE@"
+rcvar=$name
+pidfile="@VARBASE@/run/${name}.pid"
+command_interpreter="@PERL@"
+command="@PREFIX@/sbin/mailgraph"
+command_args="-d"
+
+load_rc_config $name
+run_rc_command "$1"



Home | Main Index | Thread Index | Old Index