Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2007 10:37:12 -0700
From:      Vizion <vizion@vizion.occoxmail.com>
To:        <ports@freebsd.org>
Cc:        Scot Hetzel <swhetzel@gmail.com>
Subject:   Re: ports installation location
Message-ID:  <20070330173713.KQP12099.dukecmmtao03.coxmail.com@dukecmmtao03>

next in thread | raw e-mail | index | archive | help
 

> -----Original Message-----
> From: Scot Hetzel [mailto:swhetzel@gmail.com] 
> Sent: Friday, March 30, 2007 8:16 AM
> To: Vizion
> Cc: ports@freebsd.org
> Subject: Re: ports installation location
> 
> On 3/30/07, Vizion <vizion@vizion.occoxmail.com> wrote:
> >
> > > -----Original Message-----
> > > From: owner-freebsd-ports@freebsd.org
> > > [mailto:owner-freebsd-ports@freebsd.org] On Behalf Of Scot Hetzel
> > > Sent: Thursday, March 29, 2007 9:29 AM
> > > To: Vizion
> > > Cc: ports@freebsd.org; include@npf.pt.freebsd.org
> > > Subject: Re: ports installation location
> > >
> > > On 3/29/07, Vizion <vizion@vizion.occoxmail.com> wrote:
> > > > How does one specify a non-standard location for 
> installing a port?
> > > >
> > > > For example I want to have multiple instances of www/joomla
> > > installed for multiple virtual hosts. How can I best go 
> about this?
> > > >
> > >
> > > I haven't tried this, but looking at the ports Makefile, 
> it looks like
> > > you can install it to multiple locations as follows:
> > >
> > > cd /usr/ports/www/joomla
> > > sed -i'' -e "s@www/joomla@%%JOOMLA_DIR%%@" pkg-plist
> > > make PKGNAMESUFFIX=_vh1 JOOMLA_DIR=www/joomla_vh1 install
> > >
> > > The sed is required to fix the pkg-plist, as it hardcodes 
> the install
> > > directory to www/joomla (PR sent).
> > >
> > > > How about upgrades?
> > >
> > > You would have to upgrade it manually, by first deleting 
> the port, and
> > > then using the same make comand that you used to install it.
> > >
> > > To use port management tools (portmaster, portupgrade, 
> ...), you would
> > > need to create a port for each virtual host as following:
> > >
> > >  - create www/joomla_vh1 directory
> > >  - create www/joomla_vh1/Makefile
> > >
> > >  # port for virtual host: X
> > >  #
> > >   PKGNAMESUFFIX= _vh1
> > >
> > >   MASTERDIR= ${.CURDIR}/../joomla
> > >
> > >   JOOMLA_DIR= www/joomla${PKGNAMESUFFIX}
> > >
> > >   .include "${MASTERDIR}/Makefile"
> > >
> > >
> > > --
> >
> > Thank you Scot for your, as usual, on target contribution.
> > I see what you mean about the pkg-plist and the use of sed 
> to change that.
> >
> > I have hit a snag.
> >
> > All my virtual hosts are on a seperate path which is, 
> incidentally, a separate physical device.
> >
> > The install failed.
> > my make command was
> >
> > make PKGNAMESUFFIX=_vh1 
> JOOMLA_DIR=/usr2/virtualhosts/my_virtualhost install
> > The prime cause of failure seemed to be that it was looking for
> > /usr/local//usr2/virtualhosts/virtualhostname
> >
> > What do I need to change??
> >
> Since your not installing under the default PREFIX, you need to
> specify the PREFIX to where the port should be installed.
> 
> make PKGNAMESUFFIX=_vh1 PREFIX=/usr2/virtualhosts
> JOOMLA_DIR=virtualhostname/joomla install
> 
> Scot
Thank you Scot
That fixed that problem.. 
and files were installed to the target directory for my virual webs. BUUT


I got the following errors:
----------------------
[root@dns1 /usr/PIGI_ports/www/joomla_PIGI_000]# make PKGNAMESUFFIX=_PIGI_000 
JOOMLA_DIR=/usr2/virtualwebs/ispyforum.com install
===>  Installing for joomla_PIGI_000-1.0.12
===>   joomla_PIGI_000-1.0.12 depends on 
file: /usr/local/include/php/main/php.h - found
===>   joomla_PIGI_000-1.0.12 depends on 
file: /usr/local/lib/php/20060613/mysql.so - found
===>   joomla_PIGI_000-1.0.12 depends on 
file: /usr/local/lib/php/20060613/pcre.so - found
===>   joomla_PIGI_000-1.0.12 depends on 
file: /usr/local/lib/php/20060613/xml.so - found
===>   joomla_PIGI_000-1.0.12 depends on 
file: /usr/local/lib/php/20060613/zlib.so - found
===>   joomla_PIGI_000-1.0.12 depends on 
file: /usr/local/lib/php/20060613/session.so - found
===>   joomla_PIGI_000-1.0.12 depends on 
file: /usr/local/lib/php/20060613/gd.so - found
===>   joomla_PIGI_000-1.0.12 depends on 
file: /usr/local/lib/php/20060613/pdf.so - found
===>   joomla_PIGI_000-1.0.12 depends on shared library: mysqlclient.15 - 
found
===>   Generating temporary packing list
===>  Checking if www/joomla_PIGI_000 already installed
*******************************************************************

 Please read INSTALL file. It can be found at:

  /usr/local//usr2/virtualwebs/ispyforum.com/INSTALL.php

*******************************************************************
===>   Registering installation for joomla_PIGI_000-1.0.12
"Makefile", line 176: Could not find /Makefile.ext
"/usr/ports/Mk/bsd.port.mk", line 1886: Malformed conditional 
(${X_WINDOW_SYSTEM:L} == xorg)
"/usr/ports/Mk/bsd.port.mk", line 2206: Malformed conditional (${PREFIX} == 
${X11BASE_REL} || defined(USE_X_PREFIX))
"/usr/ports/Mk/bsd.port.mk", line 2210: Malformed conditional (${PREFIX} 
== /usr)
"/usr/ports/Mk/bsd.port.mk", line 2215: if-less endif
-u: not found
"/usr/ports/Mk/bsd.port.mk", line 2221: warning: " -u" returned non-zero 
status
-e: not found
"/usr/ports/Mk/bsd.port.mk", line 2310: warning: "/usr/sbin/pkg_info -P 
2>/dev/null |  -e 's/.*: //'" returned non-zero status
"/usr/ports/Mk/bsd.port.mk", line 2846: Malformed conditional (${PREFIX} 
== /usr)
"/usr/ports/Mk/bsd.port.mk", line 2848: if-less else
"/usr/ports/Mk/bsd.port.mk", line 2850: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 2956: Malformed conditional (${PREFIX} 
== /usr)
"/usr/ports/Mk/bsd.port.mk", line 2958: if-less else
"/usr/ports/Mk/bsd.port.mk", line 2960: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 5466: Malformed conditional ((${PREFIX} != 
${LOCALBASE_REL} && ${PREFIX} != ${X11BASE_REL} && ${PREFIX} != 
${LINUXBASE_REL} && ${PREFIX} != "/usr"))
"/usr/ports/Mk/bsd.port.mk", line 5471: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 5947: if-less endif
make: fatal errors encountered -- cannot continue
[root@dns1 /usr/PIGI_ports/www/joomla_PIGI_000]#    

I am trying to track them down.. wonder if you can cast some light.

Thanks again

David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070330173713.KQP12099.dukecmmtao03.coxmail.com>