diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2009-09-17 09:20:32 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2009-09-17 09:20:32 +0000 |
commit | a2f923aab41ba292fdff782273f92549f57013dd (patch) | |
tree | 8b041ffea38fd977e7f871c7d55619174d25c8f8 /net-misc | |
parent | Fix vnc depend, as discussed in bug #262147 for freenx (diff) | |
download | historical-a2f923aab41ba292fdff782273f92549f57013dd.tar.gz historical-a2f923aab41ba292fdff782273f92549f57013dd.tar.bz2 historical-a2f923aab41ba292fdff782273f92549f57013dd.zip |
Update pkg_postinst to match other NX servers, remove blocker as files do not collide anymore for some time
Package-Manager: portage-2.2_rc40/cvs/Linux x86_64
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/nxserver-freeedition/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/nxserver-freeedition/nxserver-freeedition-3.3.0.27.ebuild | 25 |
2 files changed, 25 insertions, 7 deletions
diff --git a/net-misc/nxserver-freeedition/ChangeLog b/net-misc/nxserver-freeedition/ChangeLog index 7d082d335888..84c1e48e0d8a 100644 --- a/net-misc/nxserver-freeedition/ChangeLog +++ b/net-misc/nxserver-freeedition/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/nxserver-freeedition # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freeedition/ChangeLog,v 1.40 2009/09/01 20:58:12 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freeedition/ChangeLog,v 1.41 2009/09/17 09:20:32 voyageur Exp $ + + 17 Sep 2009; Bernard Cafarelli <voyageur@gentoo.org> + nxserver-freeedition-3.3.0.27.ebuild: + Update pkg_postinst to match other NX servers, remove blocker as files do + not collide anymore for some time *nxserver-freeedition-3.3.0.27 (01 Sep 2009) diff --git a/net-misc/nxserver-freeedition/nxserver-freeedition-3.3.0.27.ebuild b/net-misc/nxserver-freeedition/nxserver-freeedition-3.3.0.27.ebuild index d87a2b9c46fb..6f04095cd008 100644 --- a/net-misc/nxserver-freeedition/nxserver-freeedition-3.3.0.27.ebuild +++ b/net-misc/nxserver-freeedition/nxserver-freeedition-3.3.0.27.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freeedition/nxserver-freeedition-3.3.0.27.ebuild,v 1.1 2009/09/01 20:58:12 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freeedition/nxserver-freeedition-3.3.0.27.ebuild,v 1.2 2009/09/17 09:20:32 voyageur Exp $ inherit eutils versionator @@ -17,9 +17,7 @@ KEYWORDS="-* ~amd64 ~x86" IUSE="" RESTRICT="strip" -DEPEND="=net-misc/nxnode-3.3* - !net-misc/nxserver-freenx - !net-misc/nxserver-2xterminalserver" +DEPEND="=net-misc/nxnode-3.3*" RDEPEND="${DEPEND} media-fonts/font-misc-misc media-fonts/font-cursor-misc @@ -70,8 +68,17 @@ src_install() pkg_postinst () { - usermod -s /usr/NX/bin/nxserver nx || die "Unable to set login shell of nx user!!" - usermod -d /usr/NX/home/nx nx || die "Unable to set home directory of nx user!!" + # Other NX servers ebuilds may have already created the nx account + # However they use different login shell/home directory paths + if [[ ${ROOT} == "/" ]]; then + usermod -s /usr/NX/bin/nxserver nx || die "Unable to set login shell of nx user!!" + usermod -d /usr/NX/home/nx nx || die "Unable to set home directory of nx user!!" + else + elog "If you had another NX server installed before, please make sure" + elog "the nx user account is correctly set to:" + elog " * login shell: /usr/NX/bin/nxserver" + elog " * home directory: /usr/NX/home/nx" + fi # only run install when no configuration file is found if [ -f /usr/NX/etc/server.cfg ]; then @@ -82,5 +89,11 @@ pkg_postinst () "${ROOT}"/usr/NX/scripts/setup/nxserver --install || die "Installation script failed" fi + if ! built_with_use net-misc/openssh pam; then + elog "" + elog "net-misc/openssh was not built with PAM support" + elog "You will need to unlock the nx account by setting a password for it" + fi + elog "Remember to add nxserver to your default runlevel" } |