apache 2.2.22_8

Chris Rees crees at FreeBSD.org
Sun Sep 16 08:18:28 UTC 2012

On 16 September 2012 07:19, Odhiambo Washington <odhiambo at gmail.com> wrote:
> On Sat, Sep 15, 2012 at 8:30 PM, Solmin Vladimir <vs at celicom.ru> wrote:
>> Hi!
>> Im using apache 2.2.22_6 with make options in /etc/make.conf
>> # apache22
>> .if ${.CURDIR} == ${PORTSDIR}/www/apache22
>> WITH_SUEXEC=            YES
>> SUEXEC_DOCROOT=         /www
>> SUEXEC_USERDIR=         /www/*/cgi-bin
>> SUEXEC_LOGFILE=         /var/log/suexec.log
>> .endif
>> But after svn co /usr/ports today i'm see next:
>> $portupgrade -arR
>> ** Port marked as IGNORE: www/apache22:
>>         is marked as broken: WITH/WITHOUT parameters are obsolete. The
>> port use the new options NG framework. Please read
>> http://wiki.freebsd.org/Ports/Options/OptionsNG
>> but a don't understand how i must set SUEXEC_DOCROOT, SUEXEC_USERDIR and
>> SUEXEC_LOGFILE in NG framework format...
>> Please help show me how....
> I have read that instruction and I am also not clear with what the correct
> syntax is for /etc/make.conf.
> I have come up with this:
> # apache22
> .if ${.CURDIR} == ${PORTSDIR}/www/apache22
> ${APACHE22}_SET=SUEXEC_USERDIR  /www/*/cgi-bin
> ${APACHE22}_SET=SUEXEC_LOGFILE /var/log/suexec.log
> .endif
>  I cant say if that's how it should be, but I think:-)
> Hopefully, Chris can help us understand the syntax better.

Thanks for copying me in, I'm not on this list.

You're very close!

You need to use ${UNIQUENAME}_SET, and to find the UNIQUENAME you need to;

[crees at pegasus]~% cd /usr/ports/www/apache22
[crees at pegasus]/usr/ports/www/apache22% make -VUNIQUENAME

Now we know it's apache22, we can use:

# (No need to bother with .if ${.CURDIR} any more)

apache22_SET+= SUEXEC
SUEXEC_DOCROOT=         /www
SUEXEC_USERDIR=         /www/*/cgi-bin
SUEXEC_LOGFILE=         /var/log/suexec.log

I'm not sure what APACHE_PERF_TUNING is; you may find it's been
deprecated.  Check with apache@ about that.  If I've somehow missed
that, you can just add it to the apache22_SET list:


Hope that helps!


(corresponding to WITHOUT is ${UNIQUENAME}_UNSET)

More information about the freebsd-questions mailing list