Recover Make ARG's from a ports Install

Roland Smith rsmith at
Mon Mar 12 18:13:37 UTC 2007

On Mon, Mar 12, 2007 at 08:18:25AM +0100, Alexander Schlichting wrote:
> On a server I have a package installed using ports and now I have to install
> the package with exactly the same make arguments on another server. I just
> don't find a way to see what arguments where used to install it the first
> time. With Linux I would look into config.status is there something similar
> with FreeBSD? Sorry for having to ask but I am using FreeBSD for the first
> days now after 5 years using Linux only :)

If the arguments are given on the command line when invonkig make in the
port directory, they are not saved.

A mechanism (called OPTIONS) was later added to the ports infrastructure
that does save the arguments. Not all ports have been completely
converted to using options, and some arguments cannot be set with
options. But if arguments are set with the OPTIONS mechanism, you can
find them in the file /var/db/ports/<portname>/options.

Additionally, arguments can be set in /etc/make.conf. Those should look
like this:

.if ${.CURDIR:M*/graphics/povray}

This means that when make is invoked in a directory that ends in
graphics/povray, the variable WITH_OPTIMIZED_FLAGS is set.

HTH, Roland
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list