diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2008-03-10 00:55:38 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2008-03-10 00:55:38 +0000 |
commit | 62bca75e7a7ce1fd14df164b14056df159a00a58 (patch) | |
tree | 618e957229836f3ef9cb864f543b07d34aa09ad0 /net-misc/nxnode | |
parent | Drop to ~mips to match dependencies (diff) | |
download | historical-62bca75e7a7ce1fd14df164b14056df159a00a58.tar.gz historical-62bca75e7a7ce1fd14df164b14056df159a00a58.tar.bz2 historical-62bca75e7a7ce1fd14df164b14056df159a00a58.zip |
Fix license file ownership, remove some versions (security bug #210317)
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'net-misc/nxnode')
-rw-r--r-- | net-misc/nxnode/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/nxnode/Manifest | 25 | ||||
-rw-r--r-- | net-misc/nxnode/nxnode-3.0.0-r3.ebuild | 12 | ||||
-rw-r--r-- | net-misc/nxnode/nxnode-3.0.0-r4.ebuild | 110 | ||||
-rw-r--r-- | net-misc/nxnode/nxnode-3.1.0-r1.ebuild | 110 | ||||
-rw-r--r-- | net-misc/nxnode/nxnode-3.1.0-r2.ebuild | 9 | ||||
-rw-r--r-- | net-misc/nxnode/nxnode-3.1.0.ebuild | 110 |
7 files changed, 26 insertions, 358 deletions
diff --git a/net-misc/nxnode/ChangeLog b/net-misc/nxnode/ChangeLog index cba4930f5f0d..4c7fe1c54882 100644 --- a/net-misc/nxnode/ChangeLog +++ b/net-misc/nxnode/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/nxnode # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/ChangeLog,v 1.22 2008/02/18 17:54:44 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/ChangeLog,v 1.23 2008/03/10 00:55:38 voyageur Exp $ + + 07 Mar 2008; Bernard Cafarelli <voyageur@gentoo.org> + nxnode-3.0.0-r3.ebuild, -nxnode-3.0.0-r4.ebuild, -nxnode-3.1.0.ebuild, + -nxnode-3.1.0-r1.ebuild, nxnode-3.1.0-r2.ebuild: + Fix chown on license file (create nx user preventively, use nx:0), thanks pva + Remove some versions (security bug #210317) 18 Feb 2008; Christian Faulhammer <opfer@gentoo.org> nxnode-3.1.0-r2.ebuild: diff --git a/net-misc/nxnode/Manifest b/net-misc/nxnode/Manifest index 5db3fb9e4e62..1e7892d158e0 100644 --- a/net-misc/nxnode/Manifest +++ b/net-misc/nxnode/Manifest @@ -1,29 +1,10 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX nxnode-3.0.0-init 1344 RMD160 fc4c8ed911bf79634537f0567f374688791f482d SHA1 78a9e356c053e1ece469332dd016a0efe425595f SHA256 d0da14f4dac0b3c325086a5b4b1929456681822011b0996d48cee5265e10cce5 AUX nxnode-3.0.0-setup.patch 1353 RMD160 85c7938126000b10fa6e05aa5501e2affc6d0ec6 SHA1 4d12a2857db5a6d073ceab88bb2e58d0ee93a322 SHA256 04dccdc5eb73df861995e866c0875496b3b893ab43caaa8bdd854a69a74ae17a DIST nxnode-3.0.0-83.i386.tar.gz 6241477 RMD160 777edf612ff1f0eeae8517f67f536fd9d032eae0 SHA1 99ed305dadaf2a5309348c4062c6a3ce1baeb5a5 SHA256 d8b5be5f1c56b7348299d46f6088d90198d8322a75cd590046683bb14c258704 DIST nxnode-3.0.0-83.x86_64.tar.gz 6918754 RMD160 9a013438bc0bb2b088b734c59805b574cdff178e SHA1 2bf8933fa524e704df845028c3e03da7323617c3 SHA256 5f584127969128501358dcc43cca4360841db47b5503447d6de9a30638176fa9 -DIST nxnode-3.0.0-93.i386.tar.gz 6283984 RMD160 b3018756dc02e4f213eda95522ccd1604c4347d5 SHA1 8a895f10e7332312368f7371b95104723d537032 SHA256 898d7d1e8d26331e251e0e186aba778890242d3485cd9607380297fa10090807 -DIST nxnode-3.0.0-93.x86_64.tar.gz 6963315 RMD160 c283c6563d621b4da0a4ce19cccbd311b337d23c SHA1 e2347b4aa774454bbfd94d20e6202927487ebd56 SHA256 4e592ded58033df0e9a59c8edc4f94fd0c02b02eb86c51407cb6371a0ce71023 -DIST nxnode-3.1.0-3.i386.tar.gz 6281225 RMD160 539fd4119ac9fb6575cd3aebe50defe9b966c62f SHA1 52b5e746fe02fafe712cd624822549de99ed4ad2 SHA256 cc87a7c2cf01b11300d0082ef2905c496055e959956dd8f610b41c7667fae708 -DIST nxnode-3.1.0-3.x86_64.tar.gz 6960343 RMD160 ab597de8862cb47ad8b808ae9d621d9b17c69a57 SHA1 a8356b75a79d7e81d476a1b2ddf35b1af88d6b6f SHA256 d2dad0c64583e85a8ee3d0b9f8e5a24d2afc220a8fc249815b59f211d015097b -DIST nxnode-3.1.0-5.i386.tar.gz 6284228 RMD160 9659236d0e8ad7b9b8674baf13fc9f33ebeff595 SHA1 8709447de45ca231f6607a759738e2d5a5cfcc7b SHA256 18fd1060a9510d270195c07b0b263040d67b86c8f592fe1fd99d0048e29af7e0 -DIST nxnode-3.1.0-5.x86_64.tar.gz 6964682 RMD160 f8f8bd6c78c098048cbe45440242790c5f284825 SHA1 f70d4bfa4d3641c8deb38e59c95ad9b05fb9ef1b SHA256 f0879987fec170e076bbc682d6803d0d0fc37c1be7424f46abcbd9e33c1816fc DIST nxnode-3.1.0-6.i386.tar.gz 6285030 RMD160 8cfa4fab1cd59afa9c95f7469a85799bef18cbf5 SHA1 57cc7926ffa55d83c90cd56b27c79701ea11d272 SHA256 34ff2f036cd056bc5a490728b91de895bde46a68ccf4a3973eb15c90f6517fed DIST nxnode-3.1.0-6.x86_64.tar.gz 6966684 RMD160 b2f2d75946e9f22f1a84be8df3daddd516a9777a SHA1 0812c6282c1f587534cc5341a1729624e3f925dd SHA256 6c7773360285c8d7adbcdec03da666c4747f0620a934c0328473528b7adb2391 -EBUILD nxnode-3.0.0-r3.ebuild 2961 RMD160 b620f07890b6f2ab4fa343770594d9f7657e1ec2 SHA1 2cabe596a8ffdf91fe61ffa9b53833435c63bf70 SHA256 29ed0b9c23c21273b991fdef4736e06071f4c6a2cb6d03054e77b3e80494276a -EBUILD nxnode-3.0.0-r4.ebuild 3012 RMD160 775bd115a7211470470cdeb58cfde04d7952796d SHA1 dfc41873bc00d68eaf1de0ae60232afb815af13d SHA256 cbe6569c42738b7e034ee46d18809c498f65c2d28a0537be9e4f45033ce5ead9 -EBUILD nxnode-3.1.0-r1.ebuild 3011 RMD160 8edec56817379944c42b423fac3c4dee160814aa SHA1 ffb68185bd05c7c8c9dd62ff644f88f76bd4fd93 SHA256 7edd7f1a93f5b86918ce94fbe99e3a0f17bf6c95e2c249af450464e455f303a1 -EBUILD nxnode-3.1.0-r2.ebuild 2979 RMD160 77eb918e0224cf70f7256f31588e7e0671e242dc SHA1 e403df4c4d4f52afde434d7aa9eca13a1f49fce1 SHA256 c1aee61dce227b44b0c5deddbd7d17ccd28bff0636da4706856ab2830d845a72 -EBUILD nxnode-3.1.0.ebuild 3008 RMD160 96b41da39b5e911aadd104dfe928eb6af0120c0d SHA1 df33d961f11a9f70907e6cdfe7673267943a1118 SHA256 95981daf5e4c965001df94f753d1f4e45713569db8b8e8a1735c23a94bff1590 -MISC ChangeLog 3374 RMD160 4fa7d12b49926f3ee4906cd3aeeffdad9c17b204 SHA1 6f96ffa222c8132719f53c3e56f156dfe5ef4402 SHA256 40954d49ab67d84039ac4b1c1a27f4b3e9678ef90f60943f86dbea0f1e6ce168 +EBUILD nxnode-3.0.0-r3.ebuild 3013 RMD160 a5e04528f35ad17db7f551d6116dccc1c67a5f6e SHA1 e7838b120fb3b41b82582c4aa9929e13582e3d8c SHA256 54b36a245b15e6402e1c1b3f86e67306228e0746b2d1c2d67bd1b99447049712 +EBUILD nxnode-3.1.0-r2.ebuild 3033 RMD160 d7292a77c86392d22b7481f996bbe98c32e2d1e3 SHA1 a2a31c2a79c4456844f4860b6dbd08935d0e9db2 SHA256 7fb11dfa39f26b4eed84dcbd0aaac18a2110611d62aecbc4a3e3a3e271364225 +MISC ChangeLog 3683 RMD160 47e7df1b1717bdbcf07771c420acfee8d3b4328b SHA1 590c16e0f3c16eb49f24087dc5ff5b182dc2179e SHA256 41b234c81c7ddafa972725bb82e19b9a9c1f375fd6c87331f0627e84a5dcfa5d MISC metadata.xml 264 RMD160 3b4f53808aa9f3ce8bf86bdc8e08bda3fc181219 SHA1 89e785afdbf6b2c6968649c91dc17910066728eb SHA256 3eaf6b268d16ec374617534bf70f0e96d2c6399ca1b0d4ffa3eeee619d775171 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.7 (GNU/Linux) - -iD8DBQFHucbMNQqtfCuFneMRAj+NAJ9LY0UiE6lEOVYn8w03lySc2spJnACdF53y -ys5cHuk2cbm40PsLj0q99bo= -=lTnI ------END PGP SIGNATURE----- diff --git a/net-misc/nxnode/nxnode-3.0.0-r3.ebuild b/net-misc/nxnode/nxnode-3.0.0-r3.ebuild index 6413adee95e4..ec5b6756bae8 100644 --- a/net-misc/nxnode/nxnode-3.0.0-r3.ebuild +++ b/net-misc/nxnode/nxnode-3.0.0-r3.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/nxnode-3.0.0-r3.ebuild,v 1.4 2007/12/14 12:11:41 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/nxnode-3.0.0-r3.ebuild,v 1.5 2008/03/10 00:55:38 voyageur Exp $ inherit eutils @@ -31,6 +31,12 @@ RDEPEND="=net-misc/nxclient-3.0* S=${WORKDIR}/NX +pkg_preinst() +{ + enewuser nx -1 -1 /usr/NX/home/nx +} + + pkg_setup() { if use vnc; then if has_version net-misc/vnc && ! built_with_use net-misc/vnc server; @@ -89,7 +95,7 @@ pkg_postinst() if [ ! -f /usr/NX/etc/node.lic ]; then cp ${ROOT}/usr/NX/etc/node.lic.sample ${ROOT}/usr/NX/etc/node.lic || die chmod 0400 ${ROOT}/usr/NX/etc/node.lic - chown nx:root ${ROOT}/usr/NX/etc/node.lic + chown nx:0 ${ROOT}/usr/NX/etc/node.lic fi # only run install on the first time diff --git a/net-misc/nxnode/nxnode-3.0.0-r4.ebuild b/net-misc/nxnode/nxnode-3.0.0-r4.ebuild deleted file mode 100644 index e4c7dea4154c..000000000000 --- a/net-misc/nxnode/nxnode-3.0.0-r4.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/nxnode-3.0.0-r4.ebuild,v 1.2 2007/12/14 12:11:41 voyageur Exp $ - -inherit eutils - -MY_PV="${PV}-93" -DESCRIPTION="nxnode provides the components that are shared between the different editions of NoMachine's NX Server" -HOMEPAGE="http://www.nomachine.com/" -SRC_URI="amd64? ( http://64.34.161.181/download/3.0.0/Linux/nxnode-${MY_PV}.x86_64.tar.gz ) - x86? ( http://64.34.161.181/download/3.0.0/Linux/nxnode-${MY_PV}.i386.tar.gz )" - -LICENSE="nomachine" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="rdesktop vnc" -RESTRICT="strip" - -DEPEND="!net-misc/nxserver-freenx - !<net-misc/nxserver-freeedition-3.0.0" - -RDEPEND="=net-misc/nxclient-3.0* - x11-libs/libICE - x11-libs/libXmu - x11-libs/libSM - x11-libs/libXt - x11-libs/libXaw - x11-libs/libXpm - x11-apps/xrdb - rdesktop? ( net-misc/rdesktop ) - vnc? ( || ( net-misc/vnc net-misc/tightvnc ) )" - -S=${WORKDIR}/NX - -pkg_setup() { - if use vnc; then - if has_version net-misc/vnc && ! built_with_use net-misc/vnc server; - then - die "net-misc/vnc needs to be built with USE=\"server\" for VNC support" - fi - - if has_version net-misc/tightvnc && ! built_with_use net-misc/tightvnc server; - then - die "net-misc/tightvnc needs to be built with USE=\"server\" for VNC support" - fi - fi -} - -src_unpack() -{ - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/nxnode-3.0.0-setup.patch -} - -src_install() -{ - # we install nxnode into /usr/NX, to make sure it doesn't clash - # with libraries installed for FreeNX - - into /usr/NX - for x in nxagent nxnode nxsensor nxspool nxuexec ; do - dobin bin/$x - done - - dodir /usr/NX/etc - cp etc/node-debian.cfg.sample "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die - sed -e 's|COMMAND_FUSER = .*|COMMAND_FUSER = "/usr/bin/fuser"|;' -i "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die - cp etc/node.lic.sample "${D}"/usr/NX/etc/node.lic.sample || die - - dodir /usr/NX/lib - cp -R lib "${D}"/usr/NX || die - - dodir /usr/NX/scripts - cp -R scripts "${D}"/usr/NX || die - - dodir /usr/NX/share - cp -R share "${D}"/usr/NX || die - - dodir /usr/NX/var - cp -R var "${D}"/usr/NX || die - - dodir /etc/init.d - newinitd "${FILESDIR}"/nxnode-3.0.0-init nxsensor -} - -pkg_postinst() -{ - # Only install license file if none is found - if [ ! -f /usr/NX/etc/node.lic ]; then - cp "${ROOT}"/usr/NX/etc/node.lic.sample "${ROOT}"/usr/NX/etc/node.lic || die - chmod 0400 "${ROOT}"/usr/NX/etc/node.lic - chown nx:root "${ROOT}"/usr/NX/etc/node.lic - fi - - # only run install on the first time - if [ -f /usr/NX/etc/node.cfg ]; then - einfo "Running NoMachine's update script" - "${ROOT}"/usr/NX/scripts/setup/nxnode --update - else - einfo "Running NoMachine's setup script" - "${ROOT}"/usr/NX/scripts/setup/nxnode --install - fi - - elog "If you want server statistics, please add nxsensor to your default runlevel" - elog - elog " rc-update add nxsensor default" - elog - elog "You will also need to change EnableSensor to 1 in /usr/NX/etc/node.cfg" -} diff --git a/net-misc/nxnode/nxnode-3.1.0-r1.ebuild b/net-misc/nxnode/nxnode-3.1.0-r1.ebuild deleted file mode 100644 index a26e3ff3eea9..000000000000 --- a/net-misc/nxnode/nxnode-3.1.0-r1.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/nxnode-3.1.0-r1.ebuild,v 1.1 2008/01/24 14:30:10 voyageur Exp $ - -inherit eutils - -MY_PV="${PV}-5" -DESCRIPTION="nxnode provides the components that are shared between the different editions of NoMachine's NX Server" -HOMEPAGE="http://www.nomachine.com/" -SRC_URI="amd64? ( http://64.34.161.181/download/${PV}/Linux/nxnode-${MY_PV}.x86_64.tar.gz ) - x86? ( http://64.34.161.181/download/${PV}/Linux/nxnode-${MY_PV}.i386.tar.gz )" - -LICENSE="nomachine" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="rdesktop vnc" -RESTRICT="strip" - -DEPEND="!net-misc/nxserver-freenx - !<net-misc/nxserver-freeedition-3.0.0" - -RDEPEND="=net-misc/nxclient-3.1* - x11-libs/libICE - x11-libs/libXmu - x11-libs/libSM - x11-libs/libXt - x11-libs/libXaw - x11-libs/libXpm - x11-apps/xrdb - rdesktop? ( net-misc/rdesktop ) - vnc? ( || ( net-misc/vnc net-misc/tightvnc ) )" - -S=${WORKDIR}/NX - -pkg_setup() { - if use vnc; then - if has_version net-misc/vnc && ! built_with_use net-misc/vnc server; - then - die "net-misc/vnc needs to be built with USE=\"server\" for VNC support" - fi - - if has_version net-misc/tightvnc && ! built_with_use net-misc/tightvnc server; - then - die "net-misc/tightvnc needs to be built with USE=\"server\" for VNC support" - fi - fi -} - -src_unpack() -{ - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/nxnode-3.0.0-setup.patch -} - -src_install() -{ - # we install nxnode into /usr/NX, to make sure it doesn't clash - # with libraries installed for FreeNX - - into /usr/NX - for x in nxagent nxnode nxsensor nxspool nxuexec ; do - dobin bin/$x - done - - dodir /usr/NX/etc - cp etc/node-debian.cfg.sample "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die - sed -e 's|COMMAND_FUSER = .*|COMMAND_FUSER = "/usr/bin/fuser"|;' -i "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die - cp etc/node.lic.sample "${D}"/usr/NX/etc/node.lic.sample || die - - dodir /usr/NX/lib - cp -R lib "${D}"/usr/NX || die - - dodir /usr/NX/scripts - cp -R scripts "${D}"/usr/NX || die - - dodir /usr/NX/share - cp -R share "${D}"/usr/NX || die - - dodir /usr/NX/var - cp -R var "${D}"/usr/NX || die - - dodir /etc/init.d - newinitd "${FILESDIR}"/nxnode-3.0.0-init nxsensor -} - -pkg_postinst() -{ - # Only install license file if none is found - if [ ! -f /usr/NX/etc/node.lic ]; then - cp "${ROOT}"/usr/NX/etc/node.lic.sample "${ROOT}"/usr/NX/etc/node.lic || die - chmod 0400 "${ROOT}"/usr/NX/etc/node.lic - chown nx:root "${ROOT}"/usr/NX/etc/node.lic - fi - - # only run install on the first time - if [ -f /usr/NX/etc/node.cfg ]; then - einfo "Running NoMachine's update script" - "${ROOT}"/usr/NX/scripts/setup/nxnode --update - else - einfo "Running NoMachine's setup script" - "${ROOT}"/usr/NX/scripts/setup/nxnode --install - fi - - elog "If you want server statistics, please add nxsensor to your default runlevel" - elog - elog " rc-update add nxsensor default" - elog - elog "You will also need to change EnableSensor to 1 in /usr/NX/etc/node.cfg" -} diff --git a/net-misc/nxnode/nxnode-3.1.0-r2.ebuild b/net-misc/nxnode/nxnode-3.1.0-r2.ebuild index 54ad7cb8a729..93752aade15d 100644 --- a/net-misc/nxnode/nxnode-3.1.0-r2.ebuild +++ b/net-misc/nxnode/nxnode-3.1.0-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/nxnode-3.1.0-r2.ebuild,v 1.2 2008/02/18 17:54:44 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/nxnode-3.1.0-r2.ebuild,v 1.3 2008/03/10 00:55:38 voyageur Exp $ inherit eutils @@ -33,6 +33,11 @@ RDEPEND="=net-misc/nxclient-3.1* S=${WORKDIR}/NX +pkg_preinst() +{ + enewuser nx -1 -1 /usr/NX/home/nx +} + pkg_setup() { if use vnc; then if has_version net-misc/vnc && ! built_with_use net-misc/vnc server; @@ -91,7 +96,7 @@ pkg_postinst() if [ ! -f /usr/NX/etc/node.lic ]; then cp "${ROOT}"/usr/NX/etc/node.lic.sample "${ROOT}"/usr/NX/etc/node.lic || die chmod 0400 "${ROOT}"/usr/NX/etc/node.lic - chown nx:root "${ROOT}"/usr/NX/etc/node.lic + chown nx:0 "${ROOT}"/usr/NX/etc/node.lic fi # only run install on the first time diff --git a/net-misc/nxnode/nxnode-3.1.0.ebuild b/net-misc/nxnode/nxnode-3.1.0.ebuild deleted file mode 100644 index e63f68546140..000000000000 --- a/net-misc/nxnode/nxnode-3.1.0.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/nxnode-3.1.0.ebuild,v 1.1 2007/12/14 12:11:41 voyageur Exp $ - -inherit eutils - -MY_PV="${PV}-3" -DESCRIPTION="nxnode provides the components that are shared between the different editions of NoMachine's NX Server" -HOMEPAGE="http://www.nomachine.com/" -SRC_URI="amd64? ( http://64.34.161.181/download/${PV}/Linux/nxnode-${MY_PV}.x86_64.tar.gz ) - x86? ( http://64.34.161.181/download/${PV}/Linux/nxnode-${MY_PV}.i386.tar.gz )" - -LICENSE="nomachine" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="rdesktop vnc" -RESTRICT="strip" - -DEPEND="!net-misc/nxserver-freenx - !<net-misc/nxserver-freeedition-3.0.0" - -RDEPEND="=net-misc/nxclient-3.1* - x11-libs/libICE - x11-libs/libXmu - x11-libs/libSM - x11-libs/libXt - x11-libs/libXaw - x11-libs/libXpm - x11-apps/xrdb - rdesktop? ( net-misc/rdesktop ) - vnc? ( || ( net-misc/vnc net-misc/tightvnc ) )" - -S=${WORKDIR}/NX - -pkg_setup() { - if use vnc; then - if has_version net-misc/vnc && ! built_with_use net-misc/vnc server; - then - die "net-misc/vnc needs to be built with USE=\"server\" for VNC support" - fi - - if has_version net-misc/tightvnc && ! built_with_use net-misc/tightvnc server; - then - die "net-misc/tightvnc needs to be built with USE=\"server\" for VNC support" - fi - fi -} - -src_unpack() -{ - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/nxnode-3.0.0-setup.patch -} - -src_install() -{ - # we install nxnode into /usr/NX, to make sure it doesn't clash - # with libraries installed for FreeNX - - into /usr/NX - for x in nxagent nxnode nxsensor nxspool nxuexec ; do - dobin bin/$x - done - - dodir /usr/NX/etc - cp etc/node-debian.cfg.sample "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die - sed -e 's|COMMAND_FUSER = .*|COMMAND_FUSER = "/usr/bin/fuser"|;' -i "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die - cp etc/node.lic.sample "${D}"/usr/NX/etc/node.lic.sample || die - - dodir /usr/NX/lib - cp -R lib "${D}"/usr/NX || die - - dodir /usr/NX/scripts - cp -R scripts "${D}"/usr/NX || die - - dodir /usr/NX/share - cp -R share "${D}"/usr/NX || die - - dodir /usr/NX/var - cp -R var "${D}"/usr/NX || die - - dodir /etc/init.d - newinitd "${FILESDIR}"/nxnode-3.0.0-init nxsensor -} - -pkg_postinst() -{ - # Only install license file if none is found - if [ ! -f /usr/NX/etc/node.lic ]; then - cp "${ROOT}"/usr/NX/etc/node.lic.sample "${ROOT}"/usr/NX/etc/node.lic || die - chmod 0400 "${ROOT}"/usr/NX/etc/node.lic - chown nx:root "${ROOT}"/usr/NX/etc/node.lic - fi - - # only run install on the first time - if [ -f /usr/NX/etc/node.cfg ]; then - einfo "Running NoMachine's update script" - "${ROOT}"/usr/NX/scripts/setup/nxnode --update - else - einfo "Running NoMachine's setup script" - "${ROOT}"/usr/NX/scripts/setup/nxnode --install - fi - - elog "If you want server statistics, please add nxsensor to your default runlevel" - elog - elog " rc-update add nxsensor default" - elog - elog "You will also need to change EnableSensor to 1 in /usr/NX/etc/node.cfg" -} |