Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
bsd.apache.mk [2011/04/24 17:49] – bsd.apache.mk was committed, placeFuture Improvements to the end OlliHauerbsd.apache.mk [2012/01/05 23:27] (current) – adjust valid apache versions OlliHauer
Line 4: Line 4:
 apache13 is already [[http://httpd.apache.org/docs/1.3/|deprecated]] upstream and apache20 will be deprecated with the release of apache24. apache13 is already [[http://httpd.apache.org/docs/1.3/|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.+<del>This means apache22 will be the default version as soon apache24 is in the ports tree.</del>
  
 Therefore Mk/bsd.apache.mk was rewritten to support this transition with a new logic and some new parameters. 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.
 +
 +APACHE_PORT= www/apache22
 +
 +To get  a list of "possible" valid values execute the command:
 +$> egrep 'apache[12]' ports/www/Makefile | awk '{print "www/" $3}'
 +
 +=== Parameters for usage inside a ports Makefile: ===
  
 ^ parameter ^ description ^ ^ parameter ^ description ^
Line 18: Line 30:
  
 | USE_APACHE= 22 | specify exact version | | USE_APACHE= 22 | specify exact version |
-| USE_APACHE= 1.3**+** | specify [min] version, no [max] version | +| USE_APACHE= 20**+** | specify [min] version, no [max] version | 
-| USE_APACHE= 13**-**22 | specify [min]-[max] range | +| USE_APACHE= 20**-**22 | specify [min]-[max] range | 
-| USE_APACHE= **-**2.2 | specify [max] version, no [min] version |+| USE_APACHE= **-**22 | specify [max] version, no [min] version |
  
 === Note: === === Note: ===
-  * Values can be specified //with and without **"**//**."** between major and minor version numbers. For example 22 is equal to 2.2+  * In the past Values could be specified //with and without **"**//**."** between major and minor version numbers. //This has changed, only values without "." are accepted.//
   * If "+" is specified and no apache is installed, then //${DEFAULT_APACHE_VERSION}// will be used.   * If "+" is specified and no apache is installed, then //${DEFAULT_APACHE_VERSION}// will be used.
   * Valid version numbers are specified in the variable APACHE_SUPPORTED_VERSION below   * Valid version numbers are specified in the variable APACHE_SUPPORTED_VERSION below
Line 30: Line 42:
  
 === Internal Variables to control which apache version will be chosen. === === Internal Variables to control which apache version will be chosen. ===
-  * DEFAULT_APACHE_VERSION=     13 +  * DEFAULT_APACHE_VERSION=     22 
-  * APACHE_SUPPORTED_VERSION=   13 20 22 # preferred version first+  * APACHE_SUPPORTED_VERSION=   22 20 # preferred version first
  
 As soon apache24 hits the tree this will be changed to As soon apache24 hits the tree this will be changed to
  
   * DEFAULT_APACHE_VERSION=     22   * DEFAULT_APACHE_VERSION=     22
-  * APACHE_SUPPORTED_VERSION=   22 24 13 20 # preferred version first+  * APACHE_SUPPORTED_VERSION=   22 24 # preferred version first 
 + 
 +Note: apache13 and apache20 is already removed in this example.
  
 === Note for maintainers and porters === === Note for maintainers and porters ===
  • bsd.apache.mk.1303667391.txt.gz
  • Last modified: 2011/04/24 17:49
  • by OlliHauer