From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Dec 3 13:10:20 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50C3616A4CE for ; Fri, 3 Dec 2004 13:10:20 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F6C143D4C for ; Fri, 3 Dec 2004 13:10:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB3DAKUQ082432 for ; Fri, 3 Dec 2004 13:10:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB3DAKOC082429; Fri, 3 Dec 2004 13:10:20 GMT (envelope-from gnats) Resent-Date: Fri, 3 Dec 2004 13:10:20 GMT Resent-Message-Id: <200412031310.iB3DAKOC082429@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, Mij Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47D7A16A507 for ; Fri, 3 Dec 2004 13:02:06 +0000 (GMT) Received: from heroin.publicshout.org (heroin.publicshout.org [81.208.58.150]) by mx1.FreeBSD.org (Postfix) with SMTP id 7623A43D46 for ; Fri, 3 Dec 2004 13:02:05 +0000 (GMT) (envelope-from michele@heroin.publicshout.org) Received: (qmail 72921 invoked by uid 1001); 3 Dec 2004 13:02:04 -0000 Message-Id: <20041203130204.72920.qmail@heroin.publicshout.org> Date: 3 Dec 2004 13:02:04 -0000 From: Mij To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/74649: [maintainer update] [patch] fixes mail/qmrtg (BROKEN) problem while making package X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2004 13:10:20 -0000 >Number: 74649 >Category: ports >Synopsis: [maintainer update] [patch] fixes mail/qmrtg (BROKEN) problem while making package >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Dec 03 13:10:19 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Mij >Release: FreeBSD 5.3-STABLE i386 >Organization: none >Environment: System: FreeBSD heroin 5.3-STABLE >Description: mail/qmrtg port presents a path misbehaviour while installing as package, resulting from a bad variable expansion. >How-To-Repeat: cd /usr/ports/mail/qmrtg && make package >Fix: This patch fixes a wrong behaviour on paths while installing as package --- qmrtg-0.5.7.diff begins here --- diff -ruN qmrtg.bak/Makefile qmrtg/Makefile --- qmrtg.bak/Makefile Sat Nov 13 03:31:01 2004 +++ qmrtg/Makefile Mon Nov 15 13:41:19 2004 @@ -7,14 +7,13 @@ PORTNAME= qmrtg PORTVERSION= 0.5.7 +PORTREVISION= 1 CATEGORIES= mail net-mgmt MASTER_SITES= http://dev.publicshout.org/qmrtg/download/ MAINTAINER= mij@bitchx.it COMMENT= A simple tool for monitoring and graphing qmail activity through MRTG -BROKEN= "Creates the /nonexistent directory" - RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2 \ mrtg:${PORTSDIR}/net-mgmt/mrtg @@ -23,7 +22,9 @@ # this is the local apache documentroot WWWROOTDIR?= ${PREFIX}/www/data -QMRTG_DBDIR?= ${PORT_DBDIR}/../${PORTNAME} +QMRTG_DBDIR?= /var/db/${PORTNAME} + +PLIST_SUB= QMRTG_DBDIR=${QMRTG_DBDIR} post-install: # in_stall manpages diff -ruN qmrtg.bak/pkg-message qmrtg/pkg-message --- qmrtg.bak/pkg-message Mon Jun 28 12:29:09 2004 +++ qmrtg/pkg-message Mon Nov 15 13:41:19 2004 @@ -11,12 +11,12 @@ you must at least set the 'WorkDir:' variable and qmail log paths (search for '/var/log/supervise/qmail' and adapt to your system) b) configure qmrtg.conf. Defaults are fine generally. At least copy -${PREFIX}/qmrtg.conf.sample to "qmrtg.conf". +${PREFIX}/etc/qmrtg.conf.sample to "qmrtg.conf". c) make mrtg run automatically. Using cron, put that in "/etc/crontab": */5 * * * * root /usr/local/bin/mrtg \ /usr/local/www/data/qmrtg/cfg/mrtg.cfg 1>/dev/null 2>&1 Note: to skip qmrtg reporting your mx' whole history at the first call, -run the following before "c)" +run the following before point "c)" $ qmrtgsync.sh diff -ruN qmrtg.bak/pkg-plist qmrtg/pkg-plist --- qmrtg.bak/pkg-plist Mon Jun 28 12:29:09 2004 +++ qmrtg/pkg-plist Mon Nov 15 13:41:19 2004 @@ -14,5 +14,5 @@ %%PORTDOCS%%%%EXAMPLESDIR%%/mrtg.cfg %%PORTDOCS%%%%EXAMPLESDIR%%/qmrtg.conf.sample %%PORTDOCS%%@dirrm %%EXAMPLESDIR%% -@exec mkdir -p /var/db/qmrtg -@unexec rm -rf /var/db/qmrtg +@exec mkdir -p %%QMRTG_DBDIR%% +@unexec rm -rf %%QMRTG_DBDIR%% 2>&1 >/dev/null || true --- qmrtg-0.5.7.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: