1 Summary: A free (GPL) implementation of the NX server
2 Summary(pl): Darmowa (GPL) imlementacja serwera NX
7 Group: X11/Applications/Networking
8 Source0: http://download.berlios.de/freenx/%{name}-%{version}.tar.gz
9 # Source0-md5: 504aaa2c3c93c36eefab74e2b8a6506e
10 Patch0: freenx-node-conf.patch
11 URL: http://freenx.berlios.de/
12 BuildRequires: sed >= 4.0
16 Requires: xorg-app-xmessage
17 Requires: xorg-app-xauth
19 Requires: openssh-server
20 Requires: openssh-clients
21 Requires(pre): /bin/id
22 Requires(pre): /usr/sbin/useradd
23 Requires(postun): /usr/sbin/userdel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 NoMachine NX is the next-generation X compression and roundtrip
29 suppression scheme. It can operate remote X11 sessions over 56k modem
30 dialup links or anything better.
32 This package contains a free (GPL) implementation of the nxserver
36 NoMachine NX to schemat kompresji dla X nowej generacji. Dzia³a na
37 zdalnych sesjach X11 nawet przy prêdko¶ci 56k i na ka¿dej szybszej.
39 Ten pakiet zawiera darmow± (GPL) implementacjê komponentu nxserwer.
46 # THIS ALL IS BROKEN. create .patch next time.
47 #sed -i -e 's#useradd -d $NX_HOME_DIR -s $(which nxserver) nx#useradd -d $NX_HOME_DIR -u 138 -s $(which nxserver) nx#g' nxsetup
48 #sed -i -e 's#NX_HOME_DIR=/home/.nx/#NX_HOME_DIR=%{_sysconfdir}/nxserver/#g' nxserver
49 #sed -i -e 's#netcat#nc#g' nxserver
50 #sed -i -e 's#export PATH#export LD_LIBRARY_PATH=%{_libdir}/NX/lib\nexport PATH#g' nxnode
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{_bindir}
55 install -d $RPM_BUILD_ROOT%{_sysconfdir}/nxserver
56 install node.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/nxserver/node.conf
58 install nxkeygen nxserver nxloadconfig nxnode nxsetup nxnode-login nxclient nxprint $RPM_BUILD_ROOT%{_bindir}
62 rm -rf $RPM_BUILD_ROOT
65 # FIXME: what group it should have?
66 %useradd -u 160 -d %{_sysconfdir}/nxserver -s %{_bindir}/nxserver -g users -c "FreeNX User" nx
69 # FIXME: this displays usage. what it should do?
73 if [ "$1" = "0" ]; then
78 %defattr(644,root,root,755)
79 %doc AUTHORS CONTRIB ChangeLog
80 %attr(755,root,root) %{_bindir}/*
81 %dir %{_sysconfdir}/nxserver
82 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nxserver/node.conf