Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 338753 | Differences between
and this patch

Collapse All | Expand All

(-)lighttpd-1.4.26-r1.ebuild (-25 / +20 lines)
Lines 12-19 Link Here
12
12
13
LICENSE="BSD"
13
LICENSE="BSD"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
16
IUSE="bzip2 doc fam fastcgi gdbm ipv6 ldap lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr"
16
IUSE="bzip2 doc fam fastcgi gdbm ipv6 ldap libev lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr"
17
17
18
RDEPEND="
18
RDEPEND="
19
	>=sys-libs/zlib-1.1
19
	>=sys-libs/zlib-1.1
Lines 21-26 Link Here
21
	fam?      ( virtual/fam )
21
	fam?      ( virtual/fam )
22
	gdbm?     ( sys-libs/gdbm )
22
	gdbm?     ( sys-libs/gdbm )
23
	ldap?     ( >=net-nds/openldap-2.1.26 )
23
	ldap?     ( >=net-nds/openldap-2.1.26 )
24
	libev?    ( dev-libs/libev )
24
	lua?      ( >=dev-lang/lua-5.1 )
25
	lua?      ( >=dev-lang/lua-5.1 )
25
	memcache? ( dev-libs/libmemcache )
26
	memcache? ( dev-libs/libmemcache )
26
	mysql?    ( >=virtual/mysql-4.0 )
27
	mysql?    ( >=virtual/mysql-4.0 )
Lines 54-59 Link Here
54
	# enable stat() caching
55
	# enable stat() caching
55
	use fam && \
56
	use fam && \
56
		dosed 's|#\(.*stat-cache.*$\)|\1|' ${config}
57
		dosed 's|#\(.*stat-cache.*$\)|\1|' ${config}
58
	
59
	# automatically listen on IPv6 if built with USE=ipv6. Bug #234987
60
	use ipv6 && \
61
		dosed 's|# server.use-ipv6|server.use-ipv6|' ${config}
57
}
62
}
58
63
59
# remove non-essential stuff (for USE=minimal)
64
# remove non-essential stuff (for USE=minimal)
Lines 86-92 Link Here
86
		ewarn "Otherwise you lose support for some core options such"
91
		ewarn "Otherwise you lose support for some core options such"
87
		ewarn "as conditionals and modules such as mod_re{write,direct}"
92
		ewarn "as conditionals and modules such as mod_re{write,direct}"
88
		ewarn "and mod_ssi."
93
		ewarn "and mod_ssi."
89
		ebeep 5
90
	fi
94
	fi
91
95
92
	use php && require_php_with_use cgi
96
	use php && require_php_with_use cgi
Lines 95-108 Link Here
95
	enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
99
	enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
96
}
100
}
97
101
98
src_prepare() {
102
#src_prepare() {
99
	# dev-python/docutils installs rst2html.py not rst2html
103
	# dev-python/docutils installs rst2html.py not rst2html
100
	sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \
104
	#sed -i -e 's|\(rst2html\)|\1.py|g' doc/Makefile.am || \
101
		die "sed doc/Makefile.am failed"
105
	#	die "sed doc/Makefile.am failed"
102
106
103
	epatch "${FILESDIR}/1.4.26-fix-ssl-return-check-r2716.patch"
107
	#epatch "${FILESDIR}/1.4.26-fix-ssl-return-check-r2716.patch"
104
	eautoreconf
108
	#eautoreconf
105
}
109
#}
106
110
107
src_configure() {
111
src_configure() {
108
	econf --libdir=/usr/$(get_libdir)/${PN} \
112
	econf --libdir=/usr/$(get_libdir)/${PN} \
Lines 111-118 Link Here
111
		$(use_with bzip2) \
115
		$(use_with bzip2) \
112
		$(use_with fam) \
116
		$(use_with fam) \
113
		$(use_with gdbm) \
117
		$(use_with gdbm) \
114
		$(use_with lua) \
115
		$(use_with ldap) \
118
		$(use_with ldap) \
119
		$(use_with libev) \
120
		$(use_with lua) \
116
		$(use_with memcache) \
121
		$(use_with memcache) \
117
		$(use_with mysql) \
122
		$(use_with mysql) \
118
		$(use_with pcre) \
123
		$(use_with pcre) \
Lines 164-171 Link Here
164
	update_config
169
	update_config
165
170
166
	# docs
171
	# docs
167
	dodoc AUTHORS README NEWS doc/*.sh
172
	dodoc AUTHORS README NEWS doc/scripts/*.sh
168
	newdoc doc/lighttpd.conf lighttpd.conf.distrib
173
	newdoc doc/config//lighttpd.conf lighttpd.conf.distrib
169
174
170
	use doc && dohtml -r doc/*
175
	use doc && dohtml -r doc/*
171
176
Lines 192-212 Link Here
192
		einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
197
		einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
193
		einfo "spawn-fcgi's init script configuration is now located"
198
		einfo "spawn-fcgi's init script configuration is now located"
194
		einfo "at /etc/conf.d/spawn-fcgi."
199
		einfo "at /etc/conf.d/spawn-fcgi."
195
		echo
196
	fi
200
	fi
197
201
198
	if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
202
	if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
199
		ewarn "Gentoo has a customized configuration,"
203
		elog "Gentoo has a customized configuration,"
200
		ewarn "which is now located in /etc/lighttpd.  Please migrate your"
204
		elog "which is now located in /etc/lighttpd.  Please migrate your"
201
		ewarn "existing configuration."
205
		elog "existing configuration."
202
		ebeep 5
203
	fi
204
205
	if use fastcgi; then
206
		ewarn "As of lighttpd-1.4.22, spawn-fcgi is provided by the separate"
207
		ewarn "www-servers/spawn-fcgi package. Please install it manually, if"
208
		ewarn "you use spawn-fcgi."
209
		ewarn "It features a new, more featurefull init script - please migrate"
210
		ewarn "your configuration!"
211
	fi
206
	fi
212
}
207
}

Return to bug 338753