]> git.pld-linux.org Git - packages/util-vserver.git/blob - util-vserver.spec
- BR: doxygen
[packages/util-vserver.git] / util-vserver.spec
1 #
2 # Conditional build:
3 %bcond_with     dietlibc        # use dietlibc instead of glibc
4 %bcond_with     xalan           # use the xalan xslt processor
5
6 Summary:        Linux virtual server utilities
7 Summary(pl):    Narzêdzia dla linuksowych serwerów wirtualnych
8 Name:           util-vserver
9 Version:        0.30.207
10 Release:        0.3
11 Epoch:          0
12 License:        GPL
13 Group:          Base
14 Source0:        http://www.13thfloor.at/~ensc/util-vserver/files/alpha/%{name}-%{version}.tar.bz2
15 # Source0-md5:  1c8457a687643ae8a7b1f1d34ebbdd68
16 Source1:        vprocunhide.init
17 Source2:        vservers-default.init
18 Source3:        vservers-legacy.init
19 Source4:        rebootmgr.init
20 Source5:        vservers-default.sysconfig
21 Source6:        vservers-legacy.sysconfig
22 Patch0:         %{name}-no-kernel-includes.patch
23 Patch1:         %{name}-vsysvwrapper.patch
24 URL:            http://savannah.nongnu.org/projects/util-vserver/
25 BuildRequires:  e2fsprogs-devel
26 BuildRequires:  libxslt-progs
27 BuildRequires:  vlan
28 BuildRequires:  doxygen
29 %{?with_dietlibc:BuildRequires: dietlibc >= 0:0.25}
30 %{?with_xalan:BuildRequires:    xalan-j}
31 PreReq:         rc-scripts
32 Requires(post,preun):   /sbin/chkconfig
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 This package provides the components and a framework to setup virtual
37 servers. A virtual server runs inside a Linux server. It is
38 nevertheless highly independent. As such, you can run various services
39 with normal configuration. The various vservers can't interact with
40 each other and can't interact with services in the main server.
41
42 This requires a special kernel supporting the new new_s_context and
43 set_ipv4root system call.
44
45 %description -l pl
46 Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
47 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
48 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
49 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
50 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
51
52 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
53 new_s_context i set_ipv4root.
54
55 %package devel
56 Summary:        Development files for Linux vserver libraries
57 Summary(pl):    Pliki programistyczne dla bibliotek linuksowego vserwera
58 Group:          Development/Libraries
59 Requires:       %{name} = %{version}-%{release}
60
61 %description devel
62 This package contains the development files necessary for developing
63 programs which use vserver library.
64
65 %description devel -l pl
66 Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
67 programów u¿ywaj±cych biblioteki vserver.
68
69 %package static
70 Summary:        Static vserver library
71 Summary(pl):    Biblioteka statyczna vservera
72 Group:          Development/Libraries
73 Requires:       %{name}-devel = %{version}-%{release}
74
75 %description static
76 This package contains the static version of vserver library.
77
78 %description static -l pl
79 Ten pakiet zawiera statyczn± wersjê biblioteki vservera.
80
81 %package lib
82 Summary:        Dynamic libraries for util-vserver
83 Summary(pl):    Biblioteki dynamiczne dla pakietu util-vserver
84 Group:          Libraries
85
86 %description lib
87 util-vserver provides the components and a framework to setup virtual
88 servers. A virtual server runs inside a linux server. It is
89 nevertheless highly independent. As such, you can run various services
90 with normal configuration. The various vservers can't interact with
91 each other and can't interact with services in the main server.
92
93 This package contains the shared libraries needed by all other
94 'util-vserver' subpackages.
95
96 %description lib -l pl
97 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
98 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
99 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
100 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
101 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
102
103 Ten pakiet zawiera biblioteki wspó³dzielone wymagane przez wszystkie
104 podpakiety util-vserver.
105
106 %package core
107 Summary:        The core-utilities for util-vserver
108 Summary(pl):    Podstawowe narzêdzia dla util-vserver
109 Group:          Applications/System
110 Requires:       util-linux
111
112 %description core
113 util-vserver provides the components and a framework to setup virtual
114 servers. A virtual server runs inside a linux server. It is
115 nevertheless highly independent. As such, you can run various services
116 with normal configuration. The various vservers can't interact with
117 each other and can't interact with services in the main server.
118
119 This package contains utilities which are required to communicate with
120 the Linux-Vserver enabled kernel.
121
122 %description core -l pl
123 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
124 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
125 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
126 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
127 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
128
129 Ten pakiet zawiera narzêdzia wymagane do komunikacji z j±drem z
130 w³±czonym mechanizmem Linux-Vserver.
131
132 %package build
133 Summary:        Tools which can be used to build vservers
134 Summary(pl):    Narzêdzia do budowania vserverów
135 Group:          Applications/System
136 Requires:       apt
137 Requires:       binutils
138 Requires:       e2fsprogs
139 Requires:       rpm
140 Requires:       tar
141 Requires:       wget
142 Requires:       %{name} = %{version}-%{release}
143
144 %description build
145 util-vserver provides the components and a framework to setup virtual
146 servers. A virtual server runs inside a linux server. It is
147 nevertheless highly independent. As such, you can run various services
148 with normal configuration. The various vservers can't interact with
149 each other and can't interact with services in the main server.
150
151 This package contains utilities which assist in building Vservers.
152
153 %description build -l pl
154 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
155 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
156 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
157 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
158 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
159
160 Ten pakiet zawiera narzêdzia pomagaj±ce przy budowaniu Vserwerów.
161
162 %package init
163 Summary:        initscripts for vserver
164 Summary(pl):    Skrypty inicjalizuj±ce dla vserwera
165 Group:          Base
166 Requires(post,preun):   /sbin/chkconfig
167 Requires:       %{name} = %{version}-%{release}
168 Requires:       %{name}-core = %{version}-%{release}
169 Requires:       diffutils
170 Requires:       make
171 Requires:       rc-scripts
172
173 %description init
174 util-vserver provides the components and a framework to setup virtual
175 servers. A virtual server runs inside a linux server. It is
176 nevertheless highly independent. As such, you can run various services
177 with normal configuration. The various vservers can't interact with
178 each other and can't interact with services in the main server.
179
180 This package contains the SysV initscripts which start and stop
181 Vservers and related tools.
182
183 %description init -l pl
184 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
185 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
186 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
187 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
188 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
189
190 Ten pakiet zawiera skrypty inicjalizuj±ce SysV uruchamiaj±ce i
191 zatrzymuj±ce Vserwery oraz powi±zane narzêdzia.
192
193 %package legacy
194 Summary:        Legacy utilities for util-vserver
195 Summary(pl):    Stare narzêdzia dla util-vserver
196 Group:          Applications/System
197 Requires(post,preun):   /sbin/chkconfig
198 Requires:       %{name} = %{version}-%{release}
199 Requires:       %{name}-core = %{version}-%{release}
200 Requires:       rc-scripts
201
202 %description legacy
203 util-vserver provides the components and a framework to setup virtual
204 servers. A virtual server runs inside a linux server. It is
205 nevertheless highly independent. As such, you can run various services
206 with normal configuration. The various vservers can't interact with
207 each other and can't interact with services in the main server.
208
209 This package contains the tools which are needed to work with Vservers
210 having an old-style configuration.
211
212 %description legacy -l pl
213 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
214 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
215 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
216 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
217 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
218
219 Ten pakiet zawiera narzêdzia potrzebne do pracy z Vserwerami maj±cymi
220 konfiguracjê w starym stylu.
221
222 %prep
223 %setup -q
224 %patch0 -p1
225 %patch1 -p1
226
227 %build
228 %configure \
229         --with-initrddir=/etc/rc.d/init.d \
230         --enable-release \
231         %{?with_dietlibc:--enable-dietlibc} \
232         %{!?with_dietlibc:--disable-dietlibc}
233
234 %{__make} all
235 %{__make} doc
236
237 %install
238 rm -rf $RPM_BUILD_ROOT
239 install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d}}
240
241 %{__make} install install-distribution \
242         DESTDIR=$RPM_BUILD_ROOT
243
244 install -d $RPM_BUILD_ROOT/etc/vservices
245 install -d $RPM_BUILD_ROOT/vservers/.pkg
246 ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase
247 ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev
248
249 for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
250         s=`basename $i | sed s/v_//`
251         cat >$RPM_BUILD_ROOT/etc/vservices/$s << EOF
252 # IP addresses/interfaces to bound $s service to
253 #IP=10.0.0.1
254 #IP=eth0
255 EOF
256 done
257
258 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
259 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default
260 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
261 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
262 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/vservers-default
263 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
264
265 %clean
266 rm -rf $RPM_BUILD_ROOT
267
268 %post
269 %{_sbindir}/setattr --barrier /vservers || :
270
271 %post   lib -p /sbin/ldconfig
272 %postun lib -p /sbin/ldconfig
273
274 %post init
275 /sbin/chkconfig --add vservers-default
276 /sbin/chkconfig --add vprocunhide
277 #if [ -r /var/lock/subsys/vprocunhide ]; then
278 #       /etc/rc.d/init.d/vprocunhide restart >&2
279 #fi
280 #if [ -r /var/lock/subsys/vservers-default ]; then
281 #       /etc/rc.d/init.d/vservers-default restart >&2
282 #fi
283
284 %preun init
285 if [ "$1" = "0" ]; then
286         if [ -r /var/lock/subsys/vprocunhide ]; then
287                 /etc/rc.d/init.d/vprocunhide stop >&2
288         fi
289         if [ -r /var/lock/subsys/vservers-default ]; then
290                 /etc/rc.d/init.d/vservers-default stop >&2
291         fi
292         /sbin/chkconfig --del vprocunhide
293         /sbin/chkconfig --del vservers-default
294 fi
295
296 %post legacy
297 /sbin/chkconfig --add rebootmgr
298 /sbin/chkconfig --add vservers-legacy
299 #if [ -r /var/lock/subsys/rebootmgr ] ; then
300 #       /etc/rc.d/init.d/rebootmgr restart >&2
301 #fi
302 #if [ -r /var/lock/subsys/vservers-legacy ] ; then
303 #       /etc/rc.d/init.d/vservers-legacy restart >&2
304 #fi
305
306 %preun legacy
307 if [ "$1" = "0" ]; then
308         if [ -r /var/lock/subsys/rebootmgr ] ; then
309                 /etc/rc.d/init.d/rebootmgr stop >&2
310         fi
311         if [ -r /var/lock/subsys/vservers-legacy ] ; then
312                 /etc/rc.d/init.d/vservers-legacy stop >&2
313         fi
314         /sbin/chkconfig --del rebootmgr
315         /sbin/chkconfig --del vservers-legacy
316 fi
317
318 %files
319 %defattr(644,root,root,755)
320 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt doc/*.html
321 %dir %{_sysconfdir}/vservers
322 %dir %{_sysconfdir}/vservers/.defaults
323 %dir %{_sysconfdir}/vservers/.defaults/apps
324 %dir %{_sysconfdir}/vservers/.defaults/files
325 %ghost %{_sysconfdir}/vservers/.defaults/vdirbase
326 %ghost %{_sysconfdir}/vservers/.defaults/run.rev
327 %{_sysconfdir}/vservers/vdirbase
328 %{_sysconfdir}/vservers/run.rev
329 /sbin/vshelper
330 %attr(755,root,root) %{_sbindir}/exec-cd
331 %attr(755,root,root) %{_sbindir}/vdu
332 %attr(755,root,root) %{_sbindir}/vps
333 %attr(755,root,root) %{_sbindir}/vpstree
334 %attr(755,root,root) %{_sbindir}/vserver
335 %attr(755,root,root) %{_sbindir}/vserver-stat
336 %attr(755,root,root) %{_sbindir}/vsomething
337 %attr(755,root,root) %{_sbindir}/vtop
338 %dir %{_libdir}/%{name}
339 %dir %{_libdir}/%{name}/defaults
340 %{_libdir}/%{name}/defaults/*
341 %attr(755,root,root) %{_libdir}/%{name}/capchroot
342 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
343 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
344 %attr(755,root,root) %{_libdir}/%{name}/chroot-*
345 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
346 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
347 %attr(755,root,root) %{_libdir}/%{name}/filetime
348 %{_libdir}/%{name}/functions
349 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
350 %attr(755,root,root) %{_libdir}/%{name}/lockfile
351 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
352 %attr(755,root,root) %{_libdir}/%{name}/readlink
353 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
354 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
355 %attr(755,root,root) %{_libdir}/%{name}/sigexec
356 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
357 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
358 %{_libdir}/%{name}/vserver.*
359 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
360 %attr(755,root,root) %{_libdir}/%{name}/vshelper
361 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
362 %{_mandir}/man8/*
363 %attr(0,root,root) %dir /vservers
364 %attr(755,root,root) %dir /vservers/.pkg
365 %dir %{_localstatedir}/run/vservers
366 %dir %{_localstatedir}/run/vservers.rev
367 %dir %{_localstatedir}/run/vshelper
368
369 %files devel
370 %defattr(644,root,root,755)
371 %doc lib/apidoc/latex/refman.pdf lib/apidoc/html
372 %attr(755,root,root) %{_libdir}/lib*.so
373 %{_libdir}/lib*.la
374 %{_includedir}/vserver.h
375 %{_pkgconfigdir}/*.pc
376
377 %files static
378 %defattr(644,root,root,755)
379 %{_libdir}/libvserver.a
380
381 %files lib
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
384
385 %files init
386 %defattr(644,root,root,755)
387 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
388 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-default
389 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
390 %attr(754,root,root) /etc/rc.d/init.d/vservers-default
391
392 %files core
393 %defattr(644,root,root,755)
394 %dir %{_libdir}/%{name}
395 %{_libdir}/%{name}/FEATURES.txt
396 %{_libdir}/%{name}/util-vserver-vars
397 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
398 %attr(755,root,root) %{_sbindir}/chbind
399 %attr(755,root,root) %{_sbindir}/chcontext
400 %attr(755,root,root) %{_sbindir}/chxid
401 %attr(755,root,root) %{_sbindir}/lsxid
402 %attr(755,root,root) %{_sbindir}/reducecap
403 %attr(755,root,root) %{_sbindir}/setattr
404 %attr(755,root,root) %{_sbindir}/showattr
405 %attr(755,root,root) %{_sbindir}/vattribute
406 %attr(755,root,root) %{_sbindir}/vcontext
407 %attr(755,root,root) %{_sbindir}/vdlimit
408 %attr(755,root,root) %{_sbindir}/vnamespace
409 %attr(755,root,root) %{_sbindir}/vkill
410 %attr(755,root,root) %{_sbindir}/vlimit
411 %attr(755,root,root) %{_sbindir}/vrsetup
412 %attr(755,root,root) %{_sbindir}/vsched
413 %attr(755,root,root) %{_sbindir}/vserver-info
414 %attr(755,root,root) %{_sbindir}/vuname
415 %{_mandir}/man8/chbind*
416 %{_mandir}/man8/chcontext*
417 %{_mandir}/man8/reducecap*
418
419 %files build
420 %defattr(644,root,root,755)
421 %doc contrib/yum*.patch
422 %dir %{_sysconfdir}/vservers/.distributions
423 %{_sysconfdir}/vservers/.distributions/.common
424 %{_sysconfdir}/vservers/.distributions/*
425 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify
426 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
427 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
428 %dir %{_libdir}/%{name}/distributions
429 %{_libdir}/%{name}/distributions/*
430 %{_libdir}/%{name}/vserver-build.*
431 %{_libdir}/%{name}/vserver-setup.functions
432 %{_libdir}/%{name}/defaults/fstab
433 %{_libdir}/%{name}/defaults/debootstrap.uri
434 %{_libdir}/%{name}/defaults/vunify-exclude
435 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
436 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
437 %attr(755,root,root) %{_libdir}/%{name}/vbuild
438 %attr(755,root,root) %{_libdir}/%{name}/vcheck
439 %attr(755,root,root) %{_libdir}/%{name}/vcopy
440 %attr(755,root,root) %{_libdir}/%{name}/vhashify
441 %attr(755,root,root) %{_libdir}/%{name}/vpkg
442 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
443 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
444 %attr(755,root,root) %{_libdir}/%{name}/vunify
445 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
446 %attr(755,root,root) %{_sbindir}/vapt-get
447 %attr(755,root,root) %{_sbindir}/vfiles
448 %attr(755,root,root) %{_sbindir}/vrpm
449 %attr(755,root,root) %{_sbindir}/vyum
450 %{_mandir}/man8/vserver-copy*
451
452 %files legacy
453 %defattr(644,root,root,755)
454 %dir /etc/vservices
455 /etc/vservices/*
456 %dir %{_libdir}/%{name}/legacy
457 %attr(755,root,root) %{_libdir}/%{name}/legacy/*
458 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
459 %attr(754,root,root) /etc/rc.d/init.d/v_*
460 %attr(754,root,root) /etc/rc.d/init.d/rebootmgr
461 %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
462 %attr(755,root,root) %{_sbindir}/vserver-copy
463 %{_mandir}/man8/distrib-info*
464 %{_mandir}/man8/rebootmgr*
465 %{_mandir}/man8/vps.*
This page took 0.07753 seconds and 4 git commands to generate.