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

Collapse All | Expand All

(-)/usr/portage/www-servers/thttpd/thttpd-2.25b-r5.ebuild (-1 / +9 lines)
Lines 15-26 Link Here
15
KEYWORDS="~amd64 ~hppa ppc x86"
15
KEYWORDS="~amd64 ~hppa ppc x86"
16
IUSE="static"
16
IUSE="static"
17
17
18
THTTPD_USER=thttpd
19
THTTPD_GROUP=thttpd
20
18
src_unpack() {
21
src_unpack() {
19
	unpack ${A}
22
	unpack ${A}
20
	cd ${S}
23
	cd ${S}
21
	epatch ${FILESDIR}/${MY_P}/fix-insecure-tmp-creation-CVE-2005-3124.diff
24
	epatch ${FILESDIR}/${MY_P}/fix-insecure-tmp-creation-CVE-2005-3124.diff
22
}
25
}
23
26
27
pkg_setup() {
28
	enewgroup ${THTTPD_GROUP}
29
	enewuser ${THTTPD_USER}  -1 -1 -1 ${THTTPD_GROUP}
30
}
31
24
src_compile() {
32
src_compile() {
25
	## TODO: what to do with IPv6?
33
	## TODO: what to do with IPv6?
26
34
Lines 35-41 Link Here
35
	dodir /usr/share/man/man1
43
	dodir /usr/share/man/man1
36
	make prefix=${D}/usr \
44
	make prefix=${D}/usr \
37
		MANDIR=${D}/usr/share/man \
45
		MANDIR=${D}/usr/share/man \
38
		WEBGROUP=nogroup \
46
		WEBGROUP=${THTTPD_GROUP} \
39
		WEBDIR=${D}/var/www/localhost \
47
		WEBDIR=${D}/var/www/localhost \
40
		"$@" install || die "make install failed"
48
		"$@" install || die "make install failed"
41
49

Return to bug 151227