1 |
obgr_seneca |
205910 |
# This is work in progress |
2 |
|
|
# not finished yet, so please don't complain about strange things |
3 |
|
|
# I just wanted to have it in svn, so it's revisioned |
4 |
|
|
# obgr_seneca |
5 |
obgr_seneca |
216576 |
|
6 |
daviddavid |
894107 |
%define x2golibdir %{_libdir}/x2go |
7 |
obgr_seneca |
216576 |
|
8 |
obgr_seneca |
205910 |
Name: x2goserver |
9 |
ghibo |
1082142 |
Version: 4.0.1.20 |
10 |
daviddavid |
1150905 |
Release: %mkrel 2 |
11 |
obgr_seneca |
216576 |
Summary: The server-side core of X2go |
12 |
obgr_seneca |
205910 |
License: GPLv2+ |
13 |
|
|
Group: Networking/Remote access |
14 |
dams |
552053 |
Url: http://wiki.x2go.org/doku.php |
15 |
obgr_seneca |
260531 |
Source0: http://code.x2go.org/releases/source/%{name}/%{name}-%{version}.tar.gz |
16 |
dams |
552053 |
BuildRequires: gcc |
17 |
|
|
BuildRequires: perl |
18 |
|
|
BuildRequires: man |
19 |
tv |
902881 |
BuildRequires: man2html |
20 |
dams |
552053 |
Requires: openssh-server |
21 |
|
|
Requires: openssh-clients |
22 |
|
|
Requires: lsof |
23 |
|
|
Requires: perl-Config-Simple |
24 |
|
|
Requires: makepasswd |
25 |
|
|
Requires: xauth |
26 |
|
|
Requires: sshfs-fuse |
27 |
obgr_seneca |
205910 |
# x2go / nx dependencies |
28 |
dams |
552053 |
Requires: x2goagent |
29 |
|
|
Requires: xcomp |
30 |
|
|
Requires: xcompext |
31 |
|
|
Requires: nxproxy |
32 |
|
|
Requires: nxX11 |
33 |
|
|
Requires(post): rpm-helper >= 0.24.8-1 |
34 |
tmb |
233908 |
Requires(preun): rpm-helper >= 0.24.8-1 |
35 |
tv |
676295 |
Recommends: %{name}-database |
36 |
obgr_seneca |
216576 |
|
37 |
obgr_seneca |
205910 |
%description |
38 |
|
|
x2go is a "server based computing environment" combining the advantages of |
39 |
|
|
different existing solutions. |
40 |
obgr_seneca |
216576 |
The x2goserver package provides the server-side core of X2go. |
41 |
obgr_seneca |
205910 |
|
42 |
|
|
%package sqlite |
43 |
|
|
Summary: Virtual package for using %{name} with sqlite |
44 |
|
|
Group: Networking/Remote access |
45 |
|
|
Requires: sqlite3-tools |
46 |
|
|
Requires: perl-DBD-SQLite |
47 |
obgr_seneca |
216576 |
Provides: %{name}-database = %{version}-%{release} |
48 |
obgr_seneca |
205910 |
|
49 |
|
|
%description sqlite |
50 |
|
|
This is a virtual package that just provides the neccesary packages needed to |
51 |
|
|
run x2go with a default sqlite database setup. |
52 |
|
|
|
53 |
|
|
%package postgresql |
54 |
|
|
Summary: Virtual package for using %{name} with a postgresql database |
55 |
|
|
Group: Networking/Remote access |
56 |
|
|
Requires: postgresql-server |
57 |
|
|
Requires: perl-DBD-Pg |
58 |
obgr_seneca |
216576 |
Provides: %{name}-database = %{version}-%{release} |
59 |
obgr_seneca |
205910 |
|
60 |
|
|
%description postgresql |
61 |
|
|
This is a virtual package that just provides the neccesary packages needed to |
62 |
|
|
run x2go with a postgresql setup. Note, you can also run x2go with a remote |
63 |
|
|
postgresql setup. |
64 |
|
|
|
65 |
|
|
%prep |
66 |
obgr_seneca |
266951 |
%setup -q |
67 |
obgr_seneca |
205910 |
|
68 |
dams |
552053 |
# Set path |
69 |
|
|
find -type f | xargs sed -i -r -e '/^LIBDIR=/s,/lib/,/%{_lib}/,' |
70 |
|
|
sed -i -e 's,/lib/,/%{_lib}/,' x2goserver/bin/x2gopath |
71 |
|
|
# Don't try to be root |
72 |
|
|
sed -i -e 's/-o root -g root//' */Makefile |
73 |
|
|
# Perl pure_install |
74 |
|
|
sed -i -e 's/perl install/perl pure_install/' Makefile |
75 |
|
|
|
76 |
obgr_seneca |
205910 |
%build |
77 |
daviddavid |
1150905 |
%setup_compile_flags |
78 |
obgr_seneca |
216576 |
export LC_ALL=C |
79 |
daviddavid |
1150905 |
%make_build PREFIX=%{_prefix} |
80 |
obgr_seneca |
205910 |
|
81 |
|
|
%install |
82 |
obgr_seneca |
216576 |
export LC_ALL=C |
83 |
daviddavid |
894107 |
%make_install PREFIX=%{_prefix} \ |
84 |
obgr_seneca |
216576 |
INSTALL_DIR="install -d -m 755" \ |
85 |
|
|
INSTALL_FILE="install -m 644" \ |
86 |
|
|
INSTALL_PROGRAM="install -m 755" |
87 |
obgr_seneca |
222049 |
rm -f %{buildroot}%{_sysconfdir}/x2go/Xsession.d |
88 |
obgr_seneca |
205910 |
|
89 |
obgr_seneca |
216576 |
mkdir -p %{buildroot}%{_unitdir} |
90 |
colin |
568256 |
install -m0644 x2goserver.service %{buildroot}%{_unitdir}/%{name}.service |
91 |
obgr_seneca |
205910 |
|
92 |
obgr_seneca |
216576 |
cat > README.install.urpmi << EOF |
93 |
obgr_seneca |
205910 |
|
94 |
|
|
DATABASE SETUP |
95 |
|
|
----------------- |
96 |
|
|
|
97 |
|
|
You need either an sqlite or a postgresql database for running x2go. |
98 |
|
|
If you want to run x2go just on a single server, sqlite is sufficient, for |
99 |
|
|
running x2go on a multi server setup, postgresql is required. |
100 |
|
|
|
101 |
|
|
$ x2godbadmin --createdb |
102 |
|
|
|
103 |
|
|
|
104 |
|
|
DEFAULT: SQLite setup |
105 |
|
|
------------------------ |
106 |
|
|
|
107 |
|
|
This variant is the default X2go database setup. The X2go database keeps track |
108 |
|
|
of running/suspended/finished X2go sessions, mounted devices, etc. If you use |
109 |
|
|
SQLite as DB backend, X2go will run on one single server. |
110 |
|
|
|
111 |
|
|
For multi-X2goServer support use the PostgreSQL setup variant of X2go server. |
112 |
|
|
All files should be present for this setup. If not, please report it as a bug. |
113 |
|
|
|
114 |
|
|
|
115 |
|
|
ALTERNATIVE: PostgreSQL setup |
116 |
|
|
-------------------------------- |
117 |
|
|
|
118 |
|
|
This variant is for a setup of x2goserver that uses a PostgreSQL database |
119 |
|
|
backend... |
120 |
|
|
|
121 |
|
|
The exact installation of x2goserver with PostgreSQL support is described |
122 |
dams |
552053 |
here: http://wiki.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsql |
123 |
obgr_seneca |
205910 |
|
124 |
|
|
LOCAL FOLDER SHARING |
125 |
|
|
----------------------- |
126 |
|
|
|
127 |
|
|
Users that shall be able to use X2go's local folder sharing functionality |
128 |
|
|
(via sshfs) have to be members of your server system's ,,fuse'' group |
129 |
|
|
|
130 |
|
|
$ usermod -a -G fuse <username> |
131 |
|
|
|
132 |
|
|
|
133 |
|
|
PRINTING |
134 |
|
|
----------- |
135 |
|
|
|
136 |
|
|
Also users that shall be able to send print jobs to client-side printers have |
137 |
|
|
to be members of the server-side ,,fuse'' group (see above). |
138 |
|
|
|
139 |
|
|
As X2go printing setups can be rather versatile, details on X2go printing are |
140 |
|
|
explained in the project wiki: |
141 |
dams |
552053 |
http://wiki.x2go.org/doku.php/doc:installation:printing |
142 |
obgr_seneca |
205910 |
|
143 |
|
|
|
144 |
|
|
INITSCRIPT |
145 |
|
|
------------ |
146 |
|
|
|
147 |
|
|
Until now, there is none, has to be written from scratch and will follow soonest. |
148 |
|
|
The server can be started by the command x2gocleansessions& as root in the meanwhile. |
149 |
|
|
EOF |
150 |
|
|
|
151 |
|
|
find %{buildroot} -name .placeholder -delete |
152 |
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/x2go |
153 |
|
|
mkdir -p %{buildroot}%{_localstatedir}/spool/x2goprint |
154 |
|
|
|
155 |
|
|
%pre |
156 |
|
|
%_pre_useradd x2gouser %{_localstatedir}/lib/x2go /bin/false |
157 |
|
|
%_pre_useradd x2goprint %{_localstatedir}/spool/x2goprint /bin/false |
158 |
|
|
|
159 |
|
|
%post |
160 |
|
|
chown x2gouser:x2gouser %{_localstatedir}/lib/x2go |
161 |
|
|
chown x2goprint:x2goprint %{_localstatedir}/spool/x2goprint |
162 |
dams |
552061 |
# Initialize the session database |
163 |
|
|
[ ! -f %{_localstatedir}/lib/x2go/x2go_sessions ] && %{_sbindir}/x2godbadmin --createdb || : |
164 |
obgr_seneca |
205910 |
|
165 |
|
|
%postun |
166 |
|
|
%_postun_userdel x2gouser |
167 |
|
|
%_postun_userdel x2goprint |
168 |
|
|
|
169 |
|
|
%files sqlite |
170 |
|
|
|
171 |
|
|
%files postgresql |
172 |
|
|
|
173 |
|
|
%files |
174 |
|
|
%doc README.install.urpmi |
175 |
|
|
%doc %{_mandir}/man*/x2go* |
176 |
|
|
%dir %{_localstatedir}/lib/x2go |
177 |
|
|
%dir %{_localstatedir}/spool/x2goprint |
178 |
|
|
%{_datadir}/x2go |
179 |
obgr_seneca |
216576 |
%{_bindir}/x2gobasepath |
180 |
|
|
%{_bindir}/x2gocmdexitmessage |
181 |
|
|
%{_bindir}/x2gofeature |
182 |
obgr_seneca |
247919 |
%{_bindir}/x2gofeaturelist |
183 |
colin |
568256 |
%{_bindir}/x2gofm |
184 |
obgr_seneca |
247919 |
%{_bindir}/x2gogetapps |
185 |
obgr_seneca |
216576 |
%{_bindir}/x2gogetservers |
186 |
|
|
%{_bindir}/x2golistdesktops |
187 |
|
|
%{_bindir}/x2golistmounts |
188 |
|
|
%{_bindir}/x2golistsessions |
189 |
|
|
%{_bindir}/x2gomountdirs |
190 |
|
|
%attr(2755,root,x2goprint) %{_bindir}/x2goprint |
191 |
|
|
%{_bindir}/x2goresume-session |
192 |
|
|
%{_bindir}/x2goruncommand |
193 |
|
|
%{_bindir}/x2goserver-run-extensions |
194 |
|
|
%{_bindir}/x2gosessionlimit |
195 |
|
|
%{_bindir}/x2gosetkeyboard |
196 |
|
|
%{_bindir}/x2gostartagent |
197 |
|
|
%{_bindir}/x2gosuspend |
198 |
|
|
%{_bindir}/x2gosuspend-agent |
199 |
|
|
%{_bindir}/x2gosuspend-session |
200 |
|
|
%{_bindir}/x2goterminate |
201 |
|
|
%{_bindir}/x2goterminate-session |
202 |
|
|
%{_bindir}/x2goumount-session |
203 |
|
|
%{_bindir}/x2goversion |
204 |
obgr_seneca |
344109 |
%{_bindir}/x2gopath |
205 |
obgr_seneca |
205910 |
%{_sbindir}/x2go* |
206 |
colin |
568256 |
%{_sysconfdir}/sudoers.d/x2goserver |
207 |
obgr_seneca |
222049 |
%dir %{_sysconfdir}/x2go |
208 |
|
|
%{_sysconfdir}/x2go/Xresources |
209 |
|
|
%{_sysconfdir}/x2go/Xsession |
210 |
daviddavid |
894107 |
%{_sysconfdir}/x2go/xinitrc.d |
211 |
ghibo |
1082142 |
%config(noreplace) %{_sysconfdir}/logcheck |
212 |
obgr_seneca |
222049 |
%config(noreplace) %{_sysconfdir}/x2go/x2goserver.conf |
213 |
|
|
%{_sysconfdir}/x2go/x2gosql/sql |
214 |
obgr_seneca |
344109 |
%{_sysconfdir}/x2go/x2go_logout |
215 |
|
|
%{_sysconfdir}/x2go/x2go_logout.d/010_userscripts.sh |
216 |
|
|
%{_sysconfdir}/x2go/x2goagent.options |
217 |
colin |
568256 |
%{_datadir}/applications/x2gofm.desktop |
218 |
|
|
%{_datadir}/mime/packages/sshfs-x2go.xml |
219 |
obgr_seneca |
216576 |
%{_unitdir}/%{name}.service |
220 |
|
|
%dir %{x2golibdir} |
221 |
|
|
%{x2golibdir}/x2gochangestatus |
222 |
|
|
%{x2golibdir}/x2gocreatesession |
223 |
|
|
%{x2golibdir}/x2godbwrapper.pm |
224 |
|
|
%{x2golibdir}/x2gogetagent |
225 |
ghibo |
1082142 |
%{x2golibdir}/x2gogetagentstate |
226 |
obgr_seneca |
216576 |
%{x2golibdir}/x2gogetdisplays |
227 |
|
|
%{x2golibdir}/x2gogetports |
228 |
obgr_seneca |
247919 |
%{x2golibdir}/x2gogetstatus |
229 |
obgr_seneca |
216576 |
%{x2golibdir}/x2goinsertport |
230 |
|
|
%{x2golibdir}/x2goinsertsession |
231 |
|
|
%{x2golibdir}/x2golistsessions_sql |
232 |
|
|
%{x2golibdir}/x2gologlevel |
233 |
|
|
%{x2golibdir}/x2gologlevel.pm |
234 |
ghibo |
1082142 |
%{x2golibdir}/x2gormforward |
235 |
obgr_seneca |
216576 |
%{x2golibdir}/x2gormport |
236 |
|
|
%{x2golibdir}/x2goresume |
237 |
colin |
568256 |
%{x2golibdir}/x2goutils.pm |
238 |
dams |
552053 |
%{x2golibdir}/extensions |
239 |
obgr_seneca |
216576 |
%attr(2755,root,x2gouser) %{x2golibdir}/x2gosqlitewrapper |
240 |
|
|
%{x2golibdir}/x2gosqlitewrapper.pl |
241 |
|
|
%{x2golibdir}/x2gosuspend-agent |
242 |
|
|
%{x2golibdir}/x2gosyslog |