From owner-freebsd-ports@FreeBSD.ORG Fri Aug 20 16:12:44 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2F8216A4CE for ; Fri, 20 Aug 2004 16:12:44 +0000 (GMT) Received: from goofy.cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with SMTP id 72D0A43D41 for ; Fri, 20 Aug 2004 16:12:40 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: (qmail 33863 invoked by uid 89); 20 Aug 2004 18:12:36 +0200 Received: from sheepkiller@cultdeadsheep.org by goofy.cultdeadsheep.org by uid 89 with qmail-scanner-1.22 (clamdscan: 0.74. spamassassin: 2.63. Clear:RC:1(192.168.0.8):. Processed in 0.058358 secs); 20 Aug 2004 16:12:36 -0000 X-Qmail-Scanner-Mail-From: sheepkiller@cultdeadsheep.org via goofy.cultdeadsheep.org X-Qmail-Scanner: 1.22 (Clear:RC:1(192.168.0.8):. Processed in 0.058358 secs) Received: from unknown (HELO persephone.cultdeadsheep.org) (192.168.0.8) by goofy.cultdeadsheep.org with SMTP; 20 Aug 2004 18:12:35 +0200 Received: (qmail 87371 invoked from network); 20 Aug 2004 18:11:00 +0200 Received: from unknown (HELO satan.cultdeadsheep.org) (192.168.0.4) by persephone.cultdeadsheep.org with SMTP; 20 Aug 2004 18:11:00 +0200 Date: Fri, 20 Aug 2004 18:12:20 +0200 From: Clement Laforet To: Oliver Eikemeier Message-Id: <20040820181220.4405c774.sheepkiller@cultdeadsheep.org> In-Reply-To: References: <20040820171911.17d88d7b.sheepkiller@cultdeadsheep.org> Organization: tH3 cUlt 0f tH3 d3@d sH33p X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Fri__20_Aug_2004_18_12_20_+0200_qnWo0wkw9NRQ3Lo2" cc: ports@freebsd.org Subject: Re: FreeBSD ports which are currently scheduled for deletion X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2004 16:12:44 -0000 --Signature=_Fri__20_Aug_2004_18_12_20_+0200_qnWo0wkw9NRQ3Lo2 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Fri, 20 Aug 2004 17:43:39 +0200 Oliver Eikemeier wrote: > Clement Laforet wrote: > > > you can use www/apache2/Makefile.modules.3rd to avoid that. > > You have several examples in ports tree to know how (non-)flexible > > is this solution. > > It seems like every port using www/apache2/Makefile.modules.3rd is > inherently not PREFIX save. Can you please point me where I made a mistake? IMHO, Makefile.modules.3rd is more than PREFIX-safe, since a apache module (installed via apxs) will never use ${PREFIX} to install its module, it use apxs -q prefix which is a kind of "APACHEBASE". On a classic port, make install PREFIX=/var/tmp/ports/${PORTNAME} will blows up your plist, with my hacks you can avoid that. > a) It lists files installed in ${LOCALBASE}, although they should be > installed the ${PREFIX} there are different levels of use of Makefile.modules.3rd: 1. detecting major apache version, and where your module will be installed (APXS_PREFIX) 2. AP_FAST_BUILD which peforms simple builds 3. AP_GENPLIST which gives you to have a "good" plist. 4. server side routines (mainly modules selection) 5. various checks and tricks to make my life easier ;) > b) It assumes that apxs is in ${PREFIX}/sbin, although this should be > ${LOCALBASE} I only use PREFIX for server macros (which is the correct behavior) and for plist generation (to fall back to PREFIX for add-ons in plist like PORTDOCS). As I can see: APXS?= ${LOCALBASE}/sbin/apxs and after that I use apxs to define APXS_PREFIX (APACHEBASE), which prevents setting LOCALBASE (how can you deal with 2 apache and one mysql?) > could you please fix this? Since I believe that your expertise is better than mine, please tell where I made a mistake. Until that, I trust the dozens of various builds I've done. clem --Signature=_Fri__20_Aug_2004_18_12_20_+0200_qnWo0wkw9NRQ3Lo2 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD4DBQFBJiLksRhfjwcjuh0RAnEAAKCFJTlEG3YEnwTerOnywK8p9pBpbwCWMNpj 8QHDLcMKLncsHdnO8AgzRg== =ilVM -----END PGP SIGNATURE----- --Signature=_Fri__20_Aug_2004_18_12_20_+0200_qnWo0wkw9NRQ3Lo2--