which ports require dialog during update

Matthew Seaman m.seaman at infracaninophile.co.uk
Sun Oct 23 10:17:43 UTC 2011

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
WITH_INNODB=            yes
WITH_ARCHIVE=           yes
WITH_FEDERATED=         yes
#WITH_NDB=              yes
WITH_CSV=               yes

If you do this, you'll need to set BATCH in the make environment to
suppress the OPTIONS dialogues, and remove anything conflicting from



Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew at infracaninophile.co.uk               Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20111023/d3236888/signature.pgp

More information about the freebsd-questions mailing list