Skip site navigation (1)Skip section navigation (2)
Date:      3 Dec 2004 13:02:04 -0000
From:      Mij <mij@bitchx.it>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/74649: [maintainer update] [patch] fixes mail/qmrtg (BROKEN) problem while making package
Message-ID:  <20041203130204.72920.qmail@heroin.publicshout.org>
Resent-Message-ID: <200412031310.iB3DAKOC082429@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <mij@bitchx.it>
>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041203130204.72920.qmail>