Rewrite of bsd.apache.mk

(committed, see PR ports/156533)

apache13 is already deprecated upstream and apache20 will be deprecated with the release of apache24.

This means apache22 will be the default version as soon apache24 is in the ports tree.

Therefore Mk/bsd.apache.mk was rewritten to support this transition with a new logic and some new parameters.

Parameter APACHE_PORT:

The parameter APACHE_PORT is not for usage inside the ports Makefile, it is a user controlled parameter to select the default apache port.

The following example will show how to use this parameter in /etc/make.conf to make apache22 the default apache port.

To get a list of "possible" valid values execute the command:

Parameters for usage inside a ports Makefile:

parameter

description

USE_APACHE

Set apache and apxs as build and run dependency

USE_APACHE_BUILD

Set apache and apxs as build dependency

USE_APACHE_RUN

Set apache and apxs as run dependency

The following example is representative of all three possible parameters to use.

Examples:

USE_APACHE= 22

specify exact version

USE_APACHE= 20+

specify [min] version, no [max] version

USE_APACHE= 20-22

specify [min]-[max] range

USE_APACHE= -22

specify [max] version, no [min] version

Note:

Internal Variables to control which apache version will be chosen.

As soon apache24 hits the tree this will be changed to

Note: apache13 and apache20 is already removed in this example.

Note for maintainers and porters

At the moment there are many ports with USE_APACHE= ab+ defined.

Those ports should be checked if they are really working together with apache24, else they should use the new form "[min]-[max]" or "-[max]."

Many ports don't use apache or apxs during build time, those ports should be changed to use USE_APACHE_RUN instead.

Future Improvements:

bsd.apache.mk (last edited 2012-01-05T23:27:57+0000 by OlliHauer)