Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Mar 2013 13:49:16 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-ports@freebsd.org
Subject:   Re: OPTIONSng: Overide options in /var/db/ports/*/options ?
Message-ID:  <5145C9DC.6010300@infracaninophile.co.uk>
In-Reply-To: <5145B415.80303@executive-computing.de>
References:  <5145B415.80303@executive-computing.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
------enig2CGEXJPJKCUSXIUKDEFBR
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 17/03/2013 12:16, Marco Steinbach wrote:
> Hi,
>=20
> is there a way to overide options stored in /var/db/ports/*/options,
> basically getting back the pre-OPTIONSng behaviour of being able to
> overide port options in /etc/make.conf ?
>=20
> Before OPTIONSng was introduced, I was able to specify options in
> /etc/make.conf (WITHOUT_X11, WITHOUT_CUPS, WITH_MAILHEAD, WITH_SSL,
> WITH_MYSQL, WITH_DOVECOT, ...), which then overode any occurency of tha=
t
> option in any port (or just specific ones, by e.g. checking .CURDIR),
> regardless of the setting the ports option file contained.

Find the uniquename of the port[*] (by 'make -V UNIQUENAME') then in
/etc/make.conf

uniquename_SET=3D FOO BAR BAZ
uniquename_UNSET=3D BLURFL

will override the default settings in that port's Makefile for the FOO,
BAR, BAZ and BLURFL options.

Note: this won't override any settings you make from an options dialog.
Might be a good idea to 'make rmconfig' if you only want to rely on
/etc/make.conf

	Cheers

	Matthew

[*] Except that uniquename is not always unique to one port, but the
exceptions are relatively few.

--=20
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew@infracaninophile.co.uk


------enig2CGEXJPJKCUSXIUKDEFBR
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlFFyeIACgkQ8Mjk52CukIx4/wCfeQaLUkI5MyYeLDcl/XSTWkQk
Mb0An06J/nkLwCcFj2qBLVwjuhjHBSLo
=ooLu
-----END PGP SIGNATURE-----

------enig2CGEXJPJKCUSXIUKDEFBR--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5145C9DC.6010300>