Date: Sun, 23 Oct 2011 11:17:30 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Thomas Mueller <mueller6727@bellsouth.net> Cc: Doug Barton <dougb@freebsd.org>, freebsd-questions@freebsd.org Subject: Re: which ports require dialog during update Message-ID: <4EA3E9BA.9000602@infracaninophile.co.uk> In-Reply-To: <20111023095355.3A4D3106564A@hub.freebsd.org> References: <20111022080608.C0136106566B@hub.freebsd.org> <4EA3109A.4050402@FreeBSD.org> <20111023095355.3A4D3106564A@hub.freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On 23/10/2011 10:48, Thomas Mueller wrote:
> NetBSD pkgsrc, which has been ported to other mostly (quasi-)Unix
> OSes as well, has a better way: putting options in /etc/mk.conf : not
> to say NetBSD pkgsrc is better than FreeBSD ports system, just that
> they have a good idea in this aspect.
That works with FreeBSD too, except the file is called /etc/make.conf
All the options framework does is write a small Makefile containing the
per-port options. There's nothing to stop you generating those settings
by some other means, nor is there anything to stop you adding the result
into /etc/make.conf rather than the separate Makefiles under
/var/db/ports. You'll need to conditionalise setting the options on the
value of ${.CURDIR} like this:
.if ${.CURDIR:M*/databases/mysql*}
WITH_CHARSET= utf8
WITH_XCHARSET= none
WITH_COLLATION= utf8_unicode_ci
WITH_OPENSSL= yes
WITHOUT_YASSL= yes
BUILD_OPTIMIZED= yes
WITH_INNODB= yes
WITH_ARCHIVE= yes
WITH_FEDERATED= yes
#WITH_NDB= yes
WITH_CSV= yes
.endif
If you do this, you'll need to set BATCH in the make environment to
suppress the OPTIONS dialogues, and remove anything conflicting from
/var/db/ports.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matthew@infracaninophile.co.uk Kent, CT11 9PW
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk6j6cIACgkQ8Mjk52CukIye6wCffPZe+ZF2YyzCi5xGQmuUa6sN
ax0AnRJgWQwQYnKigLhrSemYw1E5fW4x
=p76v
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EA3E9BA.9000602>
