Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2006 17:34:48 -0500 (EST)
From:      Gerard Seibert <gerard@seibercom.net>
To:        FreeBSD-Questions <freebsd-questions@freebsd.org>
Cc:        =?UTF-8?Q?K=F6vesd=E1n_G=E1bor?= <gabor.kovesdan@t-hosting.hu>, VeeJay <maanjee@gmail.com>
Subject:   Re: How 2 Configure Makefile before "make install clean" from the ports?
Message-ID:  <20061124172714.D73335@scorpio.seibercom.net>
In-Reply-To: <45675EE1.9010101@t-hosting.hu>
References:  <2cd0a0da0611241302q77bf1d6etd59c7624562a65fe@mail.gmail.com> <45675EE1.9010101@t-hosting.hu>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-1083641393-1164407688=:73335
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT

On Fri, 24 Nov 2006, Kövesdán Gábor wrote:

> VeeJay escribió:
>> Hi
>> 
>> 
>> 
>> I want to install apache20 from the ports. But before installing, I want to
>> enable/disable some of the modules as follow
>> 
>> 
>> 
>> ./configure \
>> 
>> --prefix=/usr/local/apache2 \
>> 
>> --with-mpm=prefork \
>> 
>> --disable-charset-lite \
>> 
>> --disable-include \
>> 
>> --disable-env \
>> 
>> --disable-setenvif \
>> 
>> --disable-status \
>> 
>> --disable-autoindex \
>> 
>> --disable-asis \
>> 
>> --disable-cgi \
>> 
>> --disable-negotiation \
>> 
>> --disable-imap \
>> 
>> --disable-actions \
>> 
>> --disable-userdir \
>> 
>> --disable-alias \
>> 
>> 
>> 
>> But I have tried many different ways to configure before giving
>> command "make install clean". But haven't had any luck.
>> 
>> Could you please guide me that How can I configure the Makefile before
>> installing apache?
>> 
>> For example
>> 
>> When I give "make config" command I get error as follow:
>> 
>> 
>> 
>> # make config
>> ===> No options to configure
>> 
>> 
>> 
>> 
>> 
>> I have also tried --enable-OPTION and --disable-OPTION... in Makefile.
>> 
>> 
>> but didn't had any luck.... :(
>> 
>> Could you attache a Makefile showing places where to put these switches and
>> how?  I will be really very gratefull....
>> 
> When you try to install it, it prints a bunch of knobs, you can use, e.g. 
> WITH_SSL_MODULES, etc. You can set such in this way:
> make WITH_SSL_MODULES=yes install clean

I think the easiest method is to determine exactly what knobs you want to 
employ, then place them in the /etc/make.conf file.

/etc/make.conf
# Apache 2.2.2. section
.if $(.CURDIR:M*/www/apache22)
WITH_DBM=bdb
WITH_BERKELEYDB=db42
.endif

Obviously, you enter the knobs you want to use. An advantage to this 
method is that should you update Apache at some point, these knobs will be 
used by the newer version.

-- 
Gerard
gerard@seibercom.net

Mike:	"The Fourth Dimension is a shambles?"
Bernie:	"Nobody ever empties the ashtrays.  People are SO
 	inconsiderate."

 	Gary Trudeau, "Doonesbury"
--0-1083641393-1164407688=:73335--



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