ports installation location
Scot Hetzel
swhetzel at gmail.com
Sat Mar 31 02:15:02 UTC 2007
On 3/30/07, Vizion <vizion at 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.
More information about the freebsd-ports
mailing list