HOWTO: run portupgrade with original options for perl5.8

RW list-freebsd-2004 at morbius.sent.com
Mon Oct 23 22:54:29 UTC 2006


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.


More information about the freebsd-questions mailing list