Way to make settings in /etc/make.conf effective only for ports

Yasuhiro KIMURA yasu at utahime.org
Mon Jun 23 11:59:32 UTC 2014


From: Alfred Perlstein <alfred at freebsd.org>
Subject: Re: Way to make settings in /etc/make.conf effective only for ports
Date: Sun, 22 Jun 2014 02:16:24 -0700

> I think you can use /usr/local/etc/ports.conf
> 
> I got that information from:
> 
> http://lists.freebsd.org/pipermail/freebsd-ports/2007-April/040338.html

From: Melvyn Sopacua <melvyn at magemana.nl>
Subject: Re: Way to make settings in /etc/make.conf effective only for ports
Date: Sun, 22 Jun 2014 11:20:10 +0200 (CEST)

> You can wrap those settings in .CURDIR check:
> .if !empty(.CURDIR:M/usr/ports/*)
> # port settings here
> .endif

From: Dewayne Geraghty <dewayne.geraghty at heuristicsystems.com.au>
Subject: Re: Way to make settings in /etc/make.conf effective only for ports
Date: Sun, 22 Jun 2014 23:02:18 +1000

> Simplest way would be to install ports-mgmt/portconf. The installation
> appends what's needed to /etc/make.conf
> Then you need to add to /usr/local/etc/ports.conf to enable what you
> require the port to do.  Something like:

At first step I adopt Melvyn's way because it is so easy to add only 2
lines in /etc/make.conf. But portconf is interesting so I will try it.

Thank you for reply.

Best Regards.

---
Yasuhiro KIMURA


More information about the freebsd-ports mailing list