Date: Thu, 29 Mar 2007 10:26:56 -0700 From: Vizion <vizion@vizion.occoxmail.com> To: <ports@freebsd.org> Cc: youshi10@u.washington.edu Subject: Re: joomla ports - installation- multiple virtual hosts Message-ID: <20070329172656.RDTW12099.dukecmmtao03.coxmail.com@dukecmmtao03>
next in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: owner-freebsd-ports@freebsd.org > [mailto:owner-freebsd-ports@freebsd.org] On Behalf Of > youshi10@u.washington.edu > Sent: Thursday, March 29, 2007 9:46 AM > To: freebsd-ports@freebsd.org > Subject: Re: joomla ports - installation- multiple virtual hosts > > On Thu, 29 Mar 2007, Vizion wrote: > > > Vizion <vizion@vizion.occoxmail.com> writes: > >> Just wonder if anyone is able to suggest a way of modify > the Makefile > >> so as ro be able to install joomla, from /ports/www/joomla/, into a > >> chosen directory for a number of virtual hosts. > > > > Maybe I'm confused (I did bang my head yesterday), but isn't that > > exactly what ports(7) defines PREFIX for? I.e., you should be able > > to set it in the environment without changing the Makefile. > > > > I believe you - but I know nothing about it. Does that mean > using Prefix I can tell the port to install multiple > instances of joomla each one going into a different path - > one under each virtual host root? > > > > Maybe I am missing something too- unfortunately my head > doesn't need banging for that to happen.<chuckles> If so > could you give me an example of the command? > > Well, you're probably right there (I usually don't climb that > far under the hood defining values), but you probably would > run into non-uniqueness and upgrade issues. > > If only there was a multiple slot option for ports, such that > ports could be installed in separate locations with similar > start / build options. Dependency checking and updating for > that would be a mess though :(.. > > -Garrett Agreed but could it be solved by a cheat? Hey -- is this too nutty an idea - but could it be made to work for ports which might need multiple instances? How about letting the joomla port directory name be joomla_ plus a numeric suffix [xx]. Is it possible to write an amendment to the make file that looks at the current directory name and checks to see if another directory exists where the suffix is incremented by 1? i.e the base port in the tree is joomla_00. When make is run in joomla_00 If it finds a joomla_01 then the make file needs to duplicate the port into www/joomla_01. If a user wants two joomla instances then all he need to do is create a directory www/joomla_01. Using such a method the administrator creates as many additional directories as needed for the number of instances required. In each directory there would be a need to place a file to hold the path for the root directory for that instance and any other location specific information needed by the port. I can see there would be some complications - such as a routine to recognise upgrades and duplicate the upgrades into the directories. It sounds doable BUT I do not have the knowledge or experience to do it. I would like to know if you thought the idea was sound enough. There are quite a few ports where duplicate instances are needed - but a system would be especially useful for forums such as phpbb and content management systems. It would be really nice if the idea could be developed into a generic tool that would hold instructions to convert such ports into multi-instance ports and manage the make file changes. david
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070329172656.RDTW12099.dukecmmtao03.coxmail.com>