new apache ebuild
Hanno Böck

Hanno Böck commited on 2008-06-03 03:15:45
Zeige 2 geänderte Dateien mit 182 Einfügungen und 0 Löschungen.

... ...
@@ -3,8 +3,10 @@ AUX apache-ssl-fix.diff 2993 RMD160 6a7627b2c957254e1a1bfc27e8101ff5da04fab5 SHA
3 3
 DIST gentoo-apache-2.2.6-r6-20071215.tar.bz2 60964 RMD160 b2ea87d18117566a644fe012d23affd38d1f7ef6 SHA1 7a03af24bddf7e9b300eaad891a467ba25ab53ad SHA256 e2ec95dbfd3d406d16a5694746ade43863712037c12ac70f3433b16c75bf5638
4 4
 DIST gentoo-apache-2.2.6-r7-20080107.tar.bz2 61536 RMD160 b08af8e9d840b49685bf7a67243b80dc4e346efa SHA1 27278395f5ad01aef0f9c9fcf1c25565866422a0 SHA256 b2116b2b09ba3a5d4e1130bf7e202cc95312ac5b4f78f8653f15e2842bbbf92f
5 5
 DIST gentoo-apache-2.2.8-20080119.tar.bz2 60363 RMD160 c54970fdbd8e5906db5a86d383e15d5f542f2ab2 SHA1 48e98685c38e6940f2ea120419ce8d3c216a054e SHA256 6086dcf40451c348305e100551ebb1516050b50803e837cfcf53fa53ffd4d292
6
+DIST gentoo-apache-2.2.8-r3-20080601.tar.bz2 60383 RMD160 f7d662ac9bce6bcc0e0506503be166fdb7a95eba SHA1 1d87d6ed727a8b7074446a472eb46d2b1a9eb532 SHA256 bc1bdc87aab4cfc377e2016e69f715495097bf37c47112ac6d52929adf0fbc40
6 7
 DIST httpd-2.2.6.tar.bz2 4717066 RMD160 5ae895c6898213e1e3b7e7b02cdfcbe5b36a108f SHA1 e6ef926ecd1f9a412af8c266239f0a6f58c63854 SHA256 f27cd9df50a2acd9df8f37520f62f6ce51758689d425ead5883e75ff5ed6548c
7 8
 DIST httpd-2.2.8.tar.bz2 4799055 RMD160 0736ea9617bafaa1c8cd34ce4fc1c7a659afea57 SHA1 5074904435d3d942ce2dc96c44b07294b8eaca77 SHA256 2ad8d0db1e478838ba88a0ddaf538c7150027d937b017739fdcb3fabb96ebd39
8 9
 EBUILD apache-2.2.6-r6.ebuild 5217 RMD160 6411c458a443de97e94a3fa328b05b100245844f SHA1 3848dc1b562fc29322c3452e9fd5820284ed08d3 SHA256 2f51672862d7b3d12c15c8c0ea05006da7b279b226c98aafd7d090c61e0520a4
9 10
 EBUILD apache-2.2.6-r7.ebuild 5232 RMD160 0a8bff32137361ea80ac2e3e3a03b92ce651ea62 SHA1 ecf0af05b58a7a21fb9d684402b1257b0d9a6701 SHA256 1c055ad9e7a8ebeeb43bf749a0d09b44e1b076a1c743365f15e3086289e06cc8
11
+EBUILD apache-2.2.8-r3.ebuild 5288 RMD160 096b8185d25c485fd2bd13c09de9de8b5e11dcc8 SHA1 5aff0c23059bb10346c1b2988f496becc28f3a19 SHA256 2cb835468f5968a42b86924909b50cdbd9e0c4e24f0fe30e8c547d82fe49e97a
10 12
 EBUILD apache-2.2.8.ebuild 5232 RMD160 7f823a8c01d09cb40e307db2da939a43f190b46e SHA1 be9a8841b41f21d4cce7c788b8cfd91f50219a35 SHA256 88c6b8321e7b24fa0cc677cff9b4735ff29e28d494d85fe5e3311ba070e48a2e
... ...
@@ -0,0 +1,180 @@
1
+# Copyright 1999-2008 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.2.8-r3.ebuild,v 1.6 2008/06/02 15:05:50 rich0 Exp $
4
+
5
+# latest gentoo apache files
6
+GENTOO_PATCHSTAMP="20080601"
7
+GENTOO_DEVELOPER="hollow"
8
+
9
+# IUSE/USE_EXPAND magic
10
+IUSE_MPMS_FORK="itk peruser prefork"
11
+IUSE_MPMS_THREAD="event worker"
12
+
13
+IUSE_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon
14
+authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default
15
+authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta
16
+charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires
17
+ext_filter file_cache filter headers ident imagemap include info log_config
18
+log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp
19
+proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling
20
+status substitute unique_id userdir usertrack version vhost_alias"
21
+
22
+# inter-module dependencies
23
+# TODO: this may still be incomplete
24
+MODULE_DEPENDS="
25
+	dav_fs:dav
26
+	dav_lock:dav
27
+	deflate:filter
28
+	disk_cache:cache
29
+	ext_filter:filter
30
+	file_cache:cache
31
+	log_forensic:log_config
32
+	logio:log_config
33
+	mem_cache:cache
34
+	mime_magic:mime
35
+	proxy_ajp:proxy
36
+	proxy_balancer:proxy
37
+	proxy_connect:proxy
38
+	proxy_ftp:proxy
39
+	proxy_http:proxy
40
+	substitute:filter
41
+"
42
+
43
+# module<->define mappings
44
+MODULE_DEFINES="
45
+	auth_digest:AUTH_DIGEST
46
+	authnz_ldap:AUTHNZ_LDAP
47
+	cache:CACHE
48
+	dav:DAV
49
+	dav_fs:DAV
50
+	dav_lock:DAV
51
+	disk_cache:CACHE
52
+	file_cache:CACHE
53
+	info:INFO
54
+	ldap:LDAP
55
+	mem_cache:CACHE
56
+	proxy:PROXY
57
+	proxy_ajp:PROXY
58
+	proxy_balancer:PROXY
59
+	proxy_connect:PROXY
60
+	proxy_ftp:PROXY
61
+	proxy_http:PROXY
62
+	ssl:SSL
63
+	status:STATUS
64
+	suexec:SUEXEC
65
+	userdir:USERDIR
66
+"
67
+
68
+# critical modules for the default config
69
+MODULE_CRITICAL="
70
+	authz_host
71
+	dir
72
+	mime
73
+"
74
+
75
+inherit apache-2
76
+
77
+DESCRIPTION="The Apache Web Server."
78
+HOMEPAGE="http://httpd.apache.org/"
79
+
80
+# some helper scripts are apache-1.1, thus both are here
81
+LICENSE="Apache-2.0 Apache-1.1"
82
+SLOT="2"
83
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ~ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
84
+IUSE="sni"
85
+
86
+DEPEND="${DEPEND}
87
+	apache2_modules_deflate? ( sys-libs/zlib )"
88
+
89
+RDEPEND="${RDEPEND}
90
+	apache2_modules_mime? ( app-misc/mime-types )"
91
+
92
+src_unpack() {
93
+	if ! use sni ; then
94
+		EPATCH_EXCLUDE="04_all_mod_ssl_tls_sni.patch"
95
+	fi
96
+
97
+	apache-2_src_unpack
98
+	cd "${S}"
99
+	epatch "${FILESDIR}/apache-noip.diff" || die
100
+}
101
+
102
+pkg_postinst() {
103
+	apache-2_pkg_postinst
104
+
105
+	# previous installations of apache-2.2 installed the upstream configuration
106
+	# files, which shouldn't even have been installed!
107
+	if has_version '>=www-servers/apache-2.2.4' ; then
108
+		if [[ -f "${ROOT}"etc/apache2/apache2.conf ]] ; then
109
+			rm -f "${ROOT}"/etc/apache2/apache2.conf >/dev/null 2>&1
110
+		fi
111
+
112
+		for i in extra original ; do
113
+			if [[ -d "${ROOT}"/etc/apache2/${i} ]] ; then
114
+				rm -rf "${ROOT}"/etc/apache2/${i} >/dev/null 2>&1
115
+			fi
116
+		done
117
+	fi
118
+
119
+	# note regarding IfDefine changes
120
+	if has_version '<www-servers/apache-2.2.6-r1' ; then
121
+		elog
122
+		elog "When upgrading from versions 2.2.6 or earlier, please be aware"
123
+		elog "that the define for mod_authnz_ldap has changed from AUTH_LDAP"
124
+		elog "to AUTHNZ_LDAP. Additionally mod_auth_digest needs to be enabled"
125
+		elog "with AUTH_DIGEST now."
126
+		elog
127
+	fi
128
+
129
+	# note the changes regarding DEFAULT_VHOST and SSL_DEFAULT_VHOST
130
+	if has_version '<www-servers/apache-2.2.4-r7' ; then
131
+		elog
132
+		elog "Listen directives have been moved into the default virtual host"
133
+		elog "configuation. At least DEFAULT_VHOST has been enabled for you"
134
+		elog "(depending on your USE-flags.)"
135
+		elog
136
+		elog "If you disable DEFAULT_VHOST or SSL_DEFAULT_VHOST, there will"
137
+		elog "be no listening sockets available."
138
+		elog
139
+	fi
140
+
141
+	# note the user of the config changes
142
+	if has_version '<www-servers/apache-2.2.4-r5' ; then
143
+		elog
144
+		elog "Please make sure that you update your /etc directory."
145
+		elog "Between the versions, we had to changes some config files"
146
+		elog "and move some stuff out of the main httpd.conf file to a seperate"
147
+		elog "modules.d entry."
148
+		elog
149
+		elog "Thus please update your /etc directory either via etc-update,"
150
+		elog "dispatch-conf or conf-update !"
151
+		elog
152
+	fi
153
+
154
+	# check for dual/upgrade install
155
+	if has_version '<www-servers/apache-2.2.0' ; then
156
+		elog
157
+		elog "When upgrading from versions below 2.2.0 to this version, you"
158
+		elog "need to rebuild all your modules. Please do so for your modules"
159
+		elog "to continue working correctly."
160
+		elog
161
+		elog "Also note that some configuration directives have been"
162
+		elog "split into their own files under ${ROOT}etc/apache2/modules.d/"
163
+		elog "and that some modules, foremost the authentication related ones,"
164
+		elog "have been renamed."
165
+		elog
166
+		elog "Some examples:"
167
+		elog "  - USERDIR is now configureable in ${ROOT}etc/apache2/modules.d/00_mod_userdir.conf."
168
+		elog
169
+		elog "For more information on what you may need to change, please"
170
+		elog "see the overview of changes at:"
171
+		elog "http://httpd.apache.org/docs/2.2/new_features_2_2.html"
172
+		elog "and the upgrading guide at:"
173
+		elog "http://httpd.apache.org/docs/2.2/upgrading.html"
174
+		elog
175
+	fi
176
+
177
+	# cleanup the vim backup files, placed in /etc/apache2 by the last
178
+	# patchtarball (gentoo-apache-2.2.4-r7-20070615)
179
+	rm -f "${ROOT}etc/apache2/modules.d/*.conf~"
180
+}
0 181