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

Collapse All | Expand All

(-)/usr/portage/net-misc/nxserver-freenx/nxserver-freenx-0.7.1.ebuild (+6 lines)
Lines 52-57 Link Here
52
	epatch "${FILESDIR}"/${P}-cups.patch
52
	epatch "${FILESDIR}"/${P}-cups.patch
53
	epatch "${FILESDIR}"/${P}-nxdialog.patch
53
	epatch "${FILESDIR}"/${P}-nxdialog.patch
54
	epatch "${FILESDIR}"/${P}-nscd.patch
54
	epatch "${FILESDIR}"/${P}-nscd.patch
55
	epatch "${FILESDIR}"/${P}-usession_fixes.patch
55
56
56
	sed -i "/PATH_LIB=/s/lib/$(get_libdir)/g" nxloadconfig || die
57
	sed -i "/PATH_LIB=/s/lib/$(get_libdir)/g" nxloadconfig || die
57
	sed -i "/REAL_PATH_BIN=/s/lib/$(get_libdir)/g" nxloadconfig || die
58
	sed -i "/REAL_PATH_BIN=/s/lib/$(get_libdir)/g" nxloadconfig || die
Lines 72-77 Link Here
72
		sed -i '/ENABLE_KDE_CUPS=/s/"0"/"1"/' nxloadconfig || die
73
		sed -i '/ENABLE_KDE_CUPS=/s/"0"/"1"/' nxloadconfig || die
73
		sed -i '/ENABLE_KDE_CUPS=/s/"0"/"1"/' node.conf || die
74
		sed -i '/ENABLE_KDE_CUPS=/s/"0"/"1"/' node.conf || die
74
	fi
75
	fi
76
	einfo "Enabling usession support."
77
	sed -i '/ENABLE_USESSION=/s/"0"/"1"/' nxloadconfig || die
78
	sed -i '/ENABLE_USESSION=/s/"0"/"1"/' node.conf || die
75
}
79
}
76
80
77
src_compile() {
81
src_compile() {
Lines 119-129 Link Here
119
	if [[ ${ROOT} == "/" ]]; then
123
	if [[ ${ROOT} == "/" ]]; then
120
		usermod -s /usr/bin/nxserver nx || die "Unable to set login shell of nx user!!"
124
		usermod -s /usr/bin/nxserver nx || die "Unable to set login shell of nx user!!"
121
		usermod -d ${NX_HOME_DIR} nx || die "Unable to set home directory of nx user!!"
125
		usermod -d ${NX_HOME_DIR} nx || die "Unable to set home directory of nx user!!"
126
		usermod -G utmp nx || die "Unable to add nx user to utmp group!!"
122
	else
127
	else
123
		elog "If you had another NX server installed before, please make sure"
128
		elog "If you had another NX server installed before, please make sure"
124
		elog "the nx user account is correctly set to:"
129
		elog "the nx user account is correctly set to:"
125
		elog " * login shell: /usr/bin/nxserver"
130
		elog " * login shell: /usr/bin/nxserver"
126
		elog " * home directory: ${NX_HOME_DIR}"
131
		elog " * home directory: ${NX_HOME_DIR}"
132
		elog " * supplementary groups: utmp"
127
	fi
133
	fi
128
134
129
	elog "To complete the installation, run:"
135
	elog "To complete the installation, run:"

Return to bug 198934