FreeBSD Bugzilla – Attachment 80892 Details for
Bug 115938
[NEW PORT] mail/ovs: A RRDtool frontend for mail statistics
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
ovs-1.00.shar
ovs-1.00.shar (text/plain), 5.34 KB, created by
Xavier Beaudouin
on 2007-08-30 08:20:01 UTC
(
hide
)
Description:
ovs-1.00.shar
Filename:
MIME Type:
Creator:
Xavier Beaudouin
Created:
2007-08-30 08:20:01 UTC
Size:
5.34 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># ovs ># ovs/files ># ovs/files/patch-ovs.cgi ># ovs/files/ovs.sh.in ># ovs/distinfo ># ovs/pkg-descr ># ovs/pkg-message ># ovs/pkg-plist ># ovs/Makefile ># >echo c - ovs >mkdir -p ovs > /dev/null 2>&1 >echo c - ovs/files >mkdir -p ovs/files > /dev/null 2>&1 >echo x - ovs/files/patch-ovs.cgi >sed 's/^X//' >ovs/files/patch-ovs.cgi << 'END-of-ovs/files/patch-ovs.cgi' >X--- ovs.cgi.old Sun Aug 26 23:55:10 2007 >X+++ ovs.cgi Sun Aug 26 23:56:44 2007 >X@@ -25,9 +25,9 @@ >X my $points_per_sample = 3; >X my $ypoints = 160; >X my $ypoints_err = 260; >X-my $rrd = 'ovs.rrd'; # path to where the RRD database is >X-my $rrd_virus = 'ovs_virus.rrd'; # path to where the Virus RRD database is >X-my $rrd_pop = 'ovs_pop.rrd'; # path to where the Virus RRD database is >X+my $rrd = '%%DATADIR%%/ovs.rrd'; # path to where the RRD database is >X+my $rrd_virus = '%%DATADIR%%/ovs_virus.rrd'; # path to where the Virus RRD database is >X+my $rrd_pop = '%%DATADIR%%/ovs_pop.rrd'; # path to where the Virus RRD database is >X my $tmp_dir = '/tmp/ovs'; # temporary directory where to store the images >X >X my @graphs = ( >END-of-ovs/files/patch-ovs.cgi >echo x - ovs/files/ovs.sh.in >sed 's/^X//' >ovs/files/ovs.sh.in << 'END-of-ovs/files/ovs.sh.in' >X#!/bin/sh >X# >X# $FreeBSD$ >X# >X# PROVIDE: ovs >X# REQUIRE: DAEMON >X# >X# Add the following line to /etc/rc.conf to enable OpenVISP Stats: >X# >X# ovs_enable="YES" >X# >X >X. %%RC_SUBR%% >X >Xname=ovs >Xrcvar=`set_rcvar` >X >Xcommand=%%PREFIX%%/sbin/ovs.pl > /dev/null 2>&1 >Xcommand_interpreter=/usr/bin/perl >Xstop_postcmd=stop_postcmd >X >Xstop_postcmd() >X{ >X rm -f $pidfile >X} >X >Xovs_enable=${ovs_enable:-"NO"} >Xovs_pidfile=${ovs_pidfile:-"%%DATADIR%%/ovs.pid"} >Xovs_flags=${ovs_flags:-"--logfile /var/log/maillog --daemon-rrd=%%DATADIR%% --ignore-localhost --daemon --daemon-pid=${ovs_pidfile} --rbl-is-spam --greylist --helo --spf --domain-not-found"} >Xovs_user=${ovs_user:-"%%OVS_USER%%"} >Xovs_group=${ovs_group:-"%%OVS_GROUP%%"} >Xovs_chdir=${ovs_chdir:-"%%DATADIR%%"} >X >Xload_rc_config $name >X >Xpidfile=${ovs_pidfile} >X >Xrun_rc_command "$1" >END-of-ovs/files/ovs.sh.in >echo x - ovs/distinfo >sed 's/^X//' >ovs/distinfo << 'END-of-ovs/distinfo' >XMD5 (ovs-1.00.tar.gz) = b442036010df9710e330d5d5d4822698 >XSHA256 (ovs-1.00.tar.gz) = f80ceeef0c3c3076e70f2930ab6aaf41c2d51967046704cf76acffb738d125fc >XSIZE (ovs-1.00.tar.gz) = 24253 >END-of-ovs/distinfo >echo x - ovs/pkg-descr >sed 's/^X//' >ovs/pkg-descr << 'END-of-ovs/pkg-descr' >XOpenVISP Stats is a very simple mail statistics RRDtool frontend for mail >Xstatistics that produces daily, weekly, monthly and yearly graphs of >Xreceived/sent, bounces/rejected, spam mails, viruses, ... and pop/imap >Xstatistics. >X >XWWW: http://openvisp.fr/ >END-of-ovs/pkg-descr >echo x - ovs/pkg-message >sed 's/^X//' >ovs/pkg-message << 'END-of-ovs/pkg-message' >XEdit /etc/rc.conf and set >X >X ovs_enable="YES" >X >Xto enable OpenVISP Stats. >X >XMake sure this script should be invoked with privilege to read >X/var/log/maillog. For example, you may change the permission of >Xmaillog to be 644. Another way is to make maillog owned by >Xthe mail group, and put mailgraph_user in that group. >X >END-of-ovs/pkg-message >echo x - ovs/pkg-plist >sed 's/^X//' >ovs/pkg-plist << 'END-of-ovs/pkg-plist' >Xwww/cgi-bin/ovs.cgi >Xsbin/ovs.pl >X@dirrmtry www/cgi-bin >END-of-ovs/pkg-plist >echo x - ovs/Makefile >sed 's/^X//' >ovs/Makefile << 'END-of-ovs/Makefile' >X# New ports collection makefile for: ovs >X# Date created: 26 August 2007 >X# Whom: Xavier Beaudouin <kiwi@oav.net> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= ovs >XPORTVERSION= 1.00 >XCATEGORIES= mail >XMASTER_SITES= ftp://ftp.oav.net/openvisp/stats/ >XDISTNAME= ovs-${PORTVERSION} >X >XMAINTAINER= kiwi@oav.net >XCOMMENT= A RRDtool frontend for mail statistics >X >XRUN_DEPENDS= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/databases/rrdtool \ >X ${SITE_PERL}/File/Tail.pm:${PORTSDIR}/devel/p5-File-Tail >X >XNO_BUILD= yes >X >XDATADIR?= ${DESTDIR}/var/db/ovs >XOVS_USER?= ${WWWOWN} >XOVS_GROUP?= ${WWWGRP} >X >XUSE_RC_SUBR= ${PORTNAME}.sh >XSUB_LIST+= OVS_USER=${OVS_USER} OVS_GROUP=${OVS_GROUP} >X >XMSG_FILE= ${PKGDIR}/pkg-message >XPKGMESSAGE= ${WRKSRC}/pkg-message >X >XDOCS= README CHANGES COPYING CHANGES.old README.old >X.if !defined(NOPORTDOCS) >XPORTDOCS= ${DOCS} >X.endif >X >Xpre-everything:: >X @${ECHO_MSG} "" >X @${ECHO_MSG} "You may set following options:" >X @${ECHO_MSG} "" >X @${ECHO_MSG} "DATADIR=/var/db/ovs Where do you put RRD databases?" >X @${ECHO_MSG} "OVS_USER=www User to run mailgraph (Default: ${WWWOWN})" >X @${ECHO_MSG} "OVS_GROUP=www Group to run mailgraph (Default: ${WWWGRP})" >X @${ECHO_MSG} "" >X >Xpost-patch: >X @${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/ovs.cgi >X @${SED} 's|%%DATADIR%%|${DATADIR}|g' ${MSG_FILE} > ${PKGMESSAGE} >X >Xdo-install: >X @${MKDIR} ${PREFIX}/www/cgi-bin >X @${MKDIR} ${DATADIR} >X @${CHOWN} -R ${OVS_USER}:${OVS_GROUP} ${DATADIR} >X @${INSTALL_SCRIPT} ${WRKSRC}/ovs.pl ${PREFIX}/sbin >X @${INSTALL_SCRIPT} ${WRKSRC}/ovs.cgi ${PREFIX}/www/cgi-bin >X.if !defined(NOPORTDOCS) >X @${MKDIR} ${DOCSDIR} >X for f in ${DOCS}; do \ >X ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \ >X done >X.endif >X >Xpost-install: >X @${ECHO_MSG} "" >X @${CAT} ${PKGMESSAGE} >X @${ECHO_MSG} "" >X >X.include <bsd.port.mk> >END-of-ovs/Makefile >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 115938
: 80892