From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 3 15:10:25 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E575316A41F for ; Sun, 3 Jul 2005 15:10:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A800A43D48 for ; Sun, 3 Jul 2005 15:10:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j63FAOLb063025 for ; Sun, 3 Jul 2005 15:10:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j63FAOkK063022; Sun, 3 Jul 2005 15:10:24 GMT (envelope-from gnats) Resent-Date: Sun, 3 Jul 2005 15:10:24 GMT Resent-Message-Id: <200507031510.j63FAOkK063022@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Florian Franzmann Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8FAD16A41C for ; Sun, 3 Jul 2005 15:07:14 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C45E543D46 for ; Sun, 3 Jul 2005 15:07:14 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j63F7EtF099418 for ; Sun, 3 Jul 2005 15:07:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j63F7EYU099416; Sun, 3 Jul 2005 15:07:14 GMT (envelope-from nobody) Message-Id: <200507031507.j63F7EYU099416@www.freebsd.org> Date: Sun, 3 Jul 2005 15:07:14 GMT From: Florian Franzmann To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/82928: qmail's prefix should be configurable from /etc/make.conf X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2005 15:10:25 -0000 >Number: 82928 >Category: misc >Synopsis: qmail's prefix should be configurable from /etc/make.conf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 03 15:10:24 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Florian Franzmann >Release: 5.4-RELEASE-p3 >Organization: >Environment: FreeBSD dings.localdomain 5.4-RELEASE-p3 FreeBSD 5.4-RELEASE-p3 #1: Sat Jul 2 12:27:22 CEST 2005 root@dings.localdomain:/usr/obj/usr/src/sys/HAWO-FB5 i386 >Description: Due to licensing issues qmail is normally installed into /var/qmail. It is however possible to install qmail someplace else by setting PREFIX on the command line. Since it is not reasonable to set prefix in /etc/make.conf I suggest a variable QMAIL_PREFIX which sets the prefix for the qmail port. >How-To-Repeat: >Fix: Apply the following patch against the qmail port's Makefile: --- /usr/ports/mail/qmail/Makefile Thu Jun 30 09:29:05 2005 +++ qmail/Makefile Sun Jul 3 17:04:53 2005 @@ -99,10 +99,11 @@ NO_PACKAGE= djb's packaging license does not allow non-standard \ qmail binary distributions -# A normal qmail installation puts everything into /var/qmail/. -# If you want to install to /usr/local/, then "/usr/local/qmail" is -# suggested instead of "/usr/local", but both will work. +.if defined(QMAIL_PREFIX) +PREFIX= ${QMAIL_PREFIX} +.else PREFIX?= /var/qmail +.endif QMAIL_VERSION?= 1.03 .if defined(SLAVE_SMTP_AUTH_TLS) || defined(SLAVE_TLS) @@ -465,6 +466,18 @@ @${ECHO_MSG} " (default NUMBER=${WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT})" @${ECHO_MSG} " set this to a value reasonable for" @${ECHO_MSG} " your system if you use the patch" + @${ECHO_MSG} "" +.endif + +.if !defined(QMAIL_PREFIX) + @${ECHO_MSG} "QMAIL_PREFIX=PREFIX_PATH" + @${ECHO_MSG} " (default PREFIX_PATH=${PREFIX})" + @${ECHO_MSG} " A normal qmail installation puts" + @${ECHO_MSG} " everything into /var/qmail/." + @${ECHO_MSG} " If you want to install to ${LOCALBASE}," + @${ECHO_MSG} " then \"${LOCALBASE}/qmail\" is suggested" + @${ECHO_MSG} " instead of \"${LOCALBASE}\", but both will" + @${ECHO_MSG} " work." @${ECHO_MSG} "" .endif >Release-Note: >Audit-Trail: >Unformatted: