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

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

Return to bug 151227