get rid of old nxclient

This commit is contained in:
Mario Fetka 2021-07-01 14:01:45 +02:00
parent f699359b11
commit fefa8ef8ab
27 changed files with 0 additions and 814 deletions

View File

@ -1,8 +0,0 @@
# ChangeLog for net-misc/nxclient
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*nxclient-3.5.0.7 (10 Jan 2016)
10 Jan 2016; <mario@gentoo.org> +metadata.xml, +nxclient-3.5.0.7.ebuild:
Change ebuild layout

View File

@ -1,5 +0,0 @@
DIST nxclient-3.5.0-7.i386.tar.gz 4390184 SHA256 3e4c5882f07ea408b3cf0e96aba6a06745a8838cccead8914ef2c96ba6a19953 SHA512 df14edc2cde518172439350407c23683b8275ec93b75d5da52108ef45deaf312cb56b872d76b9ff458fe187e9a0c3c8dfbb75bd0b12a2f1f424e1f629b89f397 WHIRLPOOL acdf791286e97aa6690b2decfffc0fcb18e843d81974098826b618c82941e8f83b9901f1702c6203fd105121297ff9b0f4c05f049f05fe98c43df4c6abeee9ce
DIST nxclient-3.5.0-7.x86_64.tar.gz 4577325 SHA256 e1037f3bd5ccfaa376a6e6dca1c52d666bfd7ea813d3971e85a086e541141e71 SHA512 37fb1fe5f4ba5be20076a7e8f9a99e66c894dd8c884a7dc1e6d5a4393d25e7db829564c4666e86c0fc897786dde79565257bdfafcc244c64357ccb59717fa875 WHIRLPOOL 08a63b36e8bcceb53865eb32144441acbb21bbe21762a3e8b6f0e80ddc75c179610da936c053c47a8f6d2ce1159fe0fc03a7c61d5f58a11343bef0d057c2ec86
EBUILD nxclient-3.5.0.7.ebuild 2109 SHA256 6dd6dff5c368d11b4284360a535a05f7af0a49305bc4a27d0fb230f9b09b74b8 SHA512 c293658367b9fd7d3300624b3eeed8fa21095078c58b3227de28a8386177ae13181d2694b03e451e31f7175e6a9c4b4c5e49ad79caf9fcc27ca10a03baf33b2d WHIRLPOOL aaa77c8a32f449f181af0ca1916c217b8ceab55aa921c6e1f012f027f6f14f2ee524fe0b374a640874ee491c408c7e94ccd6d763afa8ff81dc06bcccac0414f3
MISC ChangeLog 250 SHA256 8cc4e6c7952fa4f1180f8c1059e9a6378af2493b5bab25432ada7e62a31ce4b5 SHA512 c5955e54ded0d1bbf883a66881e341d41189d0b87797091e520dd8f3e34a310b4c5477839f2dd39f5f91ede53a0d0ac56ceaa395854dedc43a766a9b6bb28b80 WHIRLPOOL 2647aebc897db4e2321c4f7c09a7d7150aed5d1b20e910fd5b71bc49f885d21a7ce093e1a55ea172237c91016ce9015438b9410794ecd5cf785b96c755bb23fd
MISC metadata.xml 323 SHA256 3fbfa47bc46788bf3261c36eb8c18dbf19b695a3a4a3317d23ae3481f1caed63 SHA512 e10fd82582bd8fef76357f59d6385b2d14d507f577e8bac3a55f1dcfb68df1e74dbe07e798fbac5ca7eae699e289222ea234df1f1c3dea5c920bc6eb1ea14894 WHIRLPOOL 122e4d2a2fc95ecfa6c76ce9e648e8a7d5156c90db952d8331cf411aa915e1fd07fa3505b02e3a5de8bb743d22511d45cd0a7e4d76ed88ef19e47641a704d96e

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>nx</herd>
<longdescription>
NXClient is a X11/VNC/NXServer client especially tuned for using remote
desktops over low-bandwidth links such as the Internet
</longdescription>
</pkgmetadata>

View File

@ -1,71 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/nxclient/nxclient-3.5.0.7.ebuild,v 1.4 2013/08/01 20:54:56 ssuominen Exp $
EAPI=2
inherit eutils versionator multilib
MAJOR_PV="$(get_version_component_range 1-3)"
FULL_PV="${MAJOR_PV}-$(get_version_component_range 4)"
DESCRIPTION="X11/VNC/NXServer client (remote desktops over low-bandwidth links)"
HOMEPAGE="http://www.nomachine.com/"
SRC_URI="amd64? ( http://ftp.disconnected-by-peer.at/NX/Linux/nxclient-${FULL_PV}.x86_64.tar.gz )
x86? ( http://ftp.disconnected-by-peer.at/NX/Linux/nxclient-${FULL_PV}.i386.tar.gz )"
LICENSE="nomachine"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE="cups"
RESTRICT="strip"
DEPEND=""
RDEPEND="dev-libs/expat
=dev-libs/openssl-0.9.8*
media-libs/audiofile
|| ( virtual/jpeg:62 media-libs/jpeg:62 )
=media-libs/libpng-1.2*
media-libs/freetype
media-libs/fontconfig
cups? ( net-print/cups )
x11-libs/libXft
x11-libs/libX11
x11-libs/libXdmcp
x11-libs/libXrender
x11-libs/libXau
x11-libs/libXext
sys-libs/zlib"
S=${WORKDIR}/NX
src_install()
{
# we install nxclient into /usr/NX, to make sure it doesn't clash
# with libraries installed for FreeNX
local binaries="nxclient nxesd nxkill nxservice nxssh"
use cups && binaries="$binaries nxprint"
for x in $binaries; do
into /usr/NX
dobin bin/$x
into /usr
make_wrapper $x ./$x /usr/NX/bin /usr/NX/$(get_libdir) || die
done
into /usr/NX
dolib.so lib/libXcompsh.so* lib/libXcomp.so* || die
dodir /usr/NX/share
cp -R share "${D}"/usr/NX
# Add icons/desktop entries (missing in the tarball)
cd share/icons
for size in *; do
dodir /usr/share/icons/hicolor/${size}/apps
for icon in admin desktop icon wizard; do
dosym /usr/NX/share/icons/${size}/nxclient-${icon}.png \
/usr/share/icons/hicolor/${size}/apps
done
done
make_desktop_entry "nxclient" "NX Client" nxclient-icon
make_desktop_entry "nxclient -admin" "NX Session Administrator" nxclient-admin
make_desktop_entry "nxclient -wizard" "NX Connection Wizard" nxclient-wizard
}

View File

@ -1,9 +0,0 @@
# ChangeLog for net-misc/nxfaketime
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*nxfaketime-0.9.6 (10 Jan 2016)
10 Jan 2016; <mario@gentoo.org> +ChangeLog-2015, +metadata.xml,
+nxfaketime-0.9.6.ebuild:
Change ebuild layout

View File

@ -1,63 +0,0 @@
# ChangeLog for sys-libs/libfaketime
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libfaketime/ChangeLog,v 1.12 2015/01/13 00:42:50 radhermit Exp $
13 Jan 2015; Tim Harder <radhermit@gentoo.org> -libfaketime-0.9.1.ebuild,
-files/libfaketime-0.9.1-makefile.patch,
-files/libfaketime-0.9-as-needed.patch:
Remove old.
13 Jan 2015; Tim Harder <radhermit@gentoo.org> libfaketime-0.9.6-r1.ebuild:
Stabilize for amd64/x86 (bug #535680).
18 Jul 2014; Tim Harder <radhermit@gentoo.org> -libfaketime-0.9.5.ebuild,
-libfaketime-0.9.6.ebuild,
-files/0001-Fake-__clock_gettime-and-similar-calls-using-__.-cal.patch,
-files/0002-Finish-safe-faking-of-internal-calls.patch:
Remove old.
*libfaketime-0.9.6-r1 (18 Jul 2014)
18 Jul 2014; Tim Harder <radhermit@gentoo.org> +libfaketime-0.9.6-r1.ebuild:
Fix library install (bug #517426).
*libfaketime-0.9.6 (18 Jun 2014)
18 Jun 2014; Tim Harder <radhermit@gentoo.org> +libfaketime-0.9.6.ebuild:
Version bump.
*libfaketime-0.9.5 (06 Mar 2014)
06 Mar 2014; Tim Harder <radhermit@gentoo.org> +libfaketime-0.9.5.ebuild,
+files/0001-Fake-__clock_gettime-and-similar-calls-using-__.-cal.patch,
+files/0002-Finish-safe-faking-of-internal-calls.patch:
Version bump.
22 Jan 2013; Agostino Sarubbo <ago@gentoo.org> libfaketime-0.9.1.ebuild:
Stable for x86, wrt bug #452834
19 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> libfaketime-0.9.1.ebuild:
Stable on amd64, wrt bug #452834
23 Oct 2012; Tim Harder <radhermit@gentoo.org> -libfaketime-0.9-r1.ebuild,
-files/libfaketime-0.9-make.patch:
Remove old.
*libfaketime-0.9.1 (23 Oct 2012)
23 Oct 2012; Tim Harder <radhermit@gentoo.org> +libfaketime-0.9.1.ebuild,
+files/libfaketime-0.9.1-makefile.patch:
Version bump.
*libfaketime-0.9-r1 (27 Feb 2012)
27 Feb 2012; Tim Harder <radhermit@gentoo.org> -libfaketime-0.9.ebuild,
+libfaketime-0.9-r1.ebuild, +files/libfaketime-0.9-as-needed.patch:
Revbump to fix undefined symbol error at runtime when built with --as-needed
(bug #406041). Remove old.
*libfaketime-0.9 (15 Jan 2012)
15 Jan 2012; Tim Harder <radhermit@gentoo.org> +libfaketime-0.9.ebuild,
+files/libfaketime-0.9-make.patch, +metadata.xml:
Initial import from sunrise overlay (bug #185753).

View File

@ -1,5 +0,0 @@
DIST libfaketime-0.9.6.tar.gz 51333 SHA256 3a89972708e262ae3a548655a04f197b48e9c82ac2b61acaeb1c47b135a682b7 SHA512 ab2e9c53f4ca2b9dcd2bbcd8de3ab9e27be57547ed9b52a17f07a6fe880fd3a283a6f10018736be2a6ba4e150f54e92161959ccb887be1f78ddfc96058729860 WHIRLPOOL 1a2dcc549286bb9d4e8a576ee8ea44b8508e6b40c581560099cf3351464470ef3b01e0ea8667e9d4973f5f8d35d3eeea68bd258f9ffc2fb0f424e128ba446a6d
EBUILD nxfaketime-0.9.6.ebuild 848 SHA256 fd03a3b0fb58a632b7b60f5768c5628444941970e521d6e6a34d00dda4f65107 SHA512 10690fe18fa99f56e18ef9d07c45fc2270b4724da4c2a63896d6b76111c5513345de84878ae820f212492809b35caadc4745b6d1b37faa8409431db606ab06e9 WHIRLPOOL 2089d04de52cc7315d168ca9b919611e711b720eb1a7a703922a93194f0fb9d7eb31bb184b30fd2b2bfc2773ce1270b2faddeaa216eda5c2acd88b9635177361
MISC ChangeLog 271 SHA256 7128659e7bef88c135a3c923dedd1fed02e5066b6fa9a08a42096579620df33d SHA512 0085d436e53394036deda64d3e9934f4ae0afdb00f5035ea8f2170f6dabbfec21ab905a9e209c04ec55bd5d2dedb8bc3b3e8a4ca8d4843c42be2731ae28df195 WHIRLPOOL 0703964d0512312d1d56a0a59d646e5cbae9372a23e37ccb89f8178c060a07f82362660d188efee8096b036df57fbb6752c1cd0a5d3bbfa21e267c8d11e20b8c
MISC ChangeLog-2015 2325 SHA256 91483c38df8748096b96eb6ed9c4ef45b3c3cc25585cbcb4feb7b6907f5817c5 SHA512 4be67bd62c5fc500f8182915b4d71f5589c4434aa0251620fa316906e09635619950577c1b754bc54c9beefdc4b338a3b6a21ebeab0ac1e8bc5f1c5179411613 WHIRLPOOL 0f0a297c6063ef22ad49f70290b7349de54649b7546e3b32e44af0363470e17eaa918cca7f2c55c0c411319693f14d5c28114bfeac464bb595b7d072225c5178
MISC metadata.xml 807 SHA256 539ff353cdadf2a53696a625baa21b8d2d46c3d921469110e8d8c5f51ce610c9 SHA512 d92549d191332f62c53820cf915704606488803a75c3ebc31edd0cedd5aab9699d0eb8a3096ef8f28e17ae2096c59990cad2c1f5e39425f82c32a205df152476 WHIRLPOOL 99ac2f8b488fa1fd0070a2fb455ed88b4c6453236b8a001e071441ff762b68007b2e11558fc4ea78cb3e253f725e1704ead57ba06d4ae8f8d9f34b9daffcb585

View File

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>maintainer-needed@gentoo.org</email>
</maintainer>
<longdescription lang="en">
The Fake Time Preload Library (FTPL, a.k.a. libfaketime) intercepts
various system calls which programs use to retrieve the current date and time.
It can then report faked dates and times (as specified by you, the user) to
these programs. This means you can modify the system time a program sees
without having to change the time system-wide. FTPL allows you to specify both
absolute dates (e.g., 2004-01-01) and relative dates (e.g., 10 days ago).
</longdescription>
<upstream>
<remote-id type="github">wolfcw/libfaketime</remote-id>
</upstream>
</pkgmetadata>

View File

@ -1,38 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils user toolchain-funcs multilib
DESCRIPTION="Report faked system time to programs"
HOMEPAGE="http://www.code-wizards.com/projects/libfaketime/ https://github.com/wolfcw/libfaketime/"
SRC_URI="http://www.code-wizards.com/projects/libfaketime/libfaketime-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
S="${WORKDIR}"/libfaketime-${PV}
pkg_preinst() {
enewuser nx -1 -1 /usr/NX/home/nx
}
src_prepare() {
tc-export CC
}
src_compile() {
emake CC="$(tc-getCC)" LIBDIRNAME="/$(get_libdir)" PREFIX=/usr/NX
}
src_install() {
into /usr/NX
newbin src/faketime nxfaketime
dolib.so src/libfaketime*.so.*
mkdir -p ${D}/usr/NX/home/nx
echo "2012-05-19 12:24:45" > ${D}/usr/NX/home/nx/.faketimerc
}

View File

@ -1,11 +0,0 @@
# ChangeLog for net-misc/nxnode
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*nxnode-3.5.0.9 (10 Jan 2016)
10 Jan 2016; <mario@gentoo.org> +files/nxnode-3.0.0-init,
+files/nxnode-3.4.0-cups_path.patch, +files/nxnode-3.4.0-setup.patch,
+files/nxnode-3.4.0-systemd.patch, +files/nxsensor.service, +metadata.xml,
+nxnode-3.5.0.9.ebuild:
Change ebuild layout

View File

@ -1,10 +0,0 @@
AUX nxnode-3.0.0-init 1389 SHA256 f8ac3bbf0fb807e5cd279a4066e197f6cab4af8aa9668670cc8e7aa1664c7b0b SHA512 8ab7b3cfe1b347103cf5fb336df881a60322046c8c24adcdef1243a29f7c20e1e3df5b6180bfa1956ab561ec5f265e6351de87c1306e94fdac4351c14d586c1b WHIRLPOOL 77201639ffd5be32e71efc11e87008411084efbeb566389e312bc888e17d8efd74860055e05670388407dceae49f70aac0c17d1899f85dc16c3d05242b98cf67
AUX nxnode-3.4.0-cups_path.patch 528 SHA256 17bb5f2636de1ba5550fca8811f877c743ffaba9c5db20a1ce613aec8d5a3587 SHA512 8b20dfa2a2491f41d3739b283bc9d0d31fe5fdc703a9b0aacdf760182b1ce5713dbcbf905929d1d02c07a4a3049ef21cd8f7f4e7625662356f5b7d1dab02d16e WHIRLPOOL 8182a2033eb46385a540658e61223c5c41cee92e2df9f502a429f2a1be6cb236ccd8c0a04d23efbdf88d174beabd384ef02917a08f6a5964004e0a9e3808d887
AUX nxnode-3.4.0-setup.patch 1216 SHA256 1d1f1e08c073d597db89507f9617aaa90234682c96772be1a5370a49f74ca04b SHA512 7d37097dfdb036560f64c79ea57836ace64211f6413e856bb7166f2fa22614f1cdce92c828a9cf37140ffc10348d221c8f78f2e8861aa6a6f5f11dc9436564ca WHIRLPOOL 51e28171f9a6b1b0f631c52d9be8434fa6477c19daac64cea7170cb7a279a06b01c5282da5ea7cea16207a5fcdcdd0af44b6cbff43470c354981e84c5ca5bd92
AUX nxnode-3.4.0-systemd.patch 1009 SHA256 a9f7dda5b7107e4fea11752dabe774a233071bd6c0cbae0f9ff9d0afb31cc738 SHA512 26eb9ea389f615b551b22aeed8178dac34798ef36199cbe9fb12ae077f8991ce0793df90d78c65bf2d7a1fe2328e765444cb191a96b41605c150607f3cc607c1 WHIRLPOOL 15501bb4ad5554959953a5dd4f92bf499810bbb3f7460bb2f22f269b1178e8766e7c40429dfb1e7e6bcdcd36faff49810a09775489ac2f5e36eac13853631f67
AUX nxsensor.service 240 SHA256 a71a6dbe32f3906caddf88fa4ba7b71035467cbb6bf8b17d75f14a0016af6bac SHA512 cc1ac5c825bf6a75186c69f5489efa9648f5a7856327d016cb6c11ef46fcf8e02e2159884d9bbf42ee17cce32dc49033d1d42c694ea453b56be2521421642046 WHIRLPOOL 288da5333c5f5bc09b9246ff28ed0708b1189ef1778e39ece00a40239f6d4db53e08eb69693941c9712617060930e918d727dff4f190dfcfe49a7592d469098d
DIST nxnode-3.5.0-9.i386.tar.gz 6047696 SHA256 93310cd78617ca3619fbf093d6760c00459367ebf824ec643c1c5f20202d8488 SHA512 6d35c0bbc436e1773349c2b2c54039c6c5caabdf95977e0281d1be66402e65a977cbcce6f384f42e068db788785f2722f0ed5a5564acbeef2a64cd7b23f52ef6 WHIRLPOOL 9bda55697ea59d9595ef763d73b6b8c4254941cfe4eb79c8fbfa537f5cdf8cc2ead1c5537daca7b995fbde7a003f2cd8f9c817ccad4c2cabedd15d0cedcce191
DIST nxnode-3.5.0-9.x86_64.tar.gz 6748262 SHA256 555ed1d18280825075c617effec2cfdc83fd2d8be189b08b09288abefbe86238 SHA512 151858b7417abcbc42fffe55cff4bc43fa2d7245c10d77d83557ff68936d5cd2199e7a7c7b0156c580a1a0b3b6b218313138113c94354e969ce0c27b26fd86f9 WHIRLPOOL 8e824828f929dac83ddda076afd4e99e35dbe52354d265b8bae406f8de4c51f01e690afd547b83028f1bd6c90094631022b549f27bd0d5729fb31350003d5190
EBUILD nxnode-3.5.0.9.ebuild 3834 SHA256 e08a2c421e401fed9fed243ac666cdaf24b6cb9dbbe495793fbc8a6301c7bc4d SHA512 96a96d1c4250a06786987853839f41559b0c0be29d76a7a97e38a8ec2b9b68fb82b80e2c9f6714309e19dbc7bdc24ed73913c45e2bdd3504fac38991965c6677 WHIRLPOOL 1e5f4c5b8fb044877e9a1b9c40d7ba72ad08b5f732945fa1ce9ee4c2f326e256b6855282d7ca44cc5a2fea11d1449346ccd4b81c76377eb935c3149fa1fb064e
MISC ChangeLog 406 SHA256 9277e4a2512853b13dcc03b0987081412618e87607f8fa274c6023193e72cb00 SHA512 83fdd4653cfdeef9670b381781e5c6a70477803084c3e0ca3b69f145693c01b7e11fae28842bdaad550e3b41c256093794ef9f9ac27a21ba4465afb273088538 WHIRLPOOL 541db9329b480c414a5525291160235b1f843296c70cc00944ccb37e7df683ef1b7f5bc91b0039a23daa64f1939b7b99f4af97c9b7fd300361b913a7801127b5
MISC metadata.xml 264 SHA256 3eaf6b268d16ec374617534bf70f0e96d2c6399ca1b0d4ffa3eeee619d775171 SHA512 f6cd27b05c66a2890b5b9474cb56820fdc44ebbb7c9e4d23c9581f9c79c11c41e86d16428a47fe12133db8e3f34fd88e815393729232c4a8ee90cf0c4cb5dc32 WHIRLPOOL feac429f964a1c9570264b391868649a23095c71dcec0e78cf233868e5d9ba2341e1228bbaf94db933fde2f85d2d91cd805ed175ea71175374a50138057817a1

View File

@ -1,68 +0,0 @@
#!/sbin/runscript
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
NX_NODE_CFG="/usr/NX/etc/node.cfg"
NX_SENSOR_CMD="/usr/NX/bin/nxfaketime '2012-05-19 12:24:45' /usr/NX/bin/nxsensor"
NX_SENSOR_PID="/usr/NX/var/run/nxsensor.pid"
NX_SENSOR_HOST="127.0.0.1"
NX_SENSOR_PORT="19250"
depend()
{
need net
}
is_enabled()
{
local tmp
if ! [[ -x $NX_SENSOR_CMD ]] ; then
eerror "$NX_SENSOR_CMD not found"
return 1
fi
tmp=`/usr/bin/awk -F'"' '/^EnableSensor/ {print $2}' $NX_NODE_CFG`
if [[ $tmp != "1" ]]; then
eerror "nxsensor is disabled in $NX_NODE_CFG"
return 1
fi
tmp=`/usr/bin/awk -F'"' '/^StatisticsHost/ {print $2}' $NX_NODE_CFG`
if [[ -n $tmp ]] ; then
NX_SENSOR_HOST="$tmp"
fi
tmp=`/usr/bin/awk -F'"' '/^NodeSensorPort/ {print $2}' $NX_NODE_CFG`
if [[ -n $tmp ]] ; then
NX_SENSOR_PORT="$tmp"
fi
return 0
}
start() {
is_enabled || return 1
ebegin "Starting nxsensor"
$NX_SENSOR_CMD -a $NX_SENSOR_HOST -a "::ffff:$NX_SENSOR_HOST" -P $NX_SENSOR_PORT -d
PID=`ps -ef | grep $NX_SENSOR_CMD | grep -v grep | awk '{print $2}'`
if [[ -z $PID ]] ; then
eend 1
else
echo $PID > $NX_SENSOR_PID
eend 0
fi
}
stop() {
ebegin "Stopping nxsensor"
PID=`cat $NX_SENSOR_PID`
if [[ -z $PID ]] ; then
eerror "nxsensor not started"
eend 1
else
kill $PID
rm -f $NX_SENSOR_PID
eend 0
fi
}

View File

@ -1,12 +0,0 @@
diff -ruN NX~/scripts/setup/nxnode NX/scripts/setup/nxnode
--- NX~/scripts/setup/nxnode 2010-08-04 12:34:28.000000000 +0200
+++ NX/scripts/setup/nxnode 2010-10-20 12:34:05.418016564 +0200
@@ -25,7 +25,7 @@
WRAPPER="$NODE_ROOT/bin/nxuexec"
-CUPS_PATH="/usr /opt/sfw/cups /usr/local /usr/lib /opt/csw"
+CUPS_PATH="/usr /opt/sfw/cups /usr/local /usr/lib /opt/csw /usr/libexec"
SMB_PATH="/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin"
CUPS_CERTS_DIR="/var/run/cups/certs /var/lib/cups/certs /etc/cups/certs"

View File

@ -1,39 +0,0 @@
--- scripts/setup/nxnode.orig 2009-09-24 18:12:36.000000000 +0200
+++ scripts/setup/nxnode 2009-12-15 21:22:27.000000000 +0100
@@ -481,7 +481,7 @@
echo "#
# Specify path and name of the command to start the GNOME session.
#
-CommandStartGnome=\"$DBUS_PATH --exit-with-session gnome-session\"
+CommandStartGnome=\"/etc/X11/Sessions/Gnome\"
" >> $CONFIG_FILE;
fi
@@ -525,7 +525,7 @@
cmdGnome="/etc/X11/Xsession gnome-session"
elif [ $DBUS = "1" ] && [ "x$DBUS_PATH" != "x" ];
then
- cmdGnome="$DBUS_PATH --exit-with-session gnome-session"
+ cmdGnome="/etc/X11/Sessions/Gnome"
else
cmdGnome="gnome-session"
fi
@@ -2489,6 +2497,10 @@
system=fedora
fi
+if [ -d /usr/portage ]; then
+ system=gentoo
+fi
+
if [ "x$system" = "x" -a -f /etc/release ];
then
system=solaris
@@ -2523,6 +2535,7 @@
"fedora" ) ;;
"debian" ) ;;
"solaris" ) ;;
+ "gentoo" );;
"" ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unable to autodetect the operating system type, please specify it" ;;
* ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unsupported operating system '$system'" ;;
esac

View File

@ -1,32 +0,0 @@
--- a/usr/NX/scripts/setup/nxnode 2012-05-19 04:24:46.000000000 -0600
+++ b/usr/NX/scripts/setup/nxnode 2012-11-16 09:18:10.801770960 -0700
@@ -1301,6 +1301,10 @@
}
removeNXinit () {
+ if [ "$system" = "gentoo" ]; then
+ systemctl disable nxsensor
+ return 0
+ fi
if [ "$system" = "fedora" ] || [ "$system" = "redhat" ] || [ "$system" = "suse" ];
then
@@ -1505,6 +1509,10 @@
addNXinit () {
+ if [ "$system" = "gentoo" ]; then
+ systemctl enable nxsensor
+ return 0
+ fi
runCommand "cat $NODE_ROOT/scripts/init/nxsensor > /etc/init.d/nxsensor" "Unable to create: '/etc/init.d/nxsensor'" "warn"
runCommand "chmod +x /etc/init.d/nxsensor" "Cannot set permissions of '/etc/init.d/nxsensor' file" "warn"
@@ -2479,6 +2487,7 @@
echo " debian Debian Woody 3.0, Unstable, Ubuntu, etc."
echo " solaris Sun Solaris 8.0, 9.0, 10.0, etc."
echo " fedora Fedora Core 1, 2, 3, 4, 5, etc. "
+ echo " gentoo Gentoo Linux"
echo "$errMsg"

View File

@ -1,9 +0,0 @@
[Unit]
Description=NoMachine nxsensor service
[Service]
ExecStart=/usr/NX/bin/nxfaketime '2012-05-19 12:24:45' /usr/NX/bin/nxsensor "-a" "127.0.0.1" "-a" "::ffff:127.0.0.1" "-P" "19250"
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>nx</herd>
<longdescription>Shared components between the different editions of NoMachine's NX Server</longdescription>
</pkgmetadata>

View File

@ -1,122 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/nxnode-3.5.0.9.ebuild,v 1.2 2012/07/12 08:49:36 voyageur Exp $
EAPI=4
inherit eutils user versionator systemd multilib
MAJOR_PV="$(get_version_component_range 1-3)"
FULL_PV="${MAJOR_PV}-$(get_version_component_range 4)"
DESCRIPTION="shared components between the different editions of NoMachine's NX Servers"
HOMEPAGE="http://www.nomachine.com/"
SRC_URI="amd64? ( http://ftp.disconnected-by-peer.at/NX/Linux/nxnode-${FULL_PV}.x86_64.tar.gz )
x86? ( http://ftp.disconnected-by-peer.at/NX/Linux/nxnode-${FULL_PV}.i386.tar.gz )"
# GPL-2 for Gentoo init script
LICENSE="nomachine GPL-2"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE="rdesktop vnc"
RESTRICT="strip"
DEPEND=""
RDEPEND="=net-misc/nxclient-${MAJOR_PV}*[cups]
net-misc/nxfaketime
sys-process/lsof
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? ( x11-misc/x11vnc
net-misc/tightvnc )"
S=${WORKDIR}/NX
pkg_preinst()
{
enewuser nx -1 -1 /usr/NX/home/nx
}
src_prepare()
{
epatch "${FILESDIR}"/nxnode-3.4.0-setup.patch
epatch "${FILESDIR}"/nxnode-3.4.0-cups_path.patch
epatch "${FILESDIR}"/nxnode-3.4.0-systemd.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
sed -e "s|NX/lib|NX/$(get_libdir)|g" -i "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die
sed -e "s|#AgentLibraryPath = .*|AgentLibraryPath = \"/usr/NX/$(get_libdir)\"|;" -i "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die
sed -e "s|#ProxyLibraryPath = .*|ProxyLibraryPath = \"/usr/NX/$(get_libdir)\"|;" -i "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die
#sed -e "s|#ApplicationLibraryPath = .*|ApplicationLibraryPath = \"/usr/NX/$(get_libdir)\"|;" -i "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die
cp etc/node.lic.sample "${D}"/usr/NX/etc/node.lic.sample || die
for x in esddsp esd expat X11 Xcompext Xcomposite Xcompshad Xdamage Xext Xfixes Xft Xpm Xrandr Xrender Xtst ; do
dolib.so lib/lib${x}.so.*
done
dodir /usr/NX/$(get_libdir)/perl
cp -R lib/perl "${D}"/usr/NX/$(get_libdir) || die
# Symlinks for keeping original folder structure and
# add a link lib to $(get_libdir) if we are e.g. on amd64 multilib
if [ "$(get_libdir)" != "lib" ]; then
dosym "$(get_libdir)" /usr/NX/lib
fi
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
systemd_dounit "${FILESDIR}"/nxsensor.service
}
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:0 "${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"
}

View File

@ -1,11 +0,0 @@
# ChangeLog for net-misc/nxserver
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*nxserver-3.5.0.11-r1 (10 Jan 2016)
10 Jan 2016; <mario@gentoo.org> +files/nxserver-2.1.0-init,
+files/nxserver-3.3.0-dontupdatekeys.patch,
+files/nxserver-3.5.0.11-setup.patch, +files/nxserver-3.5.0.11-systemd.patch,
+files/nxserver.service, +metadata.xml, +nxserver-3.5.0.11-r1.ebuild:
Change ebuild layout

View File

@ -1,10 +0,0 @@
AUX nxserver-2.1.0-init 539 SHA256 ccbfbf3cb117cb132bcd7953f8160a6e053a14b60de3028f281a0722fafe8219 SHA512 da546a2b70bd6ef6a79cf0879f9769d52bbe53a1ff693d921ee92f16557bbaa4ff5b0ca0dac6ee40d9d44f740634b29d765a3781b72913a4daa357b7c7a9e191 WHIRLPOOL dc7e02dd48278fc70901a4d315b2dcc4654b14fb85e63e6d506bfd0ab8d5415d1789f75aea8dec0ee5f164b4faf3803361ac0cf5ea156e2a0c15d800b4e1623a
AUX nxserver-3.3.0-dontupdatekeys.patch 333 SHA256 4b4202a988d9b8841a5aef358b6ef50cc5864644ff4e9192cbd77cab54d1f298 SHA512 e04734582a1a125fa894bbbd49c8b8e78443ac8007df4b33b3f8ceae66a2e440350b814b22bf4719cfd37ba1ef84bd2d461757ae347d434bbad06a755f7dbec3 WHIRLPOOL 08ee75467e417bc169a4d05241192ade7059b27ef004955970a17ba810c73a254362d5a04615da2161cece623563de05cae18bdf6fb69d5bf4fdc72dc913ef6b
AUX nxserver-3.5.0.11-setup.patch 1720 SHA256 c45f953c06ea89d8741c8f1a824d9c9f1a9f6bd6a2b66df58a5e8b0a535abe75 SHA512 bb615b84ee0afc85ece7832da8f9cbda51615d90e8cb51e5d19afb335911a848a26bd15932ceb6565a4ebdb53a973a01b7a9af198943eec92759199bbaceca93 WHIRLPOOL cfc9f5795a4f43384626c59c795bf8eaa36dc2578c7835576ff4e73d2b4ce03c8509d2b2ac9fddfe86f0d3a7856cb03479fc1ba9c587aa3d08ac4be25214655e
AUX nxserver-3.5.0.11-systemd.patch 1050 SHA256 2f4f3d9378189508f2612c47ff91fbb5c160c0ec0592b45f7b7baf36a10fae31 SHA512 c6d38a04f8a445ca07a27e75af5c29d3f6b9e3afe615caf4d5534549041afe1523f9c3e2544b3aafe8dd942e33acb20288f755a734b967624f4fff08b04b2564 WHIRLPOOL 8d3aeda9301a53baee09f5aa1ae143d4b43a88038dd849c48bf98f48fb1a14bdf57500d77399eab22822c869a4cbed0fa0905a7061e1a9567ee59674f0ed0bb8
AUX nxserver.service 288 SHA256 7ec7b6cc102ec4ae75e5f56b5edf4958688d52ba73b5b9bdd2da2e408ef854c2 SHA512 f9038fd7f86529899369b7ca6d0675e2c5db52111a6c244af75a533001b7130f319a8cdea645d2cb61c2110cc93cd31a0747bd71191b6def303389614059e8ca WHIRLPOOL 0ff4bea8e5e6cee8ed740f592c06a0158a26854bd930d669404b46872956be39b70c5aee0051e587c7e6fc380e8595837c94c37fba88a66eca9eeaeb831918c8
DIST nxserver-3.5.0-11.i386.tar.gz 6866158 SHA256 860a5de07e247e38d951f77b87f4dae3eb338120d768f2098df6332e63910074 SHA512 c457f8b114b526058329c8925b6388d74b5c72221d2625c67eac81baacc9a8575daa1ec21f17fba2fbee3808b920e896aa5c140cea0acaf31504849444484448 WHIRLPOOL df37a856c30528e9239cc3072c10f00c198876b349db1e9a94acbc2b45e1b60d31f48b6d13f30151a4e288eb48724c22167f5fd00e4fd03caf0f8e92543420fa
DIST nxserver-3.5.0-11.x86_64.tar.gz 7903110 SHA256 05b462bf6b888dbdd22246a521a0b6ed18ba5d55de673a53c5ae9d9c6dd68c63 SHA512 6a2483c874acbe824b766e06b01ad364d163380df02d9a36f7449762a1feeecf3106663503acd3d3435fe9bc6e7adea8e146b8d4d6d3d0a9c38c85c3c85a3d29 WHIRLPOOL 7d73064dffdcc231a72a9e8fdcdc9979b5c4c01af67923b50c2b9ea4a527a6b6d564876c61d607ad664d6ddec4e0a81835f5dee4eb0771e5c5c2c294a26bd41f
EBUILD nxserver-3.5.0.11-r1.ebuild 3433 SHA256 24a52c5ded199a7ffe9d5a60461a990bb490031083d95793b4e8d9a81c48e605 SHA512 37f12c942e45016cfa807da56bd8d008f74062502b629033937740696b622e0eea16d83c25fdf114effcfd2b3bb28ec9f03d675e33e544ad603ab9bb5c70d2d6 WHIRLPOOL 708705eb159c3cc542674e7d5c26399dcbcd19346ab4a194c26d421de41cd989710caf929265f0f6cb79322c08b0b8ff1d26271c3aeb1a47daaec2c3e2a2d08d
MISC ChangeLog 439 SHA256 d31c58c422dba2f34488f5fb0cf0259a02453c9ba028c0afb917e0a1139212e0 SHA512 440f968106ebdf4d740b533e1bec644e0923706771906a32dbc7bc6d958affe14cc04a4a492694977e0f6e1f3e1f87294e89144616de0c9ab208a0314c97e5b5 WHIRLPOOL e6ce6ce9efa77b32268f0ef7cdd6bdd9babe4a6ce7c08591087516d1012b4805d56465138141064210b181909b7aad66b9b0ee26416eba2a9b83c067a5365b49
MISC metadata.xml 229 SHA256 445516ce54a07930b5cf708034023dddbc5fd8125be710709912ef849e623bc5 SHA512 25d354f2acdedcc4aacd99ded3c1ab0a88e038f87c8cbcd7bea1096c12e9450c9ec9666822157c9491483dfcb6d03eeeb31987d8639486ce46529a8121a04e9b WHIRLPOOL cba8e7212166ca371409754f9929209a5378f8b75d95ffaf67b7e2d1f38370f9dacbe2c4a0868e38dee117aee508ed2d782a2a12b3afa34d31703cff42aa966c

View File

@ -1,31 +0,0 @@
#!/sbin/runscript
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# opts="${opts} reload configtest"
NX_SERVER_CMD="/usr/NX/bin/nxfaketime '2012-05-19 12:24:45' /usr/NX/bin/nxserver"
depend()
{
need net
use nxsensor
}
start() {
ebegin "Starting nxserver"
$NX_SERVER_CMD --start
if [ $? = 0 ]; then
$NX_SERVER_CMD --statistics start
eend $?
else
eend 1
fi
}
stop() {
ebegin "Stopping nxserver"
$NX_SERVER_CMD --stop
$NX_SERVER_CMD --statistics stop
eend 0
}

View File

@ -1,11 +0,0 @@
--- scripts/setup/nxserver.orig 2008-11-24 10:24:26.000000000 +0100
+++ scripts/setup/nxserver 2008-11-24 10:27:38.000000000 +0100
@@ -3149,8 +3149,6 @@
# addNXinit
startNXStat
- updateAutorizedKey
-
checkStr=`$NXSHELL --upgradecheck 2>&1`
result=`echo "$checkStr" | grep -c "expired" 2>&1`
if [ "$result" != "0" ];

View File

@ -1,57 +0,0 @@
--- scripts/setup/nxserver.orig 2012-05-19 11:45:03.000000000 +0200
+++ scripts/setup/nxserver 2013-01-21 22:40:41.958166294 +0100
@@ -967,6 +975,12 @@
}
addNXUserLinux () {
+
+ # does the NX user already exist?
+ if id nx > /dev/null 2>&1 ; then
+ return
+ fi
+
if [ "x$system" != "xdebian" ]
then
sysuser=`useradd --help 2>&1|grep "\-r"`;
@@ -2679,6 +2693,11 @@
system=fedora
fi
+if grep -q "ID=gentoo" /etc/os-release || [ -f /etc/gentoo-release ];
+then
+ system=gentoo
+fi
+
if [ "x$system" = "x" -a -f /etc/release ];
then
system=solaris
@@ -2713,6 +2732,7 @@
"mandrake" ) ;;
"fedora" ) ;;
"debian" ) ;;
+ "gentoo" ) ;;
"solaris" ) ;;
"" ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unable to autodetect the operating system type, please specify it" ;;
* ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unsupported operating system '$system'" ;;
@@ -2892,21 +2912,6 @@
fi
fi
-
- result=`id nx 2>&1`
- if [ $? = 0 ];
- then
-# printMsg "Cannot add user: nx. User: nx already exists" "error"
-# printMsg "Please try to fix the problem by reinstalling the server" "error"
- printMsg "Cannot add user: nx" "error"
- printMsg "User: nx already exists" "error"
- printMsgNoDot "To fix the problem, you may try to completely uninstall NX"
- printMsgNoDot "Server and install it from scratch. If this is not enough,"
- printMsgNoDot "please delete the nx user by using the system commands and"
- printMsg "proceed with a new installation of NX Server"
- exit 1
- fi
-
LOGFILE="$INSTALLOG"
createLogdirectory
startLog

View File

@ -1,34 +0,0 @@
--- a/usr/NX/scripts/setup/nxserver 2012-05-19 03:45:03.000000000 -0600
+++ b/usr/NX/scripts/setup/nxserver 2012-11-16 09:44:04.615561778 -0700
@@ -649,6 +649,11 @@
removeNXinit () {
+ if [ "$system" = "gentoo" ]; then
+ systemctl disable nxserver
+ return 0
+ fi
+
if [ "$system" = "fedora" ] || [ "$system" = "redhat" ] || [ "$system" = "suse" ];
then
if [ -f "/sbin/chkconfig" ];
@@ -853,6 +858,11 @@
addNXinit () {
+ if [ "$system" = "gentoo" ]; then
+ systemctl enable nxserver
+ return 0
+ fi
+
runCommand "cat $NODE_ROOT/scripts/init/nxserver > /etc/init.d/nxserver" "Unable to create: '/etc/init.d/nxserver'" "warn"
runCommand "chmod +x /etc/init.d/nxserver" "Cannot set permissions of '/etc/init.d/nxserver' file" "warn"
@@ -2600,6 +2610,7 @@
echo " debian Debian Woody 3.0, Unstable, Ubuntu, etc."
echo " solaris Sun Solaris 8.0, 9.0, 10.0, etc."
echo " fedora Fedora Core 1, 2, 3, 4, 5, etc. "
+ echo " gentoo Gentoo Linux"
echo "$errMsg"

View File

@ -1,13 +0,0 @@
[Unit]
Description=NoMachine NX Server
Requires=sshd.service
After=sshd.service
[Service]
ExecStart=/usr/NX/bin/nxfaketime '2012-05-19 12:24:45' /usr/NX/bin/nxserver --start
ExecStop=/usr/NX/bin/nxserver --shutdown
Type=oneshot
RemainAfterExit=true
[Install]
WantedBy=multi-user.target

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>nx</herd>
<longdescription>Free edition NX server from NoMachine</longdescription>
</pkgmetadata>

View File

@ -1,105 +0,0 @@
# Copyright 1999-2016 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.5.0.11-r1.ebuild,v 1.1 2013/01/22 00:15:11 voyageur Exp $
EAPI=4
inherit eutils user versionator systemd
MAJOR_PV="$(get_version_component_range 1-3)"
FULL_PV="${MAJOR_PV}-$(get_version_component_range 4)"
DESCRIPTION="Free edition NX server from NoMachine"
HOMEPAGE="http://www.nomachine.com/"
SRC_URI="amd64? ( http://ftp.disconnected-by-peer.at/NX/Linux/nxserver-${FULL_PV}.x86_64.tar.gz )
x86? ( http://ftp.disconnected-by-peer.at/NX/Linux/nxserver-${FULL_PV}.i386.tar.gz )"
# GPL-2 for Gentoo init script
LICENSE="nomachine GPL-2"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE=""
RESTRICT="strip"
DEPEND="=net-misc/nxnode-${MAJOR_PV}*"
RDEPEND="${DEPEND}
net-misc/nxfaketime
media-fonts/font-misc-misc
media-fonts/font-cursor-misc
x11-apps/xauth
x11-apps/xhost"
S="${WORKDIR}"/NX
pkg_preinst() {
enewuser nx -1 -1 /usr/NX/home/nx
}
src_prepare() {
epatch "${FILESDIR}"/nxserver-3.3.0-dontupdatekeys.patch
epatch "${FILESDIR}"/nxserver-3.5.0.11-setup.patch
epatch "${FILESDIR}"/nxserver-3.5.0.11-systemd.patch
}
src_install() {
# we install nxserver into /usr/NX, to make sure it doesn't clash
# with libraries installed for FreeNX
into /usr/NX
dobin bin/nxserver
dodir /usr/NX/etc/keys
insinto /usr/NX/etc
doins etc/administrators.db.sample
doins etc/guests.db.sample
doins etc/passwords.db.sample
doins etc/profiles.db.sample
doins etc/users.db.sample
doins etc/server.lic.sample
newins etc/server-debian.cfg.sample server-gentoo.cfg.sample
sed -e "s|#EnableStatistics = .*|EnableStatistics = \"1\"|;" -i "${D}"/usr/NX/etc/server-gentoo.cfg.sample || die
cp -R home "${D}"/usr/NX || die "Unable to install home folder"
dodir /usr/NX/$(get_libdir)/perl
cp -R lib/perl "${D}"/usr/NX/$(get_libdir) || die
cp -R scripts "${D}"/usr/NX || die "Unable to install scripts folder"
cp -R share "${D}"/usr/NX || die "Unable to install share folder"
cp -R var "${D}"/usr/NX || die "Unable to install var folder"
newinitd "${FILESDIR}"/nxserver-2.1.0-init nxserver
systemd_dounit "${FILESDIR}"/nxserver.service
}
pkg_postinst () {
# 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
einfo "Running NoMachine's update script"
"${ROOT}"/usr/NX/scripts/setup/nxserver --update || die "Update script failed"
else
einfo "Running NoMachine's setup script"
"${ROOT}"/usr/NX/scripts/setup/nxserver --install || die "Installation script failed"
fi
if ! has_version 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"
}