From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Apr 13 01:10:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D0BE106566C for ; Mon, 13 Apr 2009 01:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 261D18FC18 for ; Mon, 13 Apr 2009 01:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3D1A3Ov027536 for ; Mon, 13 Apr 2009 01:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3D1A3ah027535; Mon, 13 Apr 2009 01:10:03 GMT (envelope-from gnats) Resent-Date: Mon, 13 Apr 2009 01:10:03 GMT Resent-Message-Id: <200904130110.n3D1A3ah027535@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Philip M. Gollucci" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C1491065674 for ; Mon, 13 Apr 2009 01:02:24 +0000 (UTC) (envelope-from pgollucci@mail.bluecottontech.com) Received: from mail.bluecottontech.com (static-76-161-175-34.dsl.cavtel.net [76.161.175.34]) by mx1.freebsd.org (Postfix) with ESMTP id 45F528FC1B for ; Mon, 13 Apr 2009 01:02:23 +0000 (UTC) (envelope-from pgollucci@mail.bluecottontech.com) Received: from mail.bluecottontech.com (localhost [127.0.0.1]) by mail.bluecottontech.com (8.14.3/8.14.3) with ESMTP id n3D12N8J089606; Mon, 13 Apr 2009 01:02:23 GMT (envelope-from pgollucci@mail.bluecottontech.com) Received: (from pgollucci@localhost) by mail.bluecottontech.com (8.14.3/8.14.3/Submit) id n3D12H0P089605; Mon, 13 Apr 2009 01:02:17 GMT (envelope-from pgollucci) Message-Id: <200904130102.n3D12H0P089605@mail.bluecottontech.com> Date: Mon, 13 Apr 2009 01:02:17 GMT From: "Philip M. Gollucci" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: j.koopmann@seceidos.de Subject: ports/133675: [PATCH] mail/mailscanner-mrtg: apache@ cleanups X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2009 01:10:04 -0000 >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 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: - - - ServerAdmin yourname@yourcompany.com - DocumentRoot %%WWWBASE%%/mailscanner-mrtg - Alias /mailscanner-mrtg "%%WWWBASE%%/mailscanner-mrtg/" - - - - 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: + + + ServerAdmin yourname@yourcompany.com + DocumentRoot %%WWWBASE%%/mailscanner-mrtg + Alias /mailscanner-mrtg "%%WWWBASE%%/mailscanner-mrtg/" + + + + 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: