From owner-freebsd-questions@FreeBSD.ORG Tue Jan 6 04:52:29 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55DA216A4CE for ; Tue, 6 Jan 2004 04:52:29 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 478C943D48 for ; Tue, 6 Jan 2004 04:52:26 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) i06CqLxn010807 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 6 Jan 2004 12:52:22 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i06CqLVT010799; Tue, 6 Jan 2004 12:52:21 GMT (envelope-from matthew) Date: Tue, 6 Jan 2004 12:52:21 +0000 From: Matthew Seaman To: August Simonelli Message-ID: <20040106125221.GB14422@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , August Simonelli , FreeBSD-questions References: <325C172F-403C-11D8-9654-000A95A55144@swiftdsl.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qlTNgmc+xy1dBmNv" Content-Disposition: inline In-Reply-To: <325C172F-403C-11D8-9654-000A95A55144@swiftdsl.com.au> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD-questions Subject: Re: changing configure options when using a port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2004 12:52:29 -0000 --qlTNgmc+xy1dBmNv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 06, 2004 at 10:33:49PM +1100, August Simonelli wrote: > I'm slowly getting used to FreeBSD from a Linux background so forgive=20 > the ignorant questions. >=20 > I'm curious what the best way to add configure options are when=20 > installing from a port. For example, i'd like to add --enable-rewrite=20 > to apache2. Can I just put it in the Makefile in /usr/ports/www/apache2= =20 > ? Is this generally the best way to do this? The apache2 port Makefile already comes with any number of hooks for enabling or disabling various configuration options -- probably too many in fact. In your case, to enable mod_rewrite you don't need to do anything, as it's already a standard part of the apache2 port, and enabled by default in the sample httpd-std.conf file. To get a list of what modules are available and what would be included when you build the port, use: # cd /usr/ports/www/apache2 # make show-modules However, for the sake of completelness, you can compile the port to include extra modules by: # make WITH_EXTRA_MODULES=3Drewrite or to statically link mod_rewrite into the apache binary: # make WITH_STATIC_MODULES=3Drewrite To apply these options without having to remember to type them in on the command line all the time, you can create a 'Makefile.inc' in the port directory which just contains the 'WITH_FOO=3Dbar' variable assignments, or you can use portupgrade(1) and record these customizations in it's pkgtools.conf configuration file. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --qlTNgmc+xy1dBmNv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQE/+q+FdtESqEQa7a0RAllSAJ4wjC5zvO5t6zVMcfXIOqPvQO22gwCfaLfU mCrqs10+t6trgZnz2SHLg+4= =sU82 -----END PGP SIGNATURE----- --qlTNgmc+xy1dBmNv--