]>
Commit | Line | Data |
---|---|---|
21baaa38 MM |
1 | # |
2 | # This doesn't work at all yet. I don't know if the management interface is needed | |
3 | # (bundling apache seems like a sooooooooo great idea). Maybe it is possible to | |
4 | # setup the server part by hand. The perl module in perl/control.tar needs to | |
ad4726ec | 5 | # be packaged (vmware-cmd requires that). Something needs to be done with |
21baaa38 | 6 | # the authd (inetd integration is needed I guess). |
ad4726ec | 7 | # |
21baaa38 MM |
8 | # The modules from any-any upgrade are too old (I used the ones comming with VMw-S). |
9 | # | |
10 | # It builds on amd64, I have changed the networking package not to require the main package | |
ad4726ec | 11 | # so it can be installed outside 32bit chroot. |
21baaa38 MM |
12 | # |
13 | # But hey, it's at least free ;-) | |
14 | # | |
15 | # I probably won't have time to work on this, switching to vmware-player. | |
16 | # | |
17 | # | |
18 | # Conditional build: | |
19 | %bcond_without dist_kernel # without distribution kernel | |
20 | %bcond_without kernel # don't build kernel modules | |
21baaa38 | 21 | %bcond_without userspace # don't build userspace utilities |
21baaa38 MM |
22 | %bcond_with internal_libs # internal libs stuff |
23 | %bcond_with verbose # verbose build (V=1) | |
24 | # | |
25 | %include /usr/lib/rpm/macros.perl | |
21baaa38 | 26 | # |
1f16a67d MWP |
27 | %define _ver 1.0.4 |
28 | %define _build 56528 | |
8061af32 | 29 | %define _rel 0.1 |
1f16a67d | 30 | %define _urel 115 |
4be390e9 | 31 | %define _ccver %(rpm -q --qf "%{VERSION}" gcc) |
21baaa38 MM |
32 | # |
33 | Summary: VMware Server | |
0491bf08 | 34 | Summary(pl.UTF-8): VMware Server - wirtualna platforma dla stacji roboczej |
21baaa38 | 35 | Name: VMware-server |
b98bf282 | 36 | Version: %{_ver}.%{_build} |
21baaa38 MM |
37 | Release: %{_rel} |
38 | License: custom, non-distributable | |
39 | Group: Applications/Emulators | |
40 | Source0: http://download3.vmware.com/software/vmserver/%{name}-%{_ver}-%{_build}.tar.gz | |
1f16a67d | 41 | # NoSource0-md5: 60ec55cd66b77fb202d88bee79baebdf |
21baaa38 | 42 | Source1: http://download3.vmware.com/software/vmserver/VMware-mui-%{_ver}-%{_build}.tar.gz |
1f16a67d | 43 | # NoSource1-md5: 6b13063d8ea83c2280549d33da92c476 |
21baaa38 | 44 | Source2: http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update%{_urel}.tar.gz |
1f16a67d | 45 | # NoSource2-md5: ab33ff7a799fee77f0f4ba5667cd4b9a |
21baaa38 MM |
46 | Source3: %{name}.init |
47 | Source4: %{name}-vmnet.conf | |
48 | Source5: %{name}.png | |
49 | Source6: %{name}.desktop | |
50 | Source7: %{name}-nat.conf | |
51 | Source8: %{name}-dhcpd.conf | |
52 | Patch0: %{name}-Makefile.patch | |
53 | Patch1: %{name}-run_script.patch | |
73b8f8bc | 54 | Patch2: %{name}-init_pl.patch |
21baaa38 | 55 | NoSource: 0 |
2f4f313a JB |
56 | NoSource: 1 |
57 | NoSource: 2 | |
21baaa38 MM |
58 | URL: http://www.vmware.com/ |
59 | BuildRequires: gcc-c++ | |
7b803579 | 60 | %{?with_dist_kernel:BuildRequires: kernel-module-build >= 3:2.6.20.2} |
21baaa38 | 61 | BuildRequires: rpm-perlprov |
7b803579 | 62 | BuildRequires: rpmbuild(macros) >= 1.379 |
21baaa38 | 63 | BuildRequires: sed >= 4.0 |
21baaa38 MM |
64 | Requires: libgnomecanvasmm |
65 | ExclusiveArch: %{ix86} | |
66 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
67 | ||
68 | %define _noautoprovfiles %{_libdir}/vmware*/lib/.*\.so.* | |
69 | ||
70 | %description | |
ad4726ec ER |
71 | VMware Server Virtual Platform is a thin software layer that allows |
72 | multiple guest operating systems to run concurrently on a single | |
73 | standard PC, without repartitioning or rebooting, and without | |
21baaa38 MM |
74 | significant loss of performance. |
75 | ||
73ea1463 | 76 | %description -l pl.UTF-8 |
21baaa38 | 77 | VMware Server Virtual Platform to cienka warstwa oprogramowania |
73ea1463 JR |
78 | pozwalająca na jednoczesne działanie wielu gościnnych systemów |
79 | operacyjnych na jednym zwykłym PC, bez repartycjonowania ani | |
80 | rebootowania, bez znacznej utraty wydajności. | |
21baaa38 MM |
81 | |
82 | %package debug | |
83 | Summary: VMware debug utility | |
0491bf08 | 84 | Summary(pl.UTF-8): Narzędzie VMware do odpluskwiania |
21baaa38 MM |
85 | Group: Applications/Emulators |
86 | Requires: %{name} = %{version}-%{release} | |
87 | ||
88 | %description debug | |
89 | VMware debug utility. | |
90 | ||
73ea1463 JR |
91 | %description debug -l pl.UTF-8 |
92 | Narzędzie VMware do odpluskwiania. | |
21baaa38 MM |
93 | |
94 | %package console | |
95 | Summary: VMware console utility | |
0491bf08 | 96 | Summary(pl.UTF-8): Konsola VMware |
21baaa38 MM |
97 | Group: Applications/Emulators |
98 | Requires: %{name} = %{version}-%{release} | |
99 | ||
100 | %description console | |
101 | A tool for controlling VM. | |
102 | ||
73ea1463 JR |
103 | %description console -l pl.UTF-8 |
104 | Narzędzie VMware do kontroli VM. | |
21baaa38 MM |
105 | |
106 | %package help | |
107 | Summary: VMware Server help files | |
0491bf08 | 108 | Summary(pl.UTF-8): Pliki pomocy dla VMware Server |
21baaa38 MM |
109 | Group: Applications/Emulators |
110 | Requires: %{name} = %{version}-%{release} | |
111 | Requires: mozilla | |
112 | ||
113 | %description help | |
114 | VMware Server help files. | |
115 | ||
73ea1463 | 116 | %description help -l pl.UTF-8 |
21baaa38 MM |
117 | Pliki pomocy dla VMware Server. |
118 | ||
119 | %package console-help | |
120 | Summary: VMware Server console help files | |
0491bf08 | 121 | Summary(pl.UTF-8): Pliki pomocy dla konsoli VMware Server |
21baaa38 MM |
122 | Group: Applications/Emulators |
123 | Requires: %{name} = %{version}-%{release} | |
124 | Requires: mozilla | |
125 | ||
126 | %description console-help | |
127 | VMware Server console help files. | |
128 | ||
73ea1463 | 129 | %description console-help -l pl.UTF-8 |
21baaa38 MM |
130 | Pliki pomocy dla konsoli VMware Server. |
131 | ||
132 | %package networking | |
133 | Summary: VMware networking utilities | |
0491bf08 | 134 | Summary(pl.UTF-8): Narzędzia VMware do obsługi sieci |
21baaa38 | 135 | Group: Applications/Emulators |
d3a099f0 | 136 | Requires(post,preun): /sbin/chkconfig |
21baaa38 | 137 | #Requires: %{name} = %{version}-%{release} |
d3a099f0 | 138 | Requires: rc-scripts |
21baaa38 MM |
139 | |
140 | %description networking | |
141 | VMware networking utilities. | |
142 | ||
73ea1463 JR |
143 | %description networking -l pl.UTF-8 |
144 | Narzędzia VMware do obsługi sieci. | |
21baaa38 MM |
145 | |
146 | %package samba | |
147 | Summary: VMware SMB utilities | |
0491bf08 | 148 | Summary(pl.UTF-8): Narzędzia VMware do SMB |
21baaa38 MM |
149 | Group: Applications/Emulators |
150 | Requires: %{name} = %{version}-%{release} | |
151 | ||
152 | %description samba | |
153 | VMware SMB utilities. | |
154 | ||
73ea1463 JR |
155 | %description samba -l pl.UTF-8 |
156 | Narzędzia VMware do SMB. | |
21baaa38 MM |
157 | |
158 | %package -n kernel-misc-vmmon | |
159 | Summary: Kernel module for VMware Server | |
0491bf08 | 160 | Summary(pl.UTF-8): Moduł jądra dla VMware Server |
21baaa38 MM |
161 | Release: %{_rel}@%{_kernel_ver_str} |
162 | Group: Base/Kernel | |
163 | Requires(post,postun): /sbin/depmod | |
164 | Requires: dev >= 2.9.0-7 | |
165 | %if %{with dist_kernel} | |
7b803579 | 166 | %requires_releq_kernel |
167 | Requires(postun): %releq_kernel | |
21baaa38 MM |
168 | %endif |
169 | Provides: kernel(vmmon) = %{version}-%{_rel} | |
170 | ||
171 | %description -n kernel-misc-vmmon | |
172 | Kernel modules for VMware Server - vmmon. | |
173 | ||
73ea1463 JR |
174 | %description -n kernel-misc-vmmon -l pl.UTF-8 |
175 | Moduły jądra dla VMware Server - vmmon. | |
21baaa38 MM |
176 | |
177 | %package -n kernel-misc-vmnet | |
178 | Summary: Kernel module for VMware Server | |
0491bf08 | 179 | Summary(pl.UTF-8): Moduł jądra dla VMware Server |
21baaa38 MM |
180 | Release: %{_rel}@%{_kernel_ver_str} |
181 | Group: Base/Kernel | |
182 | Requires(post,postun): /sbin/depmod | |
183 | Requires: dev >= 2.9.0-7 | |
184 | %if %{with dist_kernel} | |
7b803579 | 185 | %requires_releq_kernel |
186 | Requires(postun): %releq_kernel | |
21baaa38 MM |
187 | %endif |
188 | Provides: kernel(vmnet) = %{version}-%{_rel} | |
189 | ||
190 | %description -n kernel-misc-vmnet | |
191 | Kernel modules for VMware Server - vmnet. | |
192 | ||
73ea1463 JR |
193 | %description -n kernel-misc-vmnet -l pl.UTF-8 |
194 | Moduły jądra dla VMware Server - vmnet. | |
21baaa38 | 195 | |
21baaa38 MM |
196 | %prep |
197 | %setup -q -n vmware-server-distrib -a1 -a2 | |
a91c119e | 198 | tar zxf vmware-mui-distrib/console-distrib/%{name}-console-%{_ver}-%{_build}.tar.gz |
6240d6b6 | 199 | cp vmware-any-any-update%{_urel}/{vmmon,vmnet}.tar lib/modules/source/ |
21baaa38 MM |
200 | cd lib/modules/source |
201 | tar xf vmmon.tar | |
202 | tar xf vmnet.tar | |
6240d6b6 | 203 | #%patch0 -p0 |
21baaa38 MM |
204 | cp -a vmmon-only{,.clean} |
205 | cp -a vmnet-only{,.clean} | |
206 | cd - | |
207 | %patch1 -p1 | |
73b8f8bc | 208 | %patch2 -p0 |
35bca45b | 209 | tar xf lib/perl/control.tar |
21baaa38 MM |
210 | |
211 | %build | |
212 | sed -i 's:vm_db_answer_LIBDIR:VM_LIBDIR:g;s:vm_db_answer_BINDIR:VM_BINDIR:g' bin/vmware | |
213 | ||
214 | cd vmware-any-any-update%{_urel} | |
215 | chmod u+w ../lib/bin/vmware-vmx ../lib/bin-debug/vmware-vmx ../bin/vmnet-bridge | |
216 | ||
217 | %if 0 | |
218 | rm -f update | |
219 | %{__cc} %{rpmldflags} %{rpmcflags} -o update update.c | |
220 | ./update vmx ../lib/bin/vmware-vmx | |
221 | ./update vmxdebug ../lib/bin-debug/vmware-vmx | |
222 | ./update bridge ../bin/vmnet-bridge | |
223 | %endif | |
224 | cd - | |
225 | ||
35bca45b | 226 | %if %{with userspace} |
227 | cd control-only | |
228 | perl Makefile.PL | |
229 | sed -i "s:^INSTALLSITEARCH.*$:INSTALLSITEARCH = %{perl_vendorarch}:" Makefile | |
230 | sed -i "s:^INSTALLSITELIB.*$:INSTALLSITELIB = %{perl_vendorlib}:" Makefile | |
231 | sed -i "s:^INSTALLSITEMAN1DIR.*$:INSTALLSITEMAN1DIR = %{_mandir}/man1:" Makefile | |
232 | sed -i "s:^INSTALLSITEMAN3DIR.*$:INSTALLSITEMAN3DIR = %{_mandir}/man3:" Makefile | |
233 | ||
234 | %{__make} | |
235 | cd .. | |
236 | %endif | |
237 | ||
21baaa38 MM |
238 | %if %{with kernel} |
239 | cd lib/modules/source | |
240 | rm -rf built | |
241 | mkdir built | |
242 | ||
21baaa38 | 243 | for mod in vmmon vmnet ; do |
7b803579 | 244 | for cfg in %{?with_dist_kernel:dist}%{!?with_dist_kernel:nondist}; do |
21baaa38 MM |
245 | if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then |
246 | exit 1 | |
247 | fi | |
248 | rm -rf $mod-only | |
249 | cp -a $mod-only.clean $mod-only | |
250 | cd $mod-only | |
4be390e9 | 251 | install -d o/include/linux |
252 | ln -sf %{_kernelsrcdir}/config-$cfg o/.config | |
253 | ln -sf %{_kernelsrcdir}/Module.symvers-$cfg o/Module.symvers | |
254 | ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h o/include/linux/autoconf.h | |
255 | if grep -q "^CONFIG_PREEMPT_RT=y$" o/.config; then | |
256 | sed -e '/pollQueueLock/s/SPIN_LOCK_UNLOCKED/SPIN_LOCK_UNLOCKED(pollQueueLock)/' \ | |
257 | -e '/timerLock/s/SPIN_LOCK_UNLOCKED/SPIN_LOCK_UNLOCKED(timerLock)/' \ | |
258 | -i ../vmmon-only/linux/driver.c | |
259 | sed -e 's/SPIN_LOCK_UNLOCKED/SPIN_LOCK_UNLOCKED(vnetHubLock)/' \ | |
260 | -i ../vmnet-only/hub.c | |
261 | sed -e 's/RW_LOCK_UNLOCKED/RW_LOCK_UNLOCKED(vnetPeerLock)/' \ | |
262 | -i ../vmnet-only/driver.c | |
263 | fi | |
264 | %if %{with dist_kernel} | |
ee18948b | 265 | %{__make} -j1 -C %{_kernelsrcdir} O=$PWD/o prepare scripts |
4be390e9 | 266 | %else |
267 | install -d o/include/config | |
268 | touch o/include/config/MARKER | |
269 | ln -sf %{_kernelsrcdir}/scripts o/scripts | |
270 | %endif | |
21baaa38 MM |
271 | %{__make} -C %{_kernelsrcdir} modules \ |
272 | VMWARE_VER=VME_V5 \ | |
4be390e9 | 273 | SRCROOT=$PWD \ |
274 | M=$PWD O=$PWD/o \ | |
21baaa38 | 275 | VM_KBUILD=26 \ |
4be390e9 | 276 | %{?with_verbose:V=1} \ |
277 | VM_CCVER=%{_ccver} | |
21baaa38 MM |
278 | mv -f $mod.ko ../built/$mod-$cfg.ko |
279 | cd - | |
280 | done | |
281 | done | |
21baaa38 MM |
282 | %endif |
283 | ||
284 | %install | |
285 | rm -rf $RPM_BUILD_ROOT | |
286 | ||
287 | %if %{with userspace} | |
288 | install -d \ | |
5cc7759b | 289 | $RPM_BUILD_ROOT%{_sysconfdir}/vmware{,-server-console} \ |
21baaa38 MM |
290 | $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/{nat,dhcpd} \ |
291 | $RPM_BUILD_ROOT%{_bindir} \ | |
292 | $RPM_BUILD_ROOT%{_sbindir} \ | |
a4a79c8a | 293 | $RPM_BUILD_ROOT%{_libdir}/vmware{,-server-console}/bin \ |
73b8f8bc | 294 | $RPM_BUILD_ROOT%{_libdir}/vmware/serverd \ |
21baaa38 MM |
295 | $RPM_BUILD_ROOT%{_mandir} \ |
296 | $RPM_BUILD_ROOT%{_pixmapsdir} \ | |
297 | $RPM_BUILD_ROOT%{_desktopdir} \ | |
298 | $RPM_BUILD_ROOT/etc/rc.d/init.d \ | |
a4a79c8a | 299 | $RPM_BUILD_ROOT/var/{log,run}/vmware |
35bca45b | 300 | |
301 | cd control-only | |
302 | %{__make} install \ | |
303 | DESTDIR=$RPM_BUILD_ROOT | |
304 | cd .. | |
73b8f8bc | 305 | |
306 | # copy other required perl modules | |
307 | cp -r lib/perl5/site_perl/5.005/VMware $RPM_BUILD_ROOT%{perl_vendorarch} | |
308 | cp -r lib/perl5/site_perl/5.005/i386-linux/VMware/VmdbPerl $RPM_BUILD_ROOT%{perl_vendorarch}/VMware | |
309 | cp -r lib/perl5/site_perl/5.005/i386-linux/VMware/{HConfig,VmdbPerl}.pm $RPM_BUILD_ROOT%{perl_vendorarch}/VMware | |
310 | cp -r lib/perl5/site_perl/5.005/i386-linux/auto/VMware/{HConfig,VmdbPerl} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/VMware | |
311 | ||
312 | # remove unecessary files | |
313 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/VMware/{HConfig,VmdbPerl,VmPerl}/.{exists,packlist} | |
21baaa38 MM |
314 | %endif |
315 | ||
316 | %if %{with kernel} | |
317 | install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc | |
318 | ||
319 | #cd vmware-any-any-update%{_urel} | |
320 | cd lib/modules/source | |
321 | ||
7b803579 | 322 | install built/vmmon-%{?with_dist_kernel:dist}%{!?with_dist_kernel:nondist}.ko \ |
21baaa38 | 323 | $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/vmmon.ko |
7b803579 | 324 | install built/vmnet-%{?with_dist_kernel:dist}%{!?with_dist_kernel:nondist}.ko \ |
21baaa38 | 325 | $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/vmnet.ko |
21baaa38 MM |
326 | |
327 | cd - | |
328 | %endif | |
329 | ||
330 | %if %{with userspace} | |
331 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vmnet | |
332 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet.conf | |
333 | install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir} | |
334 | install %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir} | |
335 | install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/nat/nat.conf | |
336 | install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.conf | |
337 | ||
338 | touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases | |
339 | touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases~ | |
340 | ||
341 | install bin/*-* $RPM_BUILD_ROOT%{_bindir} | |
342 | install sbin/*-* $RPM_BUILD_ROOT%{_sbindir} | |
a4a79c8a | 343 | install lib/bin/vmware-vmx $RPM_BUILD_ROOT%{_libdir}/vmware/bin |
21baaa38 | 344 | |
73b8f8bc | 345 | sed -e ' s@%sitearch%@%{perl_sitearch}@g; s@%sitelib%@%{perl_sitelib}@g; s@%vendorarch%@%{perl_vendorarch}@g; s@%vendorlib%@%{perl_vendorlib}@g; s@%archlib%@%{perl_archlib}@g; s@%privlib%@%{perl_privlib}@g;' < lib/serverd/init.pl.default > $RPM_BUILD_ROOT%{_libdir}/vmware/serverd/init.pl |
346 | ||
21baaa38 | 347 | #cp -r lib/{bin-debug,config,help*,isoimages,licenses,messages,smb,xkeymap} \ |
a4a79c8a | 348 | cp -r lib/{bin-debug,config,help*,isoimages,licenses,messages,share,xkeymap} \ |
349 | $RPM_BUILD_ROOT%{_libdir}/vmware | |
21baaa38 | 350 | |
a4a79c8a | 351 | cp -r vmware-server-console-distrib/lib/{bin-debug,config,help*,messages,share,xkeymap} \ |
5cc7759b | 352 | $RPM_BUILD_ROOT%{_libdir}/vmware-server-console |
21baaa38 | 353 | |
5cc7759b | 354 | install vmware-server-console-distrib/lib/bin/vmware-remotemks $RPM_BUILD_ROOT%{_libdir}/vmware-server-console/bin |
21baaa38 | 355 | |
5cc7759b | 356 | cp -r vmware-server-console-distrib/man/* man/* $RPM_BUILD_ROOT%{_mandir} |
21baaa38 MM |
357 | gunzip $RPM_BUILD_ROOT%{_mandir}/man?/*.gz |
358 | ||
5cc7759b | 359 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/vmware-server-console/locations <<EOF |
21baaa38 | 360 | VM_BINDIR=%{_bindir} |
5cc7759b | 361 | VM_LIBDIR=%{_libdir}/vmware-server-console |
21baaa38 MM |
362 | EOF |
363 | ||
364 | %if %{with internal_libs} | |
365 | install bin/vmware $RPM_BUILD_ROOT%{_bindir} | |
a4a79c8a | 366 | install lib/bin/vmware $RPM_BUILD_ROOT%{_libdir}/vmware/bin |
367 | cp -r lib/lib $RPM_BUILD_ROOT%{_libdir}/vmware | |
21baaa38 | 368 | |
5cc7759b | 369 | install vmware-server-console-distrib/bin/vmware-server-console $RPM_BUILD_ROOT%{_bindir} |
370 | install vmware-server-console-distrib/lib/bin/vmware $RPM_BUILD_ROOT%{_libdir}/vmware-server-console/bin | |
371 | cp -r vmware-server-console-distrib/lib/lib $RPM_BUILD_ROOT%{_libdir}/vmware-server-console | |
21baaa38 MM |
372 | %else |
373 | install lib/bin/vmware $RPM_BUILD_ROOT%{_bindir} | |
5cc7759b | 374 | install vmware-server-console-distrib/lib/bin/vmware-server-console $RPM_BUILD_ROOT%{_bindir} |
21baaa38 MM |
375 | %endif |
376 | %endif | |
377 | ||
21baaa38 MM |
378 | %clean |
379 | rm -rf $RPM_BUILD_ROOT | |
380 | ||
381 | %post networking | |
382 | /sbin/chkconfig --add vmnet | |
ad4726ec | 383 | %service vmnet restart "VMware networking service" |
21baaa38 MM |
384 | |
385 | %preun networking | |
386 | if [ "$1" = "0" ]; then | |
ad4726ec | 387 | %service vmnet stop |
21baaa38 MM |
388 | /sbin/chkconfig --del vmnet |
389 | fi | |
390 | ||
391 | %post -n kernel-misc-vmmon | |
392 | %depmod %{_kernel_ver} | |
393 | ||
394 | %postun -n kernel-misc-vmmon | |
395 | %depmod %{_kernel_ver} | |
396 | ||
397 | %post -n kernel-misc-vmnet | |
398 | %depmod %{_kernel_ver} | |
399 | ||
400 | %postun -n kernel-misc-vmnet | |
401 | %depmod %{_kernel_ver} | |
402 | ||
21baaa38 MM |
403 | %if %{with userspace} |
404 | %files | |
405 | %defattr(644,root,root,755) | |
406 | %doc doc/* lib/configurator/vmnet-{dhcpd,nat}.conf | |
407 | %dir %{_sysconfdir}/vmware | |
21baaa38 MM |
408 | %attr(755,root,root) %{_bindir}/vm-support |
409 | %attr(755,root,root) %{_bindir}/vmware-authtrusted | |
410 | %attr(755,root,root) %{_bindir}/vmware-cmd | |
411 | %attr(755,root,root) %{_bindir}/vmware | |
412 | %attr(755,root,root) %{_bindir}/vmware-loop | |
413 | %attr(755,root,root) %{_bindir}/vmware-mount.pl | |
414 | %attr(755,root,root) %{_bindir}/vmware-vdiskmanager | |
415 | %attr(755,root,root) %{_sbindir}/* | |
a4a79c8a | 416 | %dir %{_libdir}/vmware |
417 | %dir %{_libdir}/vmware/bin | |
21baaa38 | 418 | # warning: SUID !!! |
a4a79c8a | 419 | %attr(4755,root,root) %{_libdir}/vmware/bin/vmware-vmx |
420 | %{_libdir}/vmware/config | |
421 | %{_libdir}/vmware/isoimages | |
21baaa38 | 422 | %if %{with internal_libs} |
a4a79c8a | 423 | %attr(755,root,root) %{_libdir}/vmware/bin/vmware |
424 | %{_libdir}/vmware/lib | |
425 | %attr(755,root,root) %{_libdir}/vmware/lib/wrapper-gtk24.sh | |
21baaa38 | 426 | %endif |
73b8f8bc | 427 | %dir %{_libdir}/vmware/serverd |
428 | %attr(750,root,root) %{_libdir}/vmware/serverd/init.pl | |
a4a79c8a | 429 | %{_libdir}/vmware/licenses |
430 | %dir %{_libdir}/vmware/messages | |
431 | %{_libdir}/vmware/messages/en | |
432 | %lang(ja) %{_libdir}/vmware/messages/ja | |
433 | %{_libdir}/vmware/share | |
434 | %{_libdir}/vmware/xkeymap | |
21baaa38 | 435 | %{_mandir}/man1/vmware.1* |
35bca45b | 436 | %{_mandir}/man3/* |
437 | %{perl_vendorarch}/VMware | |
438 | %{perl_vendorarch}/auto/VMware | |
21baaa38 | 439 | %attr(1777,root,root) %dir /var/run/vmware |
a4a79c8a | 440 | %attr(751,root,root) %dir /var/log/vmware |
21baaa38 MM |
441 | %{_pixmapsdir}/*.png |
442 | %{_desktopdir}/%{name}.desktop | |
443 | ||
444 | %files console | |
3c34bc99 | 445 | %defattr(644,root,root,755) |
5cc7759b | 446 | %dir %{_sysconfdir}/vmware-server-console |
447 | %{_sysconfdir}/vmware-server-console/locations | |
448 | %attr(755,root,root) %{_bindir}/vmware-server-console | |
449 | %dir %{_libdir}/vmware-server-console | |
450 | %dir %{_libdir}/vmware-server-console/bin | |
451 | %attr(755,root,root) %{_libdir}/vmware-server-console/bin/vmware-remotemks | |
452 | %{_libdir}/vmware-server-console/config | |
21baaa38 | 453 | %if %{with internal_libs} |
5cc7759b | 454 | %attr(755,root,root) %{_libdir}/vmware-server-console/bin/vmware |
455 | %{_libdir}/vmware-server-console/lib | |
456 | %attr(755,root,root) %{_libdir}/vmware-server-console/lib/wrapper-gtk24.sh | |
21baaa38 | 457 | %endif |
5cc7759b | 458 | %dir %{_libdir}/vmware-server-console/messages |
459 | #%{_libdir}/vmware-server-console/messages/en | |
460 | %lang(ja) %{_libdir}/vmware-server-console/messages/ja | |
461 | %{_libdir}/vmware-server-console/share | |
462 | %{_libdir}/vmware-server-console/xkeymap | |
463 | %{_mandir}/man1/vmware-server-console.1* | |
21baaa38 MM |
464 | |
465 | %files console-help | |
466 | %defattr(644,root,root,755) | |
5cc7759b | 467 | %{_libdir}/vmware-server-console/help* |
21baaa38 MM |
468 | |
469 | %files debug | |
470 | %defattr(644,root,root,755) | |
a4a79c8a | 471 | %dir %{_libdir}/vmware/bin-debug |
21baaa38 | 472 | # warning: SUID !!! |
a4a79c8a | 473 | %attr(4755,root,root) %{_libdir}/vmware/bin-debug/vmware-vmx |
5cc7759b | 474 | %dir %{_libdir}/vmware-server-console/bin-debug |
a4a79c8a | 475 | %attr(755,root,root) %{_libdir}/vmware/bin-debug/vmware-remotemks |
5cc7759b | 476 | %attr(755,root,root) %{_libdir}/vmware-server-console/bin-debug/vmware-remotemks |
21baaa38 MM |
477 | |
478 | %files help | |
479 | %defattr(644,root,root,755) | |
a4a79c8a | 480 | %{_libdir}/vmware/help* |
21baaa38 MM |
481 | |
482 | %files networking | |
483 | %defattr(644,root,root,755) | |
484 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet.conf | |
485 | %attr(754,root,root) /etc/rc.d/init.d/vmnet | |
486 | %attr(755,root,root) %{_bindir}/vmnet-bridge | |
487 | %attr(755,root,root) %{_bindir}/vmnet-dhcpd | |
488 | %attr(755,root,root) %{_bindir}/vmnet-natd | |
489 | %attr(755,root,root) %{_bindir}/vmnet-netifup | |
490 | %attr(755,root,root) %{_bindir}/vmnet-sniffer | |
491 | %attr(755,root,root) %{_bindir}/vmware-ping | |
492 | %dir %{_sysconfdir}/vmware/vmnet8 | |
493 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.conf | |
494 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/nat/nat.conf | |
495 | %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases* | |
496 | ||
497 | %if 0 | |
498 | %files samba | |
499 | %defattr(644,root,root,755) | |
500 | %doc lib/configurator/vmnet-smb.conf | |
501 | %attr(755,root,root) %{_bindir}/vmware-nmbd | |
502 | %attr(755,root,root) %{_bindir}/vmware-smbd | |
503 | %attr(755,root,root) %{_bindir}/vmware-smbpasswd | |
504 | %attr(755,root,root) %{_bindir}/vmware-smbpasswd.bin | |
505 | %{_libdir}/vmware/smb | |
506 | %endif | |
507 | %endif | |
508 | ||
509 | %if %{with kernel} | |
21baaa38 MM |
510 | %files -n kernel-misc-vmmon |
511 | %defattr(644,root,root,755) | |
512 | /lib/modules/%{_kernel_ver}/misc/vmmon.ko* | |
513 | ||
514 | %files -n kernel-misc-vmnet | |
515 | %defattr(644,root,root,755) | |
516 | /lib/modules/%{_kernel_ver}/misc/vmnet.ko* | |
0108f1e9 | 517 | %endif |