summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2004-12-31 21:36:59 +0000
committerkim <kim@pkgsrc.org>2004-12-31 21:36:59 +0000
commitd2874bb092dde124da94c768f30d1969fa7b997f (patch)
treeeaabac9eeb80b83b931b86702f48d5203ec36c96 /mail
parent7a628dd25c81534eb8a0d50b481052acd06589c9 (diff)
downloadpkgsrc-d2874bb092dde124da94c768f30d1969fa7b997f.tar.gz
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 (limited to 'mail')
-rw-r--r--mail/mailgraph/DESCR3
-rw-r--r--mail/mailgraph/Makefile66
-rw-r--r--mail/mailgraph/PLIST6
-rw-r--r--mail/mailgraph/distinfo4
-rw-r--r--mail/mailgraph/files/mailgraph.sh19
5 files changed, 98 insertions, 0 deletions
diff --git a/mail/mailgraph/DESCR b/mail/mailgraph/DESCR
new file mode 100644
index 00000000000..20956b12aab
--- /dev/null
+++ b/mail/mailgraph/DESCR
@@ -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 --git a/mail/mailgraph/Makefile b/mail/mailgraph/Makefile
new file mode 100644
index 00000000000..30794527187
--- /dev/null
+++ b/mail/mailgraph/Makefile
@@ -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
+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 --git a/mail/mailgraph/PLIST b/mail/mailgraph/PLIST
new file mode 100644
index 00000000000..8ac5d54a8fa
--- /dev/null
+++ b/mail/mailgraph/PLIST
@@ -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 --git a/mail/mailgraph/distinfo b/mail/mailgraph/distinfo
new file mode 100644
index 00000000000..d7dd596d2cb
--- /dev/null
+++ b/mail/mailgraph/distinfo
@@ -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 --git a/mail/mailgraph/files/mailgraph.sh b/mail/mailgraph/files/mailgraph.sh
new file mode 100644
index 00000000000..74c2b3215c7
--- /dev/null
+++ b/mail/mailgraph/files/mailgraph.sh
@@ -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"