Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2007 21:15:01 -0500
From:      "Scot Hetzel" <swhetzel@gmail.com>
To:        Vizion <vizion@vizion.occoxmail.com>
Cc:        ports@freebsd.org
Subject:   Re: ports installation location
Message-ID:  <790a9fff0703301915l79d3428chd1e2f4e7468365e8@mail.gmail.com>
In-Reply-To: <20070330180127.CAFY12099.dukecmmtao03.coxmail.com@dukecmmtao03>
References:  <20070330180127.CAFY12099.dukecmmtao03.coxmail.com@dukecmmtao03>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_61336_1851455.1175307301608
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 3/30/07, Vizion <vizion@vizion.occoxmail.com> wrote:
> > > 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 get the same error when using PKGNAMESUFFIX with the make command.

make PKGNAMESUFFIX=_test install
:
===>   Registering installation for joomla_test-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

But if I add PKGNAMESUFFIX to the ports Makefile, or use a slave port,
then it doesn't cause any errors with a make install.

To create the slave ports, first make the directory for each virtual
host and then copy the attached file into that directory.

mkdir -p /usr/ports/www/joomla_vh1
cp /path/to/attachment/Makefile /usr/ports/www/joomla_vh1
cd /usr/ports/www/joomla_vh1
vi Makefile
  - change JOOMLA_DIR
make install PREFIX=/usr2/virtualwebs

I did find one problem, if you have no dependancies installed, the
above make will install the dependancies into /usr2/virtualwebs, but
look for some of the dependancies in /usr/local (LOCALBASE).  One
solution is to install www/joomla without PREFIX set, then use the
slave ports to install to the alternate PREFIX.

Scot
-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.

------=_Part_61336_1851455.1175307301608--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0703301915l79d3428chd1e2f4e7468365e8>