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/22 15:54] – remove false "known issues" OlliHauerbsd.apache.mk [2012/01/05 23:27] (current) – adjust valid apache versions OlliHauer
Line 1: Line 1:
 ==== Rewrite of bsd.apache.mk ==== ==== Rewrite of bsd.apache.mk ====
-(Not yet committed, for status see PR [[http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/156533|ports/156533]])+(committed, see PR [[http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/156533|ports/156533]])
  
 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
   * The following values for USE_APACHE are reserved and only valid in apache-server ports!   * The following values for USE_APACHE are reserved and only valid in apache-server ports!
     * USE_APACHE= common13, common20, and common22     * USE_APACHE= common13, common20, and common22
- 
-=== Future Improvements: === 
-  * New keywords @apadd and @apdel for usage in pkg-plist will be added as feature if the rewritten bsd.apache.mk went into ports/Mk. This is already implemented but not on high priority. 
  
 === 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 ===
Line 47: Line 58:
  
 Many ports don't use apache or apxs during build time, those ports should be changed to use USE_APACHE_RUN instead. Many ports don't use apache or apxs during build time, those ports should be changed to use USE_APACHE_RUN instead.
 +
 +=== Future Improvements: ===
 +  * New keywords @apadd and @apdel for usage in pkg-plist will be added as feature if the rewritten bsd.apache.mk went into ports/Mk. This is already implemented but not on high priority.
  
  • bsd.apache.mk.1303487690.txt.gz
  • Last modified: 2011/04/22 15:54
  • by OlliHauer