/[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 963471 - (show annotations) (download)
Wed Feb 17 09:36:03 2016 UTC (8 years, 2 months ago) by umeabot
Original Path: cauldron/x2goserver/current/SPECS/x2goserver.spec
File size: 6928 byte(s)
Mageia 6 Mass Rebuild
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 6
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 BuildRequires: man2html
20 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 # x2go / nx dependencies
28 Requires: x2goagent
29 Requires: xcomp
30 Requires: xcompext
31 Requires: nxproxy
32 Requires: nxX11
33 Requires(post): rpm-helper >= 0.24.8-1
34 Requires(preun): rpm-helper >= 0.24.8-1
35 Recommends: %{name}-database
36
37 %description
38 x2go is a "server based computing environment" combining the advantages of
39 different existing solutions.
40 The x2goserver package provides the server-side core of X2go.
41
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 Provides: %{name}-database = %{version}-%{release}
48
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 Provides: %{name}-database = %{version}-%{release}
59
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 %setup -q
67
68 # 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 %build
77 export LC_ALL=C
78 %make PREFIX=%{_prefix}
79
80 %install
81 export LC_ALL=C
82 %make_install PREFIX=%{_prefix} \
83 INSTALL_DIR="install -d -m 755" \
84 INSTALL_FILE="install -m 644" \
85 INSTALL_PROGRAM="install -m 755"
86 rm -f %{buildroot}%{_sysconfdir}/x2go/Xsession.d
87
88 mkdir -p %{buildroot}%{_unitdir}
89 install -m0644 x2goserver.service %{buildroot}%{_unitdir}/%{name}.service
90
91 cat > README.install.urpmi << EOF
92
93 DATABASE SETUP
94 -----------------
95
96 You need either an sqlite or a postgresql database for running x2go.
97 If you want to run x2go just on a single server, sqlite is sufficient, for
98 running x2go on a multi server setup, postgresql is required.
99
100 $ x2godbadmin --createdb
101
102
103 DEFAULT: SQLite setup
104 ------------------------
105
106 This variant is the default X2go database setup. The X2go database keeps track
107 of running/suspended/finished X2go sessions, mounted devices, etc. If you use
108 SQLite as DB backend, X2go will run on one single server.
109
110 For multi-X2goServer support use the PostgreSQL setup variant of X2go server.
111 All files should be present for this setup. If not, please report it as a bug.
112
113
114 ALTERNATIVE: PostgreSQL setup
115 --------------------------------
116
117 This variant is for a setup of x2goserver that uses a PostgreSQL database
118 backend...
119
120 The exact installation of x2goserver with PostgreSQL support is described
121 here: http://wiki.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsql
122
123 LOCAL FOLDER SHARING
124 -----------------------
125
126 Users that shall be able to use X2go's local folder sharing functionality
127 (via sshfs) have to be members of your server system's ,,fuse'' group
128
129 $ usermod -a -G fuse <username>
130
131
132 PRINTING
133 -----------
134
135 Also users that shall be able to send print jobs to client-side printers have
136 to be members of the server-side ,,fuse'' group (see above).
137
138 As X2go printing setups can be rather versatile, details on X2go printing are
139 explained in the project wiki:
140 http://wiki.x2go.org/doku.php/doc:installation:printing
141
142
143 INITSCRIPT
144 ------------
145
146 Until now, there is none, has to be written from scratch and will follow soonest.
147 The server can be started by the command x2gocleansessions& as root in the meanwhile.
148 EOF
149
150 find %{buildroot} -name .placeholder -delete
151 mkdir -p %{buildroot}%{_localstatedir}/lib/x2go
152 mkdir -p %{buildroot}%{_localstatedir}/spool/x2goprint
153
154 %pre
155 %_pre_useradd x2gouser %{_localstatedir}/lib/x2go /bin/false
156 %_pre_useradd x2goprint %{_localstatedir}/spool/x2goprint /bin/false
157
158 %post
159 chown x2gouser:x2gouser %{_localstatedir}/lib/x2go
160 chown x2goprint:x2goprint %{_localstatedir}/spool/x2goprint
161 # Initialize the session database
162 [ ! -f %{_localstatedir}/lib/x2go/x2go_sessions ] && %{_sbindir}/x2godbadmin --createdb || :
163
164 %postun
165 %_postun_userdel x2gouser
166 %_postun_userdel x2goprint
167
168 %files sqlite
169
170 %files postgresql
171
172 %files
173 %doc README.install.urpmi
174 %doc %{_mandir}/man*/x2go*
175 %dir %{_localstatedir}/lib/x2go
176 %dir %{_localstatedir}/spool/x2goprint
177 %{_datadir}/x2go
178 %{_bindir}/x2gobasepath
179 %{_bindir}/x2gocmdexitmessage
180 %{_bindir}/x2gofeature
181 %{_bindir}/x2gofeaturelist
182 %{_bindir}/x2gofm
183 %{_bindir}/x2gogetapps
184 %{_bindir}/x2gogetservers
185 %{_bindir}/x2golistdesktops
186 %{_bindir}/x2golistmounts
187 %{_bindir}/x2golistsessions
188 %{_bindir}/x2gomountdirs
189 %attr(2755,root,x2goprint) %{_bindir}/x2goprint
190 %{_bindir}/x2goresume-session
191 %{_bindir}/x2goruncommand
192 %{_bindir}/x2goserver-run-extensions
193 %{_bindir}/x2gosessionlimit
194 %{_bindir}/x2gosetkeyboard
195 %{_bindir}/x2gostartagent
196 %{_bindir}/x2gosuspend
197 %{_bindir}/x2gosuspend-agent
198 %{_bindir}/x2gosuspend-session
199 %{_bindir}/x2goterminate
200 %{_bindir}/x2goterminate-session
201 %{_bindir}/x2goumount-session
202 %{_bindir}/x2goversion
203 %{_bindir}/x2gopath
204 %{_sbindir}/x2go*
205 %{_sysconfdir}/sudoers.d/x2goserver
206 %dir %{_sysconfdir}/x2go
207 %{_sysconfdir}/x2go/Xresources
208 %{_sysconfdir}/x2go/Xsession
209 %{_sysconfdir}/x2go/xinitrc.d
210 %config(noreplace) %{_sysconfdir}/x2go/x2goserver.conf
211 %{_sysconfdir}/x2go/x2gosql/sql
212 %{_sysconfdir}/x2go/x2go_logout
213 %{_sysconfdir}/x2go/x2go_logout.d/010_userscripts.sh
214 %{_sysconfdir}/x2go/x2goagent.options
215 %{_datadir}/applications/x2gofm.desktop
216 %{_datadir}/mime/packages/sshfs-x2go.xml
217 %{_unitdir}/%{name}.service
218 %dir %{x2golibdir}
219 %{x2golibdir}/x2gochangestatus
220 %{x2golibdir}/x2gocreatesession
221 %{x2golibdir}/x2godbwrapper.pm
222 %{x2golibdir}/x2gogetagent
223 %{x2golibdir}/x2gogetdisplays
224 %{x2golibdir}/x2gogetports
225 %{x2golibdir}/x2gogetstatus
226 %{x2golibdir}/x2goinsertport
227 %{x2golibdir}/x2goinsertsession
228 %{x2golibdir}/x2golistsessions_sql
229 %{x2golibdir}/x2gologlevel
230 %{x2golibdir}/x2gologlevel.pm
231 %{x2golibdir}/x2gormport
232 %{x2golibdir}/x2goresume
233 %{x2golibdir}/x2goutils.pm
234 %{x2golibdir}/extensions
235 %attr(2755,root,x2gouser) %{x2golibdir}/x2gosqlitewrapper
236 %{x2golibdir}/x2gosqlitewrapper.pl
237 %{x2golibdir}/x2gosuspend-agent
238 %{x2golibdir}/x2gosyslog

  ViewVC Help
Powered by ViewVC 1.1.30