/[packages]/updates/8/x2goserver/current/SPECS/x2goserver.spec
ViewVC logotype

Contents of /updates/8/x2goserver/current/SPECS/x2goserver.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30