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