From owner-freebsd-questions@FreeBSD.ORG Sun Oct 23 10:17:43 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C9761065755; Sun, 23 Oct 2011 10:17:43 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 1A0C58FC14; Sun, 23 Oct 2011 10:17:42 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id p9NAHcaq012410 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 23 Oct 2011 11:17:38 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.4.1 smtp.infracaninophile.co.uk p9NAHcaq012410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1319365058; bh=NXVow6QM21eC3Y4Hoeg80hlAqBe/dBIQ/X4+7yOVrLg=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=I9//CNUHIKQZHcppZtiFOHIxo0YzKRX50KM/CmMculU5LN7/Zosxos1dtnyalpM1v 93MD8BRlcNOkR/AvHUhOmlsEqSm69aQsF7iSXyJcNa67PKhq+eeDqb32joiM3OKYns sulbD72fjY/fY6PUt7zzgbVO3nHgYvIKJU7VVJCQ= Message-ID: <4EA3E9BA.9000602@infracaninophile.co.uk> Date: Sun, 23 Oct 2011 11:17:30 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Thomas Mueller References: <20111022080608.C0136106566B@hub.freebsd.org> <4EA3109A.4050402@FreeBSD.org> <20111023095355.3A4D3106564A@hub.freebsd.org> In-Reply-To: <20111023095355.3A4D3106564A@hub.freebsd.org> X-Enigmail-Version: 1.3.2 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig944A7D4E7E78D233FF8C7DF8" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: Doug Barton , freebsd-questions@freebsd.org Subject: Re: which ports require dialog during update X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Oct 2011 10:17:43 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig944A7D4E7E78D233FF8C7DF8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: =2Eif ${.CURDIR:M*/databases/mysql*} WITH_CHARSET=3D utf8 WITH_XCHARSET=3D none WITH_COLLATION=3D utf8_unicode_ci WITH_OPENSSL=3D yes WITHOUT_YASSL=3D yes BUILD_OPTIMIZED=3D yes WITH_INNODB=3D yes WITH_ARCHIVE=3D yes WITH_FEDERATED=3D yes #WITH_NDB=3D yes WITH_CSV=3D yes =2Eendif 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 --=20 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 --------------enig944A7D4E7E78D233FF8C7DF8 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 Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6j6cIACgkQ8Mjk52CukIye6wCffPZe+ZF2YyzCi5xGQmuUa6sN ax0AnRJgWQwQYnKigLhrSemYw1E5fW4x =p76v -----END PGP SIGNATURE----- --------------enig944A7D4E7E78D233FF8C7DF8--