From owner-freebsd-questions@FreeBSD.ORG Sun Jun 10 23:20:26 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2AA6E16A400 for ; Sun, 10 Jun 2007 23:20:26 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp1.utsp.utwente.nl [130.89.2.8]) by mx1.freebsd.org (Postfix) with ESMTP id A534013C44C for ; Sun, 10 Jun 2007 23:20:25 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id l5ANKJLr008701; Mon, 11 Jun 2007 01:20:20 +0200 From: Pieter de Goeje To: freebsd-questions@freebsd.org Date: Mon, 11 Jun 2007 01:20:19 +0200 User-Agent: KMail/1.9.6 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706110120.19636.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Angelin Lalev Subject: Re: passing parameters to configure script of a port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 23:20:26 -0000 On Sunday 10 June 2007, Angelin Lalev wrote: > Hi, > > I want to build squid from ports, but I need to pass some custom options to > configure script. Something more, I want to be sure that when I run > portupdate it won't revert to default options. Which is the right way to do > this ? You can use something like this in make.conf: # insert your own leet matching pattern here CURRENT_PORT=${.CURDIR:C/.*ports\///} .if ${CURRENT_PORT} == "category/name" CONFIGURE_ARGS+= --some-option # you can also change things like CFLAGS here. .endif Some ports set CONFIGURE_ARGS explicitly, making the above not work. To work around this, set CONFIGURE_ARGS on the make command line. You can then add it to the MAKE_ARGS list in /usr/local/etc/pkgtools.conf to make it work when upgrading using portupgrade. HTH, Pieter de Goeje