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