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

Collapse All | Expand All

(-)thttpd-2.25b-r7.ebuild (-9 / +14 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2009 Gentoo Foundation
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/thttpd-2.25b-r7.ebuild,v 1.7 2009/08/09 13:39:07 ssuominen Exp $
3
# $Header: $
4
5
EAPI=2
4
6
5
inherit eutils flag-o-matic
7
inherit eutils flag-o-matic
6
8
Lines 18-41 Link Here
18
THTTPD_USER=thttpd
20
THTTPD_USER=thttpd
19
THTTPD_GROUP=thttpd
21
THTTPD_GROUP=thttpd
20
22
21
src_unpack() {
23
src_prepare() {
22
	unpack ${A}
23
	cd "${S}"
24
	epatch "${FILESDIR}"/${MY_P}/*.diff
24
	epatch "${FILESDIR}"/${MY_P}/*.diff
25
	epatch "${FILESDIR}"/${P}-glibc-2.10.patch
25
	epatch "${FILESDIR}"/${P}-glibc-2.10.patch
26
}
26
}
27
27
28
pkg_setup() {
28
pkg_setup() {
29
	ebegin "Creating thttpd user and group"
29
	enewgroup ${THTTPD_GROUP}
30
	enewgroup ${THTTPD_GROUP}
30
	enewuser ${THTTPD_USER}  -1 -1 -1 ${THTTPD_GROUP}
31
	enewuser ${THTTPD_USER} -1 -1 -1 ${THTTPD_GROUP}
32
	eend ${?}
31
}
33
}
32
34
33
src_compile() {
35
src_configure() {
34
	## TODO: what to do with IPv6?
36
	## TODO: what to do with IPv6?
37
	## apparently ipv6 is supported out-of-the-box
35
	use static && append-ldflags -static
38
	use static && append-ldflags -static
36
37
	econf || die "econf failed"
39
	econf || die "econf failed"
38
	emake || die "emake failed"
40
}
41
42
src_compile() {
43
	emake CC="$(tc-getCC)" || die "emake failed"
39
}
44
}
40
45
41
src_install () {
46
src_install () {

Return to bug 331747