From owner-freebsd-stable@FreeBSD.ORG Thu Nov 6 07:18:29 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2A0916A4CE for ; Thu, 6 Nov 2003 07:18:28 -0800 (PST) Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCC1943FF5 for ; Thu, 6 Nov 2003 07:18:27 -0800 (PST) (envelope-from kirk@strauser.com) Received: from pooh.strauser.com (pooh.honeypot.net [10.0.5.128]) by kanga.honeypot.net (8.12.10/8.12.10) with ESMTP id hA6FIQnV058244 for ; Thu, 6 Nov 2003 09:18:26 -0600 (CST) (envelope-from kirk@strauser.com) To: freebsd-stable@freebsd.org References: <3FA6A459.2060904@updegrove.net> From: Kirk Strauser Date: Thu, 06 Nov 2003 09:18:21 -0600 In-Reply-To: <3FA6A459.2060904@updegrove.net> (Rick Updegrove's message of "Mon, 03 Nov 2003 10:54:17 -0800") Message-ID: <874qxhjzk2.fsf@strauser.com> Lines: 42 X-Mailer: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: portupgrade and PHP X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2003 15:18:29 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable At 2003-11-03T18:54:17Z, Rick Updegrove writes: > Hello, > > When I run portupgrade -ra and PHP needs upgrading I am faced with having > to select all the options I want PHP compiled with (again). I hate this. > > How can I continually compile PHP with the same options as the last time? OK, you've gotten several technically-correct-but-ungood answers. There's a much better way to manage this port. Recent versions of lang/php4 read their configuration from /root/php4-options. Here's an excerpt from mine: WITH_BCMATH=3DON WITH_BZIP2=3DON WITH_CURL=3DON WITH_GD=3DON WITH_GETTEXT=3DON WITH_ICONV=3DON WITH_IMAP=3DON WITH_MCAL=3DON When you begin the build, the port uses the contents of that file to set the default menu options. Configure it once, note the choices you made in that file, and you're done. Easy, huh? At one point, the exact name of the options file was in flux, so I nailed it down by setting: PHP4_OPTFILE=3D /root/php4_options in /etc/make.conf. This seems to be unnecessary now. =2D-=20 Kirk Strauser "94 outdated ports on the box, 94 outdated ports. Portupgrade one, an hour 'til done, 82 outdated ports on the box." --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/qmZC5sRg+Y0CpvERAj9bAJ9MVR01jDB3HAwSL14VVegIkKEbngCfWOgx +S9H2Bn956JfWRXzsJ7DBl8= =T4Ah -----END PGP SIGNATURE----- --=-=-=--