From owner-freebsd-questions@FreeBSD.ORG Mon Oct 23 22:54:29 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64B9B16A403 for ; Mon, 23 Oct 2006 22:54:29 +0000 (UTC) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FFB443D66 for ; Mon, 23 Oct 2006 22:54:18 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from db2.internal (db2.internal [10.202.2.12]) by frontend1.messagingengine.com (Postfix) with ESMTP id 2F514DB8AA7 for ; Mon, 23 Oct 2006 18:54:16 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by db2.internal (MEProxy); Mon, 23 Oct 2006 18:54:19 -0400 X-Sasl-enc: W1b4A0e+uAmivCzLfeLdFldkUJHyfO1L92xF/tzeIlg0 1161644058 Received: from gumby.localdomain (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mail.messagingengine.com (Postfix) with ESMTP id ABC1910CA6 for ; Mon, 23 Oct 2006 18:54:18 -0400 (EDT) From: RW To: freebsd-questions@freebsd.org Date: Mon, 23 Oct 2006 23:54:12 +0100 User-Agent: KMail/1.9.4 References: <200610231106.10504.lane@joeandlane.com> <8cb6106e0610230923o73c5f2f6p8c1d79568d243fbe@mail.gmail.com> In-Reply-To: <8cb6106e0610230923o73c5f2f6p8c1d79568d243fbe@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610232354.14469.list-freebsd-2004@morbius.sent.com> Subject: Re: HOWTO: run portupgrade with original options for perl5.8 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: Mon, 23 Oct 2006 22:54:29 -0000 On Monday 23 October 2006 17:23, Josh Carroll wrote: > For ports without "make config" you can edit > /usr/local/etc/pkgtools.conf and edit MAKE_ARGS, something like: > > MAKE_ARGS = { > 'lang/perl5.8' => 'ENABLE_SUIDPERL=yes', > } > > Of course, this only affects portupgrade/portinstall/etc. If you want > it to work for manual building of the port with make in the port dir, > you can alternatively edit /etc/make.conf and add something like: > > .if ${.CURDIR:M*/lang/perl5.8} > ENABLE_SUIDPERL=yes > .endif There is also sysutils/portconf that abstracts this approach. Setting flags in pkgtools.conf doesn't always work because sometimes a port will be installed as a side-effect of another port and wont get the correct arguments from MAKE_ARGS.