diff options
author | Stuart Herbert <stuart@gentoo.org> | 2006-04-30 19:38:46 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2006-04-30 19:38:46 +0000 |
commit | ab1d4a2e3e06c09e0f7d91368bab93f6c82338e2 (patch) | |
tree | dc3f843ded5b08404816f88633486b2a707c5712 /net-misc/nxserver-freenx | |
parent | Stable on hppa, ppc. (diff) | |
download | gentoo-2-ab1d4a2e3e06c09e0f7d91368bab93f6c82338e2.tar.gz gentoo-2-ab1d4a2e3e06c09e0f7d91368bab93f6c82338e2.tar.bz2 gentoo-2-ab1d4a2e3e06c09e0f7d91368bab93f6c82338e2.zip |
Sync with overlay
(Portage version: 2203-svn)
Diffstat (limited to 'net-misc/nxserver-freenx')
9 files changed, 343 insertions, 38 deletions
diff --git a/net-misc/nxserver-freenx/ChangeLog b/net-misc/nxserver-freenx/ChangeLog index e41363cad9f0..56d28daed044 100644 --- a/net-misc/nxserver-freenx/ChangeLog +++ b/net-misc/nxserver-freenx/ChangeLog @@ -1,6 +1,25 @@ # ChangeLog for net-misc/nxserver-freenx # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/ChangeLog,v 1.16 2006/03/05 15:30:42 stuart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/ChangeLog,v 1.17 2006/04/30 19:38:46 stuart Exp $ + +*nxserver-freenx-0.5.0.20060311-r1 (30 Apr 2006) +*nxserver-freenx-0.4.4-r1 (30 Apr 2006) + + 30 Apr 2006; Stuart Herbert <stuart@gentoo.org> + +files/nxserver-freenx-xorg7.patch, +files/freenx-0.4.4-adduser-fix.patch, + +files/nxserver-freenx-0.4.4-xorg7.patch, + +nxserver-freenx-0.4.4-r1.ebuild, + +nxserver-freenx-0.5.0.20060311-r1.ebuild: + Huge thanks to Jon Scruggs for the following changes: + + * Added the xorg 7 keyboard fix. + * Fixed the dependencies + * The ebuilds now work with nx-x11-bin + * Added the xorg 7 fix patch for 0.4.4 instead of sed'ing the patch. + * FreeNX 0.4.x ebuilds: I added a feature so that the ebuilds will enable the + 1.5.0 backend if it's detected. + * Changed the detection of various componets and turn them on in nxloadconfig. + * Fixed the description in all the ebuilds. #128866 05 Mar 2006; Stuart Herbert <stuart@gentoo.org> +files/50nxserver, nxserver-freenx-0.5.0.ebuild: diff --git a/net-misc/nxserver-freenx/Manifest b/net-misc/nxserver-freenx/Manifest index 1191d8cc8a6f..b5ec8d81f452 100644 --- a/net-misc/nxserver-freenx/Manifest +++ b/net-misc/nxserver-freenx/Manifest @@ -1,49 +1,20 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 56bd5b0dbb9a90cda7a7e1fe140a89ab ChangeLog 3541 -RMD160 9062e465ba9c480cbd1edf3882ab153b825a6213 ChangeLog 3541 -SHA256 16f0a1b3c47885e1b851aabaa09758101e4ba245307a05bae4a02f2c4cd2248c ChangeLog 3541 +MD5 9cc3b14638e65015f8cbb234c1224f7d ChangeLog 4366 MD5 41f95f92c9e230d7cd356504a8e56269 files/50nxserver 80 -RMD160 204c4cffc4832609451e69a78a75d0572b74b0f1 files/50nxserver 80 -SHA256 7572b8195b5b1ba83f429ddc11be44b3496810e05adbc1c233788085bcf8e365 files/50nxserver 80 MD5 3210d19111775fb0cf59fb578879c5c2 files/digest-nxserver-freenx-0.2.7 63 -RMD160 a2335acfa0cdb6aeafa902ff34f5f2188330ea85 files/digest-nxserver-freenx-0.2.7 63 -SHA256 a89dba1cdfec543eac8f700b7b2406d0bfd54df8aee7f05d425be831e12ad919 files/digest-nxserver-freenx-0.2.7 63 MD5 68fcece75aaa5f55ad36a18960a56806 files/digest-nxserver-freenx-0.2.8 63 -RMD160 c51c7162ff5d2f029e41852d25b88345fec06fbd files/digest-nxserver-freenx-0.2.8 63 -SHA256 3e201c39caff114825858a8d84e0d45e2c6caa0bdeebb5e82cd7463417c2f758 files/digest-nxserver-freenx-0.2.8 63 MD5 113c67a0f8b1fb7bc3d06e118148b5cc files/digest-nxserver-freenx-0.4.0 63 -RMD160 5b1df337f9d78e834429a681fb20c6554707c9b7 files/digest-nxserver-freenx-0.4.0 63 -SHA256 93e4ad339577b2d283b0ecd55167c71756629b1e558974514102696570f8ff61 files/digest-nxserver-freenx-0.4.0 63 +MD5 02eda4039532351fcb86f05b76ec6c71 files/digest-nxserver-freenx-0.4.4-r1 63 MD5 af8c0526caa55cfa9351550578b7dd6e files/digest-nxserver-freenx-0.5.0 68 -RMD160 e7821afb7cca9c8608c3fbcfae22da7baf33e7a2 files/digest-nxserver-freenx-0.5.0 68 -SHA256 3d9a5881dbd550f15f3210de39fd0352663b69d7f34c90749195e6aa56ee3db4 files/digest-nxserver-freenx-0.5.0 68 +MD5 19bb7ae9f3a37a3e034a5dfb99de610d files/digest-nxserver-freenx-0.5.0.20060311-r1 81 MD5 8f0fb766970dd9dce29e468cec2e796e files/fixes.diff 1078 -RMD160 780b0dd88789dc57c7ac7e412f5e17747f220dec files/fixes.diff 1078 -SHA256 d611a7bb9065f6731f03fd59db52dfd72faef8d63219ac279f0764543d329b81 files/fixes.diff 1078 +MD5 925fd2cad3adceb556bf1de6cf866ed0 files/freenx-0.4.4-adduser-fix.patch 562 +MD5 0fcfdb1adc7a94eece68cfd65a522b7f files/nxserver-freenx-0.4.4-xorg7.patch 569 +MD5 2a253055c0eef647a0a8b922f321842d files/nxserver-freenx-xorg7.patch 590 MD5 f58cf7014a645ce96afd27989a893c2f files/nxserver-path.diff 718 -RMD160 6ddec39e9005fefd475e208f369b231e9501c5c7 files/nxserver-path.diff 718 -SHA256 7fd2616f3f9a3165fbd12a1a05ab1081d7da8c6efe139029b5d401b04bbe1985 files/nxserver-path.diff 718 MD5 77fd36d93b0a1b9f35abbe6a1c146561 metadata.xml 482 -RMD160 43d7ffbdffac6f9862dfea8535446439e8c03cc7 metadata.xml 482 -SHA256 a057fa4844b9a4b9a6213a3dad7e620bee77a1e36bc0571ea948ecf585c17e45 metadata.xml 482 MD5 95bc5eb4659bbab6c1b40fe962683ee5 nxserver-freenx-0.2.7.ebuild 2744 -RMD160 1026628a7dd94d965075ebd8a2648468b54d7f6f nxserver-freenx-0.2.7.ebuild 2744 -SHA256 ef68c9db8ea46f275edb2b611ae06f761e2a4706c5a93dff4f45f43e6e266207 nxserver-freenx-0.2.7.ebuild 2744 MD5 04d7b917ab2c64f2732141f4e8af10ec nxserver-freenx-0.2.8.ebuild 2932 -RMD160 a49e739b6fb99532607d47b765834ee1c43e8475 nxserver-freenx-0.2.8.ebuild 2932 -SHA256 b685afbdeea7747a46ca2ab11e56deaf82ac2e2cd4050ed1a22412ea89704b9c nxserver-freenx-0.2.8.ebuild 2932 MD5 8e4563ab87d9d2099bcb111d74c4a0b2 nxserver-freenx-0.4.0.ebuild 2905 -RMD160 d919d7c10f299bb7e3375197de67879e32400479 nxserver-freenx-0.4.0.ebuild 2905 -SHA256 bd39f3cfd9c050942111db1d5e51456b755abd301fba33182fe0fcf8751639d5 nxserver-freenx-0.4.0.ebuild 2905 +MD5 5d18309085e858cf13a134d2d56d1f3e nxserver-freenx-0.4.4-r1.ebuild 4318 +MD5 b82df100862e0706c7b491e2593ea757 nxserver-freenx-0.5.0.20060311-r1.ebuild 3998 MD5 bd9ca4ace1427f2cd7380549e5302a9b nxserver-freenx-0.5.0.ebuild 3116 -RMD160 41e03b55cbafdf87cacf4d719f62fd7e29058449 nxserver-freenx-0.5.0.ebuild 3116 -SHA256 5cbae026d6403540654804b2fdb9e8bdf17192d0d7fd32173fe47ed882590171 nxserver-freenx-0.5.0.ebuild 3116 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2.1 (GNU/Linux) - -iD8DBQFEFJsSI1lqEGTUzyQRApx0AJ4gEhfeaBFSnLQOu42qI1hi3HCGzACgrtUg -t+bKeAtKdff2TWPVpgg++MU= -=cwuh ------END PGP SIGNATURE----- diff --git a/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.4.4-r1 b/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.4.4-r1 new file mode 100644 index 000000000000..3197a7a87dba --- /dev/null +++ b/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.4.4-r1 @@ -0,0 +1 @@ +MD5 4d92f80718edbaacd875404bcb2850b6 freenx-0.4.4.tar.gz 46111 diff --git a/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.5.0.20060311-r1 b/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.5.0.20060311-r1 new file mode 100644 index 000000000000..09651dd99504 --- /dev/null +++ b/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.5.0.20060311-r1 @@ -0,0 +1 @@ +MD5 b627433904cd6eed38b14524d3b45cbd freenx-0.5.0-test-2006-03-11-7.tar.gz 50703 diff --git a/net-misc/nxserver-freenx/files/freenx-0.4.4-adduser-fix.patch b/net-misc/nxserver-freenx/files/freenx-0.4.4-adduser-fix.patch new file mode 100644 index 000000000000..773ef3a28e4b --- /dev/null +++ b/net-misc/nxserver-freenx/files/freenx-0.4.4-adduser-fix.patch @@ -0,0 +1,16 @@ +diff -purN freenx-0.4.4.org/nxsetup freenx-0.4.4.new/nxsetup +--- freenx-0.4.4.org/nxsetup 2005-08-02 12:29:59.000000000 -0500 ++++ freenx-0.4.4.new/nxsetup 2005-08-07 19:17:08.000000000 -0500 +@@ -116,7 +116,11 @@ useradd_nx() + # no, its a "normal" useradd + else + USERADD_OPTIONS="-d $NX_HOME_DIR -s $PATH_BIN/nxserver" +- [ -n $SETUP_GID ] && USERADD_OPTIONS="-g $SETUP_GID $USERADD_OPTIONS" ++ # gid specified? ++ if [ -n "$SETUP_GID" ] ++ then ++ USERADD_OPTIONS="-g $SETUP_GID $USERADD_OPTIONS" ++ fi + # uid specified? + if [ -n "$SETUP_UID" ] + then diff --git a/net-misc/nxserver-freenx/files/nxserver-freenx-0.4.4-xorg7.patch b/net-misc/nxserver-freenx/files/nxserver-freenx-0.4.4-xorg7.patch new file mode 100644 index 000000000000..297befea92f2 --- /dev/null +++ b/net-misc/nxserver-freenx/files/nxserver-freenx-0.4.4-xorg7.patch @@ -0,0 +1,18 @@ +--- freenx-server/nxnode 2005-08-07 12:53:57.000000000 +0300 ++++ freenx-server/nxnode 2006-02-02 00:00:25.000000000 +0200 +@@ -22,6 +22,15 @@ + + echo "NX> 1000 NXNODE - Version $NX_VERSION $NX_LICENSE" + ++### Patch for Xorg-x11 >=7.0 by Oskari Rauta begins here ### ++ ++if test `X -version 2>&1 | grep "X Window System Version" | awk '{ print $5 }' | awk -F. '{ print $1 }'` -ge 7 ++ then ++ export XKEYSYMDB=/usr/share/X11/XKeysymDB ++ fi ++ ++### Patch for Xorg-x11 >= 7.0 by Oskari Rauta ends here.. ++ + if [ "$1" != "--check" -a "$1" != "--setkey" ] + then + read CMDLINE diff --git a/net-misc/nxserver-freenx/files/nxserver-freenx-xorg7.patch b/net-misc/nxserver-freenx/files/nxserver-freenx-xorg7.patch new file mode 100644 index 000000000000..9884756c0af6 --- /dev/null +++ b/net-misc/nxserver-freenx/files/nxserver-freenx-xorg7.patch @@ -0,0 +1,18 @@ +--- freenx-server/nxnode 2005-08-07 12:53:57.000000000 +0300 ++++ freenx-server/nxnode 2006-02-02 00:00:25.000000000 +0200 +@@ -22,6 +22,15 @@ + + echo "NX> 1000 NXNODE - Version $NX_VERSION $NX_LICENSE" + ++### Patch for Xorg-x11 >=7.0 by Oskari Rauta begins here ### ++ ++if test `X -version 2>&1 | grep "X Window System Version" | awk '{ print $5 }' | awk -F. '{ print $1 }'` -ge 7 ++ then ++ export XKEYSYMDB=/usr/share/X11/XKeysymDB ++ fi ++ ++### Patch for Xorg-x11 >= 7.0 by Oskari Rauta ends here.. ++ + if [ "$1" != "--check" -a "$1" != "--setkey" -a "$1" != "--agent" ] + then + read CMDLINE diff --git a/net-misc/nxserver-freenx/nxserver-freenx-0.4.4-r1.ebuild b/net-misc/nxserver-freenx/nxserver-freenx-0.4.4-r1.ebuild new file mode 100644 index 000000000000..a070ccc4a48a --- /dev/null +++ b/net-misc/nxserver-freenx/nxserver-freenx-0.4.4-r1.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/nxserver-freenx-0.4.4-r1.ebuild,v 1.1 2006/04/30 19:38:46 stuart Exp $ + +inherit multilib eutils + +DESCRIPTION="An X11/RDP/VNC proxy server especially well suited to low bandwidth links such as wireless, WANS, and worse" +HOMEPAGE="http://freenx.berlios.de/" +SRC_URI="http://debian.tu-bs.de/knoppix/nx/freenx-${PV}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +RESTRICT="nomirror strip" +IUSE="arts cups esd nxclient" +DEPEND="virtual/ssh + dev-tcltk/expect + sys-apps/gawk + net-analyzer/gnu-netcat + x86? ( nxclient? ( >=net-misc/nxclient-1.4.0 ) + !nxclient? ( !net-misc/nxclient ) ) + amd64? ( nxclient? ( >=net-misc/nxclient-1.4.0 ) + !nxclient? ( !net-misc/nxclient ) ) + !x86? ( !amd64? ( !net-misc/nxclient ) ) + >=net-misc/nxproxy-1.4.0 + || ( >=net-misc/nx-x11-1.4.0 + >=net-misc/nx-x11-bin-1.4.0 ) + arts? ( kde-base/arts ) + cups? ( net-print/cups ) + esd? ( media-sound/esound ) + !net-misc/nxserver-personal + !net-misc/nxserver-business + !net-misc/nxserver-enterprise" + +RDEPEND="${DEPEND}" + +S=${WORKDIR}/freenx-${PV} + +pkg_setup () { + enewuser nx -1 -1 /usr/NX/home/nx +} + +src_unpack() { + unpack ${A} + cd ${S} + epatch gentoo-nomachine.diff + # Patch to fix the adduser error + epatch $FILESDIR/freenx-0.4.4-adduser-fix.patch + epatch $FILESDIR/nxserver-freenx-0.4.4-xorg7.patch + + # fix to make sure 32 bit libraries are used by nx-x11 on amd64 + has_multilib_profile && \ + sed -i "/PATH_LIB=/s/lib/$(get_abi_LIBDIR x86)/" nxloadconfig + + # Change the defaults in nxloadconfig to meet the users needs. + if has_version "~net-misc/nx-x11-1.5.0" || has_version "~net-misc/nx-x11-bin-1.5.0" ; then + einfo "Enabling the NX 1.5.0 backend support." + sed -i '/ENABLE_1_5_0_BACKEND=/s/"0"/"1"/' nxloadconfig + sed -i '/ENABLE_1_5_0_BACKEND=/s/"0"/"1"/' node.conf.sample + fi + if use arts ; then + einfo "Enabling arts support." + sed -i '/ENABLE_ARTSD_PRELOAD=/s/"0"/"1"/' nxloadconfig + sed -i '/ENABLE_ARTSD_PRELOAD=/s/"0"/"1"/' node.conf.sample + fi + if use esd ; then + einfo "Enabling esd support." + sed -i '/ENABLE_ESD_PRELOAD=/s/"0"/"1"/' nxloadconfig + sed -i '/ENABLE_ESD_PRELOAD=/s/"0"/"1"/' node.conf.sample + fi + if use cups ; then + einfo "Enabling cups support." + sed -i '/ENABLE_KDE_CUPS=/s/"0"/"1"/' nxloadconfig + sed -i '/ENABLE_KDE_CUPS=/s/"0"/"1"/' node.conf.sample + fi +} + +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + + NX_DIR=/usr/NX + NX_ETC_DIR=$NX_DIR/etc + NX_SESS_DIR=$NX_DIR/var/db + NX_HOME_DIR=$NX_DIR/home/nx + + into ${NX_DIR} + dobin nxserver + dobin nxnode + dobin nxnode-login + dobin nxkeygen + dobin nxloadconfig + dobin nxsetup + ( ( use x86 || use amd64 ) && use nxclient ) || dobin nxprint + ( ( use x86 || use amd64 ) && use nxclient ) || dobin nxclient + + dodir ${NX_ETC_DIR} + for x in passwords passwords.orig ; do + touch ${D}${NX_ETC_DIR}/$x + chmod 600 ${D}${NX_ETC_DIR}/$x + done + + insinto ${NX_ETC_DIR} + doins node.conf.sample + + ssh-keygen -f ${D}${NX_ETC_DIR}/users.id_dsa -t dsa -N "" -q + + for x in closed running failed ; do + keepdir ${NX_SESS_DIR}/$x + fperms 0700 ${NX_SESS_DIR}/$x + done + + dodir ${NX_HOME_DIR}/.ssh + fperms 0700 ${NX_HOME_DIR} + fperms 0700 ${NX_HOME_DIR}/.ssh + + cat << EOF >${D}${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key +ssh-dss AAAAB3NzaC1kc3MAAACBAJe/0DNBePG9dYLWq7cJ0SqyRf1iiZN/IbzrmBvgPTZnBa5FT/0Lcj39sRYt1paAlhchwUmwwIiSZaON5JnJOZ6jKkjWIuJ9MdTGfdvtY1aLwDMpxUVoGwEaKWOyin02IPWYSkDQb6cceuG9NfPulS9iuytdx0zIzqvGqfvudtufAAAAFQCwosRXR2QA8OSgFWSO6+kGrRJKiwAAAIEAjgvVNAYWSrnFD+cghyJbyx60AAjKtxZ0r/Pn9k94Qt2rvQoMnGgt/zU0v/y4hzg+g3JNEmO1PdHh/wDPVOxlZ6Hb5F4IQnENaAZ9uTZiFGqhBO1c8Wwjiq/MFZy3jZaidarLJvVs8EeT4mZcWxwm7nIVD4lRU2wQ2lj4aTPcepMAAACANlgcCuA4wrC+3Cic9CFkqiwO/Rn1vk8dvGuEQqFJ6f6LVfPfRTfaQU7TGVLk2CzY4dasrwxJ1f6FsT8DHTNGnxELPKRuLstGrFY/PR7KeafeFZDf+fJ3mbX5nxrld3wi5titTnX+8s4IKv29HJguPvOK/SI7cjzA+SqNfD7qEo8= root@nettuno +EOF + fperms 0600 ${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key + cp ${D}${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key ${D}${NX_HOME_DIR}/.ssh/authorized_keys2 + fperms 0600 ${NX_HOME_DIR}/.ssh/authorized_keys2 + + echo -n "127.0.0.1" ${D}${NX_HOME_DIR}/.ssh/known_hosts + + chown -R nx:root ${D}${NX_DIR} +} + +pkg_postinst () { + usermod -s /usr/NX/bin/nxserver nx || die "Unable to set login shell of nx user!!" + + ewarn "NOTE: The commercial use flag was changed to nxclient." +} diff --git a/net-misc/nxserver-freenx/nxserver-freenx-0.5.0.20060311-r1.ebuild b/net-misc/nxserver-freenx/nxserver-freenx-0.5.0.20060311-r1.ebuild new file mode 100644 index 000000000000..6fe60fc74a55 --- /dev/null +++ b/net-misc/nxserver-freenx/nxserver-freenx-0.5.0.20060311-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/nxserver-freenx-0.5.0.20060311-r1.ebuild,v 1.1 2006/04/30 19:38:46 stuart Exp $ + +inherit multilib eutils + +DESCRIPTION="An X11/RDP/VNC proxy server especially well suited to low bandwidth links such as wireless, WANS, and worse" +HOMEPAGE="http://freenx.berlios.de/" +URI_BASE="http://studwww.ira.uka.de/~s_franz2/freenx" +SRC_URI="$URI_BASE/freenx-0.5.0-test-2006-03-11-7.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +RESTRICT="nomirror strip" +IUSE="arts cups esd nxclient" +DEPEND="virtual/ssh + dev-tcltk/expect + sys-apps/gawk + net-analyzer/gnu-netcat + x86? ( nxclient? ( =net-misc/nxclient-1.5* ) + !nxclient? ( !net-misc/nxclient ) ) + amd64? ( nxclient? ( =net-misc/nxclient-1.5* ) + !nxclient? ( !net-misc/nxclient ) ) + !x86? ( !amd64? ( !net-misc/nxclient ) ) + || ( =net-misc/nx-x11-1.5* + =net-misc/nx-x11-bin-1.5* ) + arts? ( kde-base/arts ) + cups? ( net-print/cups ) + esd? ( media-sound/esound ) + !net-misc/nxserver-personal + !net-misc/nxserver-business + !net-misc/nxserver-enterprise" + +RDEPEND="${DEPEND}" + +S=${WORKDIR}/freenx-0.5.0-test-2006-03-11-7 + +pkg_setup () { + enewuser nx -1 -1 /usr/NX/home/nx +} + +src_unpack() { + unpack ${A} + cd ${S} + epatch gentoo-nomachine.diff + epatch $FILESDIR/nxserver-freenx-xorg7.patch + + # fix to make sure 32 bit libraries are used by nx-x11 on amd64 + has_multilib_profile && \ + sed -i "/PATH_LIB=/s/lib/$(get_abi_LIBDIR x86)/" nxloadconfig + + # Change the defaults in nxloadconfig to meet the users needs. + if use arts ; then + einfo "Enabling arts support." + sed -i '/ENABLE_ARTSD_PRELOAD=/s/"0"/"1"/' nxloadconfig + sed -i '/ENABLE_ARTSD_PRELOAD=/s/"0"/"1"/' node.conf.sample + fi + if use esd ; then + einfo "Enabling esd support." + sed -i '/ENABLE_ESD_PRELOAD=/s/"0"/"1"/' nxloadconfig + sed -i '/ENABLE_ESD_PRELOAD=/s/"0"/"1"/' node.conf.sample + fi + if use cups ; then + einfo "Enabling cups support." + sed -i '/ENABLE_KDE_CUPS=/s/"0"/"1"/' nxloadconfig + sed -i '/ENABLE_KDE_CUPS=/s/"0"/"1"/' node.conf.sample + fi +} + +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + + NX_DIR=/usr/NX + NX_ETC_DIR=$NX_DIR/etc + NX_SESS_DIR=$NX_DIR/var/db + NX_HOME_DIR=$NX_DIR/home/nx + + into ${NX_DIR} + dobin nxserver + dobin nxnode + dobin nxnode-login + dobin nxkeygen + dobin nxloadconfig + dobin nxsetup + ( ( use x86 || use amd64 ) && use nxclient ) || dobin nxprint + ( ( use x86 || use amd64 ) && use nxclient ) || dobin nxclient + + dodir ${NX_ETC_DIR} + for x in passwords passwords.orig ; do + touch ${D}${NX_ETC_DIR}/$x + chmod 600 ${D}${NX_ETC_DIR}/$x + done + + insinto ${NX_ETC_DIR} + doins node.conf.sample + + ssh-keygen -f ${D}${NX_ETC_DIR}/users.id_dsa -t dsa -N "" -q + + for x in closed running failed ; do + keepdir ${NX_SESS_DIR}/$x + fperms 0700 ${NX_SESS_DIR}/$x + done + + dodir ${NX_HOME_DIR}/.ssh + fperms 0700 ${NX_HOME_DIR} + fperms 0700 ${NX_HOME_DIR}/.ssh + + cat << EOF >${D}${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key +ssh-dss AAAAB3NzaC1kc3MAAACBAJe/0DNBePG9dYLWq7cJ0SqyRf1iiZN/IbzrmBvgPTZnBa5FT/0Lcj39sRYt1paAlhchwUmwwIiSZaON5JnJOZ6jKkjWIuJ9MdTGfdvtY1aLwDMpxUVoGwEaKWOyin02IPWYSkDQb6cceuG9NfPulS9iuytdx0zIzqvGqfvudtufAAAAFQCwosRXR2QA8OSgFWSO6+kGrRJKiwAAAIEAjgvVNAYWSrnFD+cghyJbyx60AAjKtxZ0r/Pn9k94Qt2rvQoMnGgt/zU0v/y4hzg+g3JNEmO1PdHh/wDPVOxlZ6Hb5F4IQnENaAZ9uTZiFGqhBO1c8Wwjiq/MFZy3jZaidarLJvVs8EeT4mZcWxwm7nIVD4lRU2wQ2lj4aTPcepMAAACANlgcCuA4wrC+3Cic9CFkqiwO/Rn1vk8dvGuEQqFJ6f6LVfPfRTfaQU7TGVLk2CzY4dasrwxJ1f6FsT8DHTNGnxELPKRuLstGrFY/PR7KeafeFZDf+fJ3mbX5nxrld3wi5titTnX+8s4IKv29HJguPvOK/SI7cjzA+SqNfD7qEo8= root@nettuno +EOF + fperms 0600 ${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key + cp ${D}${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key ${D}${NX_HOME_DIR}/.ssh/authorized_keys2 + fperms 0600 ${NX_HOME_DIR}/.ssh/authorized_keys2 + + echo -n "127.0.0.1" ${D}${NX_HOME_DIR}/.ssh/known_hosts + + chown -R nx:root ${D}${NX_DIR} +} + +pkg_postinst () { + usermod -s /usr/NX/bin/nxserver nx || die "Unable to set login shell of nx user!!" + + ewarn "NOTE: The commercial use flag was changed to nxclient." +} |