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

Collapse All | Expand All

(-)wine-1.3.21.ebuild.orig (+13 lines)
Lines 100-105 Link Here
100
	sys-devel/bison
100
	sys-devel/bison
101
	sys-devel/flex"
101
	sys-devel/flex"
102
102
103
pkg_setup() {
104
	enewgroup wine
105
}
106
103
src_unpack() {
107
src_unpack() {
104
	if use win64 ; then
108
	if use win64 ; then
105
		[[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
109
		[[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
Lines 209-216 Link Here
209
	if ! use perl ; then
213
	if ! use perl ; then
210
		rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die
214
		rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die
211
	fi
215
	fi
216
217
	# only users in the wine group may be able to use it
218
	fowners -R :wine /usr/{bin,lib}/*
219
	fperms -R o-rwx,g-w /usr/{bin,lib}/*
212
}
220
}
213
221
214
pkg_postinst() {
222
pkg_postinst() {
215
	paxctl -psmr "${ROOT}"/usr/bin/wine{,-preloader} 2>/dev/null #255055
223
	paxctl -psmr "${ROOT}"/usr/bin/wine{,-preloader} 2>/dev/null #255055
224
225
	ewarn "You must be in the wine group in order to be able to use wine."
226
	ewarn "It is recommended to use a separate user for running wine in order"
227
	ewarn "to improve security by isolation. See Risks section in the wine FAQ:"
228
	ewarn "http://wiki.winehq.org/FAQ#head-3cb8f054b33a63be30f98a1b6225d74e305a0459"
216
}
229
}

Return to bug 369167