From owner-freebsd-questions@FreeBSD.ORG Fri Sep 9 02:48:33 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 68F2516A41F; Fri, 9 Sep 2005 02:48:33 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id DED1543D4C; Fri, 9 Sep 2005 02:48:32 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j892mW8j028350; Thu, 8 Sep 2005 19:48:32 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j892mWCH028348; Thu, 8 Sep 2005 19:48:32 -0700 Date: Thu, 8 Sep 2005 19:48:32 -0700 From: Brooks Davis To: Vizion Message-ID: <20050909024832.GB26409@odin.ac.hmc.edu> References: <200509081705.41876.vizion@vizion.occoxmail.com> <20050909002358.GA3436@odin.ac.hmc.edu> <200509081734.33077.vizion@vizion.occoxmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="l76fUT7nc3MelDdI" Content-Disposition: inline In-Reply-To: <200509081734.33077.vizion@vizion.occoxmail.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: Brooks Davis , freebsd-questions@freebsd.org, Johann Visagie Subject: Re: /usr/ports/www/phpbb --? Makefile query 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: Fri, 09 Sep 2005 02:48:33 -0000 --l76fUT7nc3MelDdI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 08, 2005 at 05:34:32PM -0700, Vizion wrote: > On Thursday 08 September 2005 17:23, you wrote: > >On Thu, Sep 08, 2005 at 05:05:41PM -0700, Vizion wrote: > >> The makefile has the following lines: > >> > >> PHPBBDIR=3D ${WWWDOCROOT}/${PHPBBURL} > >> PKGOPTS=3D ${FILESDIR}/pkg-opts > >> EXCEPTFILES=3D ${PREFIX}/${PHPBBDIR}/install/install.php \ > >> ${PREFIX}/${PHPBBDIR}/install/upgrade.php \ > >> ${PREFIX}/${PHPBBDIR}/install/update_to_latest.php > >> > >> In my case DocumentRoot is: > >> WWWDOCROOT?=3D /usr2/virtualwebs > >> > >> to which the port is adding ${PREFIX} > >> > >> which has a local value of /usr/local > >> > >> producing attempts to install files with problematic paths such as > >> > >> /usr/local//usr2/virtualwebs/forumkatrina.org/install/install.php > >> ^^^^^^ > >> > >> I wonder, while this is being looked at, whether it might be possible = to > >> have the option, when installing to virtual webs to install to a file = list > >> comprising multiple urls? > >> > >> This would be a most valuable option. > > > >Installation outside prefix is not supported. You could set > >prefix to /usr2=20 >=20 > Where is ${PREFIX} set? It defaults to /usr/local or you can set it to anything you want on the make command line. > >and WWWDOCROOT to virtualwebs to install the key=20 > >files where you want them. =20 > But does that not mean that I would be getting files that properly belong= in=20 > the /usr/local/ hierarchy in the virtualwebs hierarchy? That depends on your definition of properly. Yes they will end up there, but that's what is supposed to happen when you set, PREFIX to something other than /usr/local. > >This would cause /usr2 to be populated=20 > >with the directories given in BSD.local.dist. Alternativly, > >you could make /usr/local/www/forumkatrina.org a symlike to > >/usr2/virtualwebs/forumkatrina.org or something similar. =20 >=20 >=20 > That would be a good idea but unfortunately there appears to be a bug in = the=20 > latest version of apache2 that makes symlinks problematical and it is not= a=20 > good idea when the files are networked. The other thing is that /usr2/ is= a=20 > different physical device which holds files for replication to duplicate= =20 > physical devices for webfarming.=20 That shouldn't be an issue. If you point apache at the real paths, everything should be fine. I merely suggest using a symlike to get the files installed where you want them. > >Of course, if=20 > >you want to install it more than once, ports won't work as it. =20 > >Making phpbb capable of being a slave port and making local ports for ea= ch=20 > site could be a good work around for that. >=20 > Does anyone know how to fix the Makefile for the port so that it does not= =20 > apply ${PREFIX} when presented with an absolute path such as / but does u= se=20 > ${PREFIX} when the path is relative. > > That would do as a workaround for the moment. >=20 > I am not familiar with makefiles and I would like to ask if someone who = is=20 > used to doing it might be willing to make such a change and commit That would be breaking the Makefile, not fixing it. Realistly, if you want to use a non-standard file system layout, you shouldn't use the port. Just do a "make depends" in the phpbb port directory to get the pieces you need, and then install phpbb by hand. Most php apps are pretty trivial to install if you know how to configure a web server and database. -- Brooks P.S. Please stop randomly cross posting your messages. It just wastes people's time. --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --l76fUT7nc3MelDdI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDIPf/XY6L6fI4GtQRAk49AJ93XSlF7VXMHAAiDLeOAwiP3X6JeQCfRjt8 inMc1VUWnNG/wQxGvSWRQSI= =q2M+ -----END PGP SIGNATURE----- --l76fUT7nc3MelDdI--