Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 544164
Collapse All | Expand All

(-)a/net-fs/nfs-utils/nfs-utils-2.1.1-r1.ebuild (+8 lines)
Lines 54-59 Link Here
54
DEPEND="${DEPEND_COMMON}
54
DEPEND="${DEPEND_COMMON}
55
	virtual/pkgconfig"
55
	virtual/pkgconfig"
56
56
57
pkg_setup() {
58
        enewgroup statd
59
        enewuser statd -1 -1 /var/lib/nfs statd
60
}
61
57
src_prepare() {
62
src_prepare() {
58
	epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
63
	epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
59
	epatch "${FILESDIR}"/${PN}-1.2.8-cross-build.patch
64
	epatch "${FILESDIR}"/${PN}-1.2.8-cross-build.patch
Lines 160-165 Link Here
160
		cp -pPR "${f}" "${EROOT}"/var/lib/nfs/
165
		cp -pPR "${f}" "${EROOT}"/var/lib/nfs/
161
	done
166
	done
162
167
168
	chown statd "${EROOT}"/var/lib/nfs{,/state,/sm{,.bak}}
169
	chmod 700 "${EROOT}"/var/lib/nfs/sm{,.bak}
170
163
	if systemd_is_booted; then
171
	if systemd_is_booted; then
164
		if [[ ${REPLACING_VERSIONS} < 1.3.0 ]]; then
172
		if [[ ${REPLACING_VERSIONS} < 1.3.0 ]]; then
165
			ewarn "We have switched to upstream systemd unit files. Since"
173
			ewarn "We have switched to upstream systemd unit files. Since"

Return to bug 544164