You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2005/10/18 17:52:24 UTC
svn commit: r326129 - in /httpd/httpd/branches/2.0.x: ./ build/
docs/manual/mod/ include/ modules/metadata/ server/
Author: nd
Date: Tue Oct 18 08:51:57 2005
New Revision: 326129
URL: http://svn.apache.org/viewcvs?rev=326129&view=rev
Log:
merge mod_version_for_2.0.x branch back to branches/2.0.x
* merge 160788 to 326121 from branches/mod_version_for_2.0.x, but leave out
generated docs files (will cleanly rebuild later)
Reviewed by: Paul Querna, Bill Rowe, (Justin Erenkrantz), me
Added:
httpd/httpd/branches/2.0.x/docs/manual/mod/mod_version.html
- copied unchanged from r326121, httpd/httpd/branches/mod_version_for_2.0.x/docs/manual/mod/mod_version.html
httpd/httpd/branches/2.0.x/docs/manual/mod/mod_version.html.en
- copied unchanged from r326121, httpd/httpd/branches/mod_version_for_2.0.x/docs/manual/mod/mod_version.html.en
httpd/httpd/branches/2.0.x/docs/manual/mod/mod_version.html.ja.euc-jp
- copied unchanged from r326121, httpd/httpd/branches/mod_version_for_2.0.x/docs/manual/mod/mod_version.html.ja.euc-jp
httpd/httpd/branches/2.0.x/docs/manual/mod/mod_version.html.ko.euc-kr
- copied unchanged from r326121, httpd/httpd/branches/mod_version_for_2.0.x/docs/manual/mod/mod_version.html.ko.euc-kr
httpd/httpd/branches/2.0.x/docs/manual/mod/mod_version.xml
- copied unchanged from r326121, httpd/httpd/branches/mod_version_for_2.0.x/docs/manual/mod/mod_version.xml
httpd/httpd/branches/2.0.x/docs/manual/mod/mod_version.xml.ja
- copied unchanged from r326121, httpd/httpd/branches/mod_version_for_2.0.x/docs/manual/mod/mod_version.xml.ja
httpd/httpd/branches/2.0.x/docs/manual/mod/mod_version.xml.ko
- copied unchanged from r326121, httpd/httpd/branches/mod_version_for_2.0.x/docs/manual/mod/mod_version.xml.ko
httpd/httpd/branches/2.0.x/docs/manual/mod/mod_version.xml.meta
- copied unchanged from r326121, httpd/httpd/branches/mod_version_for_2.0.x/docs/manual/mod/mod_version.xml.meta
httpd/httpd/branches/2.0.x/modules/metadata/NWGNUmodversion
- copied unchanged from r326121, httpd/httpd/branches/mod_version_for_2.0.x/modules/metadata/NWGNUmodversion
httpd/httpd/branches/2.0.x/modules/metadata/mod_version.c
- copied unchanged from r326121, httpd/httpd/branches/mod_version_for_2.0.x/modules/metadata/mod_version.c
httpd/httpd/branches/2.0.x/modules/metadata/mod_version.dsp
- copied unchanged from r326121, httpd/httpd/branches/mod_version_for_2.0.x/modules/metadata/mod_version.dsp
httpd/httpd/branches/2.0.x/modules/metadata/mod_version.exp
- copied unchanged from r326121, httpd/httpd/branches/mod_version_for_2.0.x/modules/metadata/mod_version.exp
Modified:
httpd/httpd/branches/2.0.x/Apache.dsw
httpd/httpd/branches/2.0.x/CHANGES
httpd/httpd/branches/2.0.x/Makefile.win
httpd/httpd/branches/2.0.x/build/mkconfNW.awk
httpd/httpd/branches/2.0.x/include/ap_mmn.h
httpd/httpd/branches/2.0.x/include/ap_release.h
httpd/httpd/branches/2.0.x/include/httpd.h
httpd/httpd/branches/2.0.x/modules/metadata/NWGNUmakefile
httpd/httpd/branches/2.0.x/modules/metadata/config.m4
httpd/httpd/branches/2.0.x/server/core.c
Modified: httpd/httpd/branches/2.0.x/Apache.dsw
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/Apache.dsw?rev=326129&r1=326128&r2=326129&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/Apache.dsw (original)
+++ httpd/httpd/branches/2.0.x/Apache.dsw Tue Oct 18 08:51:57 2005
@@ -180,6 +180,9 @@
Project_Dep_Name mod_usertrack
End Project Dependency
Begin Project Dependency
+ Project_Dep_Name mod_version
+ End Project Dependency
+ Begin Project Dependency
Project_Dep_Name mod_vhost_alias
End Project Dependency
Begin Project Dependency
@@ -1567,6 +1570,27 @@
###############################################################################
Project: "mod_usertrack"=".\modules\metadata\mod_usertrack.dsp" - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name libapr
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name libaprutil
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name libhttpd
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "mod_version"=".\modules\metadata\mod_version.dsp" - Package Owner=<4>
Package=<5>
{{{
Modified: httpd/httpd/branches/2.0.x/CHANGES
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/CHANGES?rev=326129&r1=326128&r2=326129&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/CHANGES [utf-8] (original)
+++ httpd/httpd/branches/2.0.x/CHANGES [utf-8] Tue Oct 18 08:51:57 2005
@@ -1,7 +1,12 @@
-*- coding: utf-8 -*-
-Changes with Apache 2.0.56-dev
+Changes with Apache 2.0.56
+ *) Added new module mod_version, which provides version dependent
+ configuration containers. [André Malo]
+ *) Add core version query function (ap_get_server_revision) and
+ accompanying ap_version_t structure (minor MMN bump).
+ [André Malo]
Changes with Apache 2.0.55
Modified: httpd/httpd/branches/2.0.x/Makefile.win
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/Makefile.win?rev=326129&r1=326128&r2=326129&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/Makefile.win (original)
+++ httpd/httpd/branches/2.0.x/Makefile.win Tue Oct 18 08:51:57 2005
@@ -278,6 +278,7 @@
$(MAKE) $(MAKEOPT) -f mod_setenvif.mak CFG="mod_setenvif - Win32 $(LONG)" RECURSE=0 $(CTARGET)
$(MAKE) $(MAKEOPT) -f mod_unique_id.mak CFG="mod_unique_id - Win32 $(LONG)" RECURSE=0 $(CTARGET)
$(MAKE) $(MAKEOPT) -f mod_usertrack.mak CFG="mod_usertrack - Win32 $(LONG)" RECURSE=0 $(CTARGET)
+ $(MAKE) $(MAKEOPT) -f mod_version.mak CFG="mod_version - Win32 $(LONG)" RECURSE=0 $(CTARGET)
cd ..\..
cd modules\proxy
$(MAKE) $(MAKEOPT) -f mod_proxy.mak CFG="mod_proxy - Win32 $(LONG)" RECURSE=0 $(CTARGET)
@@ -408,6 +409,7 @@
copy modules\metadata\$(LONG)\mod_setenvif.$(src_so) "$(inst_so)" <.y
copy modules\metadata\$(LONG)\mod_unique_id.$(src_so) "$(inst_so)" <.y
copy modules\metadata\$(LONG)\mod_usertrack.$(src_so) "$(inst_so)" <.y
+ copy modules\metadata\$(LONG)\mod_version.$(src_so) "$(inst_so)" <.y
copy modules\proxy\$(LONG)\mod_proxy.$(src_so) "$(inst_so)" <.y
copy modules\proxy\$(LONG)\mod_proxy_connect.$(src_so) "$(inst_so)" <.y
copy modules\proxy\$(LONG)\mod_proxy_ftp.$(src_so) "$(inst_so)" <.y
Modified: httpd/httpd/branches/2.0.x/build/mkconfNW.awk
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/build/mkconfNW.awk?rev=326129&r1=326128&r2=326129&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/build/mkconfNW.awk (original)
+++ httpd/httpd/branches/2.0.x/build/mkconfNW.awk Tue Oct 18 08:51:57 2005
@@ -61,6 +61,7 @@
print "#LoadModule status_module modules/status.nlm"
print "#LoadModule unique_id_module modules/uniqueid.nlm"
print "#LoadModule usertrack_module modules/usertrk.nlm"
+ print "#LoadModule version_module modules/modversion.nlm"
print "#LoadModule vhost_alias_module modules/vhost.nlm"
print ""
next
Modified: httpd/httpd/branches/2.0.x/include/ap_mmn.h
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/include/ap_mmn.h?rev=326129&r1=326128&r2=326129&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/include/ap_mmn.h (original)
+++ httpd/httpd/branches/2.0.x/include/ap_mmn.h Tue Oct 18 08:51:57 2005
@@ -85,6 +85,7 @@
* calling ap_setup_prelinked_modules
* 20020903.10 (2.0.55-dev) add ap_log_cerror()
* 20020903.11 (2.0.55-dev) added trace_enable to core_server_config
+ * 20020903.12 (2.0.56-dev) added ap_get_server_revision / ap_version_t
*/
#define MODULE_MAGIC_COOKIE 0x41503230UL /* "AP20" */
@@ -92,7 +93,7 @@
#ifndef MODULE_MAGIC_NUMBER_MAJOR
#define MODULE_MAGIC_NUMBER_MAJOR 20020903
#endif
-#define MODULE_MAGIC_NUMBER_MINOR 11 /* 0...n */
+#define MODULE_MAGIC_NUMBER_MINOR 12 /* 0...n */
/**
* Determine if the server's current MODULE_MAGIC_NUMBER is at least a
Modified: httpd/httpd/branches/2.0.x/include/ap_release.h
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/include/ap_release.h?rev=326129&r1=326128&r2=326129&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/include/ap_release.h (original)
+++ httpd/httpd/branches/2.0.x/include/ap_release.h Tue Oct 18 08:51:57 2005
@@ -17,6 +17,8 @@
#ifndef AP_RELEASE_H
#define AP_RELEASE_H
+#include "apr_general.h" /* stringify */
+
/*
* The below defines the base string of the Server: header. Additional
* tokens can be added via the ap_add_version_component() API call.
@@ -31,9 +33,18 @@
*/
#define AP_SERVER_BASEVENDOR "Apache Software Foundation"
#define AP_SERVER_BASEPRODUCT "Apache"
-#define AP_SERVER_MAJORVERSION "2"
-#define AP_SERVER_MINORVERSION "0"
-#define AP_SERVER_PATCHLEVEL "56-dev"
+
+#define AP_SERVER_MAJORVERSION_NUMBER 2
+#define AP_SERVER_MINORVERSION_NUMBER 0
+#define AP_SERVER_PATCHLEVEL_NUMBER 56
+#define AP_SERVER_ADD_STRING "-dev"
+
+/* keep old macros as well */
+#define AP_SERVER_MAJORVERSION APR_STRINGIFY(AP_SERVER_MAJORVERSION_NUMBER)
+#define AP_SERVER_MINORVERSION APR_STRINGIFY(AP_SERVER_MINORVERSION_NUMBER)
+#define AP_SERVER_PATCHLEVEL APR_STRINGIFY(AP_SERVER_PATCHLEVEL_NUMBER) \
+ AP_SERVER_ADD_STRING
+
#define AP_SERVER_MINORREVISION AP_SERVER_MAJORVERSION "." AP_SERVER_MINORVERSION
#define AP_SERVER_BASEREVISION AP_SERVER_MINORREVISION "." AP_SERVER_PATCHLEVEL
#define AP_SERVER_BASEVERSION AP_SERVER_BASEPRODUCT "/" AP_SERVER_BASEREVISION
Modified: httpd/httpd/branches/2.0.x/include/httpd.h
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/include/httpd.h?rev=326129&r1=326128&r2=326129&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/include/httpd.h (original)
+++ httpd/httpd/branches/2.0.x/include/httpd.h Tue Oct 18 08:51:57 2005
@@ -378,6 +378,25 @@
# define AP_CORE_DECLARE_NONSTD AP_DECLARE_NONSTD
#endif
+/**
+ * The numeric version information is broken out into fields within this
+ * structure.
+ */
+typedef struct {
+ int major; /**< major number */
+ int minor; /**< minor number */
+ int patch; /**< patch number */
+ const char *add_string; /**< additional string like "-dev" */
+} ap_version_t;
+
+/**
+ * Return httpd's version information in a numeric form.
+ *
+ * @param version Pointer to a version structure for returning the version
+ * information.
+ */
+AP_DECLARE(void) ap_get_server_revision(ap_version_t *version);
+
/**
* Get the server version string
* @return The server version string
Modified: httpd/httpd/branches/2.0.x/modules/metadata/NWGNUmakefile
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/modules/metadata/NWGNUmakefile?rev=326129&r1=326128&r2=326129&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/modules/metadata/NWGNUmakefile (original)
+++ httpd/httpd/branches/2.0.x/modules/metadata/NWGNUmakefile Tue Oct 18 08:51:57 2005
@@ -159,6 +159,7 @@
$(OBJDIR)/mimemagi.nlm \
$(OBJDIR)/uniqueid.nlm \
$(OBJDIR)/usertrk.nlm \
+ $(OBJDIR)/modversion.nlm \
$(EOLIST)
#
Modified: httpd/httpd/branches/2.0.x/modules/metadata/config.m4
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/modules/metadata/config.m4?rev=326129&r1=326128&r2=326129&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/modules/metadata/config.m4 (original)
+++ httpd/httpd/branches/2.0.x/modules/metadata/config.m4 Tue Oct 18 08:51:57 2005
@@ -17,6 +17,7 @@
APACHE_MODULE(unique_id, per-request unique ids)
APACHE_MODULE(setenvif, basing ENV vars on headers, , , yes)
+APACHE_MODULE(version, determining httpd version in config files)
APR_ADDTO(LT_LDFLAGS,-export-dynamic)
Modified: httpd/httpd/branches/2.0.x/server/core.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/server/core.c?rev=326129&r1=326128&r2=326129&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/server/core.c (original)
+++ httpd/httpd/branches/2.0.x/server/core.c Tue Oct 18 08:51:57 2005
@@ -2448,6 +2448,14 @@
return APR_SUCCESS;
}
+AP_DECLARE(void) ap_get_server_revision(ap_version_t *version)
+{
+ version->major = AP_SERVER_MAJORVERSION_NUMBER;
+ version->minor = AP_SERVER_MINORVERSION_NUMBER;
+ version->patch = AP_SERVER_PATCHLEVEL_NUMBER;
+ version->add_string = AP_SERVER_ADD_STRING;
+}
+
AP_DECLARE(const char *) ap_get_server_version(void)
{
return (server_version ? server_version : AP_SERVER_BASEVERSION);