Date: Mon, 13 Apr 2009 01:02:17 GMT From: "Philip M. Gollucci" <pgollucci@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: j.koopmann@seceidos.de Subject: ports/133675: [PATCH] mail/mailscanner-mrtg: apache@ cleanups Message-ID: <200904130102.n3D12H0P089605@mail.bluecottontech.com> Resent-Message-ID: <200904130110.n3D1A3ah027535@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 133675 >Category: ports >Synopsis: [PATCH] mail/mailscanner-mrtg: apache@ cleanups >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Apr 13 01:10:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Philip M. Gollucci >Release: FreeBSD 7.1-RELEASE-p3 amd64 >Organization: RideCharge Inc. >Environment: System: FreeBSD mail.bluecottontech.com 7.1-RELEASE-p3 FreeBSD 7.1-RELEASE-p3 #1: Tue Mar 10 22:10:18 UTC 2009 >Description: - USE_APACHE=yes is deprecated - Use SF macro - Use SUB_FILES for pkg-message Added file(s): - files/pkg-message.in Removed file(s): - pkg-message Port maintainer (j.koopmann@seceidos.de) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- mailscanner-mrtg-0.11.00_3.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/mail/mailscanner-mrtg/Makefile,v retrieving revision 1.6 diff -u -u -r1.6 Makefile --- Makefile 6 Jun 2008 13:42:55 -0000 1.6 +++ Makefile 13 Apr 2009 01:01:40 -0000 @@ -9,9 +9,9 @@ PORTVERSION= 0.11.00 PORTREVISION= 3 CATEGORIES= mail -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= mailscannermrtg -DISTNAME= mailscanner-mrtg-${PORTVERSION} +MASTER_SITES= SF +MASTER_SITE_SUBDIR= ${PORTNAME:S/-//} +DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= j.koopmann@seceidos.de COMMENT= Allows mrtg to monitor many aspects of your MailScanner machine @@ -20,7 +20,7 @@ ${LOCALBASE}/lib/MailScanner/MailScanner.pm:${PORTSDIR}/mail/mailscanner USE_PERL5= yes -USE_APACHE= yes +USE_APACHE= 1.3 PKGMESSAGE= ${WRKDIR}/pkg-message @@ -34,6 +34,8 @@ mailscanner-mrtg.cfg ETCFILES= ${WWWFILES} +SUB_FILES+= pkg-message + do-build: .for FILE in ${WWWFILES} ${PERL} -pi -e \ @@ -94,13 +96,6 @@ # # Step 6: Show further instructions # - @${PERL} -pi -e \ - 's,%%PREFIX%%,${PREFIX},g; \ - s,%%LOCALBASE%%,${LOCALBASE},g; \ - s,%%WWWBASE%%,${WWWBASE},g; \ - s,%%PORTSDIR%%,${PORTSDIR},g;' \ - < pkg-message > ${PKGMESSAGE} - @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> Index: pkg-message =================================================================== RCS file: pkg-message diff -N pkg-message --- pkg-message 22 Feb 2006 10:28:26 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,38 +0,0 @@ -************************************************************************* - _ _____ _____ _____ _ _ _____ ___ ___ _ _ - / \|_ _|_ _| ____| \ | |_ _|_ _/ _ \| \ | | - / _ \ | | | | | _| | \| | | | | | | | | \| | - / ___ \| | | | | |___| |\ | | | | | |_| | |\ | - /_/ \_\_| |_| |_____|_| \_| |_| |___\___/|_| \_| - - - Please proceed with the installation by following these steps: - - 1. Please create/adjust the configuration file - - %%PREFIX%%/etc/mailscanner-mrtg/mailscanner-mrtg.conf - - - 2. mailscanner-mrtg will run without snmpd but in order to - see all statistics you should install the net-snmp - daemon located at %%PORTSDIR%%/net-mgmt/net-snmp - - 3. Moreover make sure your crontab calls mailscanner-mrtg every - five Minutes: - - 0-59/5 * * * * root %%LOCALBASE%%/bin/mrtg %%PREFIX%%/etc/mailscanner-mrtg/mailscanner-mrtg.cfg - - 4. Configure your Apache server to correctly show the mailscanner-mrtg pages. E.g: - - <VirtualHost *:80> - ServerAdmin yourname@yourcompany.com - DocumentRoot %%WWWBASE%%/mailscanner-mrtg - Alias /mailscanner-mrtg "%%WWWBASE%%/mailscanner-mrtg/" - </VirtualHost> - - - File locations: - mailscanner-mrtg configuration --> %%PREFIX%%/etc/mailscanner-mrtg - HTML files --> %%WWWBASE%%/mailscanner-mrtg - -************************************************************************* Index: files/pkg-message.in =================================================================== RCS file: files/pkg-message.in diff -N files/pkg-message.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/pkg-message.in 13 Apr 2009 01:01:40 -0000 @@ -0,0 +1,38 @@ +************************************************************************* + _ _____ _____ _____ _ _ _____ ___ ___ _ _ + / \|_ _|_ _| ____| \ | |_ _|_ _/ _ \| \ | | + / _ \ | | | | | _| | \| | | | | | | | | \| | + / ___ \| | | | | |___| |\ | | | | | |_| | |\ | + /_/ \_\_| |_| |_____|_| \_| |_| |___\___/|_| \_| + + + Please proceed with the installation by following these steps: + + 1. Please create/adjust the configuration file + + %%PREFIX%%/etc/mailscanner-mrtg/mailscanner-mrtg.conf + + + 2. mailscanner-mrtg will run without snmpd but in order to + see all statistics you should install the net-snmp + daemon located at %%PORTSDIR%%/net-mgmt/net-snmp + + 3. Moreover make sure your crontab calls mailscanner-mrtg every + five Minutes: + + 0-59/5 * * * * root %%LOCALBASE%%/bin/mrtg %%PREFIX%%/etc/mailscanner-mrtg/mailscanner-mrtg.cfg + + 4. Configure your Apache server to correctly show the mailscanner-mrtg pages. E.g: + + <VirtualHost *:80> + ServerAdmin yourname@yourcompany.com + DocumentRoot %%WWWBASE%%/mailscanner-mrtg + Alias /mailscanner-mrtg "%%WWWBASE%%/mailscanner-mrtg/" + </VirtualHost> + + + File locations: + mailscanner-mrtg configuration --> %%PREFIX%%/etc/mailscanner-mrtg + HTML files --> %%WWWBASE%%/mailscanner-mrtg + +************************************************************************* --- mailscanner-mrtg-0.11.00_3.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904130102.n3D12H0P089605>