Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2000 01:51:18 -0400
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "Bennett Hui" <bhui@mail.com>, <questions@FreeBSD.ORG>
Subject:   Re: customizing/configuring FreeBSD ports
Message-ID:  <000b01c02134$7762bef0$1200a8c0@zircon>
References:  <NDBBKCNFGLGFDJGFGEECGEDDCDAA.bhui@mail.com>

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

> I am quite new to the FreeBSD OS although I've had some experience with
> Linux.  The concept of application ports is convenient and elegant (very
> nice!!).  However, I have two questions regarding customizing/configuring
> the way a port is installed and I can't find the answer anywhere on any
> FreeBSD website.  I was hoping you could help answer them.
>
> 1) How do I configure a FreeBSD port so that it has added configuration
> options.  For example, if I wanted to add xml and mysql support for PHP 4
in
> Linux, I would normally add --enable-xml and --with-mysql=/usr/local/mysql
> to the command line when executing the 'configure' script.  How would I do
> this to the mod_php4 port for FreeBSD?  Is it as simple as going into the
> Makefile and append these configurations to the bottom of CONFIGURE_ARGS=?

Yes.

> 2) How would I combine the configuration of ports that are similar but
each
> has different options configured in them.  For example, there are many
ports
> for Apache 1.3.12, each one with a different setup like Apache with jserve
> or Apache with MS Frontpage extensions or Apache with SSL/TLS or Apache
with
> OpenSSL, etc.  How would I combine these so that I have only one port of
> Apache 1.3.12 running on my machine but has (for example) SSL/TLS, jserve
> AND MS Frontpage extensions all configured on it?  Do I run each port on
top
> of the other or is there a way to configure the Makefile or some other
file
> to make this work?

To the best of my knowledge, there's no easy way to do this.  I've heard
that the maintainers of the various Apache ports are revamping how Apache
and Apache-related ports are handled in FreeBSD's port system so that all
you will need to do is pick the options and say install (as you would like
to.)

If you wanted to do this now, you'd have to do it by hand -- download Apache
and the parts and pieces (mod_ssl, mod_jserve, mod_frontpage) and then
figure out how to build Apache with all of them enabled.  This would not be
easy.

What I would do (in a case like this) is determine the most full-featured
Apache that you can build, and run it on port 80.  Then run servers on other
ports for the specialized bits and use mod_rewrite in the main server to
redirect as needed.  (I run Apache with php3 and mod_ssl on port 80, and
apache13-fp on port 8080.  I rewrite all traffic coming from FrontPage
editors to port 8080 transparently.)

--
Matthew Emmerton
GSI Computer Services
+1 (800) 217-5409 (Canada)



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000b01c02134$7762bef0$1200a8c0>