]>
Commit | Line | Data |
---|---|---|
f3222b33 BZ |
1 | # TODO |
2 | # - nxserver-helper ? | |
d9d53e5e | 3 | Summary: A free (GPL) implementation of the NX server |
be848895 | 4 | Summary(pl.UTF-8): Darmowa (GPL) imlementacja serwera NX |
7c57a4ea SP |
5 | Name: freenx-server |
6 | Version: 0.7.2 | |
5ff0735e | 7 | Release: 1.2 |
4f4aeb2a | 8 | License: GPL v2 |
cf4bd85d | 9 | Group: X11/Applications/Networking |
b4b6aa3d | 10 | Source0: http://download.berlios.de/freenx/%{name}-%{version}.tar.gz |
7c57a4ea | 11 | # Source0-md5: 961913bb82ee6e60d8df6f10e647bda9 |
1fd65132 | 12 | Source1: %{name}.init |
7c57a4ea | 13 | Patch0: freenx-node-conf.patch |
768abbee | 14 | Patch1: %{name}-nx-3.2.0.patch |
b4b6aa3d | 15 | URL: http://freenx.berlios.de/ |
4e452146 | 16 | BuildRequires: sed >= 4.0 |
091d4cae BZ |
17 | Requires(postun): /usr/sbin/userdel |
18 | Requires(pre): /bin/id | |
19 | Requires(pre): /usr/sbin/useradd | |
b1a4e8f1 | 20 | Requires: bc |
d4845702 | 21 | Requires: binutils |
cf4bd85d | 22 | Requires: expect |
23 | Requires: nc | |
4e452146 | 24 | Requires: nx-X11 |
a714cfd8 | 25 | Requires: openssh-clients |
091d4cae | 26 | Requires: openssh-server |
4a9df30c | 27 | Requires: openssl |
091d4cae BZ |
28 | Requires: xinitrc-ng |
29 | Requires: xorg-app-xauth | |
30 | Requires: xorg-app-xmessage | |
b1a4e8f1 | 31 | Requires: xorg-lib-libXcomposite |
768abbee SP |
32 | Suggests: cups-backend-smb |
33 | Suggests: gnome-session | |
34 | Suggests: kdebase-desktop | |
35 | Suggests: openssl-tools | |
366307ff | 36 | Suggests: rdesktop |
768abbee SP |
37 | Suggests: samba-clients |
38 | Suggests: xorg-app-sessreg | |
39 | Suggests: xterm | |
d5d3b957 | 40 | Provides: user(nx) |
7c57a4ea SP |
41 | Obsoletes: freenx |
42 | Conflicts: freenx | |
cf4bd85d | 43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
45 | %description | |
46 | NoMachine NX is the next-generation X compression and roundtrip | |
47 | suppression scheme. It can operate remote X11 sessions over 56k modem | |
48 | dialup links or anything better. | |
49 | ||
50 | This package contains a free (GPL) implementation of the nxserver | |
51 | component. | |
52 | ||
63185940 JR |
53 | %description -l pl.UTF-8 |
54 | NoMachine NX to schemat kompresji dla X nowej generacji. Działa na | |
55 | zdalnych sesjach X11 nawet przy prędkości 56k i na każdej szybszej. | |
cf4bd85d | 56 | |
63185940 | 57 | Ten pakiet zawiera darmową (GPL) implementację komponentu nxserwer. |
cf4bd85d | 58 | |
59 | %prep | |
b4b6aa3d | 60 | %setup -q |
5ff0735e SP |
61 | %patch0 -p1 |
62 | %patch1 -p1 | |
cf4bd85d | 63 | |
768abbee SP |
64 | %if "%{_lib}" == "lib64" |
65 | %{__sed} -i -e 's/PATH_LIB=$NX_DIR\/lib/PATH_LIB=$NX_DIR\/lib64/' nxloadconfig | |
66 | %endif | |
67 | ||
7c57a4ea SP |
68 | %build |
69 | %{__make} | |
70 | ||
cf8ef097 ER |
71 | # THIS ALL IS BROKEN. create .patch next time. |
72 | #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 | |
73 | #sed -i -e 's#NX_HOME_DIR=/home/.nx/#NX_HOME_DIR=%{_sysconfdir}/nxserver/#g' nxserver | |
74 | #sed -i -e 's#netcat#nc#g' nxserver | |
75 | #sed -i -e 's#export PATH#export LD_LIBRARY_PATH=%{_libdir}/NX/lib\nexport PATH#g' nxnode | |
cf4bd85d | 76 | |
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
7c57a4ea | 79 | |
4e452146 | 80 | install -d $RPM_BUILD_ROOT%{_bindir} |
1fd65132 | 81 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
4e452146 | 82 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/nxserver |
6f9b35a4 | 83 | install node.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/nxserver/node.conf |
1fd65132 | 84 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/freenx |
cf4bd85d | 85 | |
f3222b33 | 86 | install nxcheckload.sample $RPM_BUILD_ROOT%{_bindir}/nxcheckload |
7c57a4ea | 87 | install nxcups-gethost nxdesktop_helper nxdialog nxkeygen nxloadconfig nxnode nxnode-login nxprint nxserver nxserver-helper/nxserver-helper nxsetup nxviewer_helper nxviewer-passwd/nxpasswd/nxpasswd $RPM_BUILD_ROOT%{_bindir} |
f36ed1d7 | 88 | |
cf4bd85d | 89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
cf8ef097 | 92 | %pre |
cf8ef097 ER |
93 | %useradd -u 160 -d %{_sysconfdir}/nxserver -s %{_bindir}/nxserver -g users -c "FreeNX User" nx |
94 | ||
cf4bd85d | 95 | %post |
768abbee SP |
96 | /sbin/chkconfig --add freenx |
97 | %service freenx restart | |
1fd65132 SP |
98 | |
99 | %preun | |
100 | if [ "$1" = "0" ]; then | |
768abbee SP |
101 | %service freenx stop |
102 | /sbin/chkconfig --del freenx | |
1fd65132 | 103 | fi |
cf4bd85d | 104 | |
105 | %postun | |
106 | if [ "$1" = "0" ]; then | |
107 | %userremove nx | |
108 | fi | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
4e452146 | 112 | %doc AUTHORS CONTRIB ChangeLog |
cf4bd85d | 113 | %attr(755,root,root) %{_bindir}/* |
6f9b35a4 | 114 | %dir %{_sysconfdir}/nxserver |
1d388abe | 115 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nxserver/node.conf |
1fd65132 | 116 | %attr(754,root,root) /etc/rc.d/init.d/freenx |