Archive for the ‘ports’ Category

How to disable configuration options while building Apache2 from ports

Tuesday, December 11th, 2007

According to http://www.freshports.org/www/apache22, OPTIONS support has been added on September 18, 2007 causing several knobs (like WITH_STATIC_MODULES) being ignored. In order to disable OPTIONS one should consider defining WITHOUT_APACHE_OPTIONS. Since I’m using portupgrade to do my regular ports maintenance I was trying to find where to put WITHOUT_APACHE_OPTIONS to make the change systemwide.

One of the options was to put it in /usr/ports/www/apache22/Makefile – it did work, but as soon as you update ports all changes will be overwritten. After some digging I finally figured out that putting

  1. WITHOUT_APACHE_OPTIONS= yes

to /etc/make.conf will do the trick.