]> git.pld-linux.org Git - packages/util-vserver.git/blob - util-vserver.spec
- drop vserver-dev package, /dev tree is under %_netsharedpath and provides are in...
[packages/util-vserver.git] / util-vserver.spec
1 # TODO
2 # - somewhy empty /var/cache/vservers is needed when building pld vserver
3 #
4 # m68k and mips are the only not supported archs
5 #
6 # Conditional build:
7 %bcond_without  dietlibc        # don't use dietlibc (ask for troubles)
8 %bcond_without  doc             # don't build documentation which needed LaTeX
9 %bcond_with     xalan           # use the xalan xslt processor
10 #
11 Summary:        Linux virtual server utilities
12 Summary(pl):    Narzêdzia dla linuksowych serwerów wirtualnych
13 Name:           util-vserver
14 Version:        0.30.210
15 Release:        5
16 License:        GPL
17 Group:          Applications/System
18 Source0:        http://www.13thfloor.at/~ensc/util-vserver/files/alpha/%{name}-%{version}.tar.bz2
19 # Source0-md5:  1e8fff7cb6246d21ed029f082123019b
20 Source1:        vprocunhide.init
21 Source2:        vservers.init
22 Source3:        vservers-legacy.init
23 Source4:        rebootmgr.init
24 Source5:        vservers.sysconfig
25 Source6:        vservers-legacy.sysconfig
26 Source7:        vrootdevices.init
27 Source8:        vrootdevices.sysconfig
28 # A bit of documentation explaining package management
29 # http://www.paul.sladen.org/vserver/archives/200505/0078.html
30 Source9:        %{name}-pkgmgmt.txt
31 Source10:       %{name}-initpost.sh
32 Patch0:         %{name}-vsysvwrapper.patch
33 Patch1:         %{name}-pld.patch
34 Patch2:         %{name}-vrpm.patch
35 Patch3:         %{name}-include.patch
36 Patch4:         %{name}-m4-diet.patch
37 Patch5:         %{name}-cpuset.patch
38 Patch6:         %{name}-build-umask.patch
39 Patch7:         %{name}-utmpx.patch
40 URL:            http://savannah.nongnu.org/projects/util-vserver/
41 BuildRequires:  autoconf
42 BuildRequires:  automake >= 1.9
43 BuildRequires:  beecrypt-devel
44 %{?with_dietlibc:BuildRequires: dietlibc-static >= 2:0.29}
45 BuildRequires:  libstdc++-devel
46 BuildRequires:  libtool >= 1.5.14
47 %ifarch %{x8664}
48 BuildRequires:  sed >= 4.0
49 %endif
50 %if %{with doc}
51 BuildRequires:  doxygen
52 BuildRequires:  graphviz
53 BuildRequires:  libxslt-progs
54 BuildRequires:  tetex-format-pdflatex
55 BuildRequires:  tetex-makeindex
56 # To be removed when tetex-format-pdflatex, tetex-pdftex...
57 # ...and graphviz packages get fixed
58 BuildRequires:  ghostscript
59 BuildRequires:  ghostscript-fonts-std
60 BuildRequires:  tetex-fonts-jknappen
61 BuildRequires:  tetex-metafont
62 %{?with_xalan:BuildRequires:    xalan-j}
63 %endif
64 Requires(post,preun):   /sbin/chkconfig
65 Requires:       %{name}-lib = %{version}-%{release}
66 Requires:       issue
67 Requires:       rc-scripts
68 Requires:       util-linux
69 Obsoletes:      util-vserver-core
70 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
71
72 # for adapter
73 %define         _usrbin         /usr/bin
74 %define         _usrsbin        /usr/sbin
75 %define         _usrlib         /usr/lib
76
77 %description
78 This package provides the components and a framework to setup virtual
79 servers. A virtual server runs inside a Linux server. It is
80 nevertheless highly independent. As such, you can run various services
81 with normal configuration. The various vservers can't interact with
82 each other and can't interact with services in the main server.
83
84 This requires a special kernel supporting the new new_s_context and
85 set_ipv4root system call.
86
87 This package contains utilities which are required to communicate with
88 the Linux-Vserver enabled kernel.
89
90 %description -l pl
91 Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
92 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
93 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
94 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
95 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
96
97 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
98 new_s_context i set_ipv4root.
99
100 Ten pakiet zawiera narzêdzia wymagane do komunikacji z j±drem z
101 w³±czonym mechanizmem Linux-Vserver.
102
103 %package devel
104 Summary:        Development files for Linux vserver libraries
105 Summary(pl):    Pliki programistyczne dla bibliotek linuksowego vserwera
106 Group:          Development/Libraries
107 Requires:       %{name}-lib = %{version}-%{release}
108
109 %description devel
110 This package contains the development files necessary for developing
111 programs which use vserver library.
112
113 %description devel -l pl
114 Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
115 programów u¿ywaj±cych biblioteki vserver.
116
117 %package static
118 Summary:        Static vserver library
119 Summary(pl):    Biblioteka statyczna vservera
120 Group:          Development/Libraries
121 Requires:       %{name}-devel = %{version}-%{release}
122
123 %description static
124 This package contains the static version of vserver library.
125
126 %description static -l pl
127 Ten pakiet zawiera statyczn± wersjê biblioteki vservera.
128
129 %package lib
130 Summary:        Dynamic libraries for util-vserver
131 Summary(pl):    Biblioteki dynamiczne dla pakietu util-vserver
132 Group:          Libraries
133
134 %description lib
135 util-vserver provides the components and a framework to setup virtual
136 servers. A virtual server runs inside a linux server. It is
137 nevertheless highly independent. As such, you can run various services
138 pith normal configuration. The various vservers can't interact with
139 each other and can't interact with services in the main server.
140
141 This package contains the shared libraries needed by all other
142 'util-vserver' subpackages.
143
144 %description lib -l pl
145 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
146 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
147 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
148 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
149 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
150
151 Ten pakiet zawiera biblioteki wspó³dzielone wymagane przez wszystkie
152 podpakiety util-vserver.
153
154 %package build
155 Summary:        Tools which can be used to build vservers
156 Summary(pl):    Narzêdzia do budowania vserverów
157 Group:          Applications/System
158 Requires:       %{name} = %{version}-%{release}
159 Requires:       e2fsprogs
160 Conflicts:      poldek < 0.18.8-10
161
162 %description build
163 util-vserver provides the components and a framework to setup virtual
164 servers. A virtual server runs inside a linux server. It is
165 nevertheless highly independent. As such, you can run various services
166 with normal configuration. The various vservers can't interact with
167 each other and can't interact with services in the main server.
168
169 This package contains utilities which assist in building Vservers.
170
171 %description build -l pl
172 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
173 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
174 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
175 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
176 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
177
178 Ten pakiet zawiera narzêdzia pomagaj±ce przy budowaniu Vserwerów.
179
180 %package -n vserver-distro-fedora
181 Summary:        VServer build templates for Fedora Core
182 Summary(pl):    Szablony do tworzenia VServerów dla dystrybucji Fedora Core
183 Group:          Applications/System
184 Requires:       %{name} = %{version}-%{release}
185 Requires:       binutils
186 Requires:       e2fsprogs
187 Requires:       rpm
188 Requires:       tar
189 Requires:       wget
190
191 %description -n vserver-distro-fedora
192 VServer build templates for Fedora Core 1,2,3,4.
193
194 %description -n vserver-distro-fedora -l pl
195 Szablony do tworzenia VServerów dla dystrybucji Fedora Core 1,2,3,4.
196
197 %package -n vserver-distro-redhat
198 Summary:        VServer build template for Red Hat Linux 9
199 Summary(pl):    Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9
200 Group:          Applications/System
201 Requires:       %{name} = %{version}-%{release}
202 Requires:       binutils
203 Requires:       e2fsprogs
204 Requires:       rpm
205 Requires:       tar
206 Requires:       wget
207
208 %description -n vserver-distro-redhat
209 VServer build template for RedHat Linux 9.
210
211 %description -n vserver-distro-redhat -l pl
212 Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9.
213
214 %package -n vserver-distro-suse
215 Summary:        VServer build template for SuSE 9.1
216 Summary(pl):    Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1
217 Group:          Applications/System
218 Requires:       %{name} = %{version}-%{release}
219 Requires:       binutils
220 Requires:       e2fsprogs
221 Requires:       rpm
222 Requires:       tar
223 Requires:       wget
224
225 %description -n vserver-distro-suse
226 VServer build template for SuSE Linux 9.1.
227
228 %description -n vserver-distro-suse -l pl
229 Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1.
230
231 %package -n vserver-distro-centos
232 Summary:        VServer build template for CentOS 4.2
233 Summary(pl):    Szablon budowania VServera dla CentOS 4.2
234 Group:          Applications/System
235 Requires:       util-vserver-build
236 Requires:       yum
237
238 %description -n vserver-distro-centos
239 VServer build template for CentOS 4.2.
240
241 %description -n vserver-distro-centos -l pl
242 Szablon budowania VServera dla CentOS 4.2.
243
244 %package init
245 Summary:        initscripts for vserver
246 Summary(pl):    Skrypty inicjalizuj±ce dla vserwera
247 Group:          Applications/System
248 Requires(post,preun):   /sbin/chkconfig
249 Requires:       %{name} = %{version}-%{release}
250 Requires:       diffutils
251 Requires:       make
252 Requires:       rc-scripts
253
254 %description init
255 util-vserver provides the components and a framework to setup virtual
256 servers. A virtual server runs inside a linux server. It is
257 nevertheless highly independent. As such, you can run various services
258 with normal configuration. The various vservers can't interact with
259 each other and can't interact with services in the main server.
260
261 This package contains the SysV initscripts which start and stop
262 Vservers and related tools.
263
264 %description init -l pl
265 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
266 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
267 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
268 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
269 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
270
271 Ten pakiet zawiera skrypty inicjalizuj±ce SysV uruchamiaj±ce i
272 zatrzymuj±ce Vserwery oraz powi±zane narzêdzia.
273
274 %package legacy
275 Summary:        Legacy utilities for util-vserver
276 Summary(pl):    Stare narzêdzia dla util-vserver
277 Group:          Applications/System
278 Requires(post,preun):   /sbin/chkconfig
279 Requires:       %{name} = %{version}-%{release}
280 Requires:       rc-scripts
281
282 %description legacy
283 util-vserver provides the components and a framework to setup virtual
284 servers. A virtual server runs inside a linux server. It is
285 nevertheless highly independent. As such, you can run various services
286 with normal configuration. The various vservers can't interact with
287 each other and can't interact with services in the main server.
288
289 This package contains the tools which are needed to work with Vservers
290 having an old-style configuration.
291
292 %description legacy -l pl
293 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
294 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
295 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
296 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
297 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
298
299 Ten pakiet zawiera narzêdzia potrzebne do pracy z Vserwerami maj±cymi
300 konfiguracjê w starym stylu.
301
302 %prep
303 %setup -q
304 %patch0 -p1
305 %patch1 -p1
306 %patch2 -p1
307 %patch3 -p1
308 %patch4 -p1
309 %patch5 -p1
310 %patch6 -p1
311 %patch7 -p1
312
313 install %{SOURCE9} package-management.txt
314
315 cp -a compat.h vserver-compat.h
316
317 %build
318 %if %{with dietlibc}
319 CFLAGS="%{rpmcflags} -D__GLIBC__"
320 %endif
321 %{__aclocal} -I m4
322 %{__automake}
323 %{__autoconf}
324 %configure \
325         --with-initrddir=/etc/rc.d/init.d \
326         --enable-release \
327         --enable-apis=NOLEGACY \
328         %{?with_dietlibc:--enable-dietlibc} \
329         %{!?with_dietlibc:--disable-dietlibc} \
330         MKTEMP=/bin/mktemp \
331         MOUNT=/bin/mount \
332         PS=/bin/ps \
333         UMOUNT=/bin/umount \
334         IP=/sbin/ip \
335         IPTABLES=%{_usrsbin}/iptables \
336         MODPROBE=/sbin/modprobe \
337         NAMEIF=/sbin/nameif \
338         RMMOD=/sbin/rmmod \
339         VCONFIG=/sbin/vconfig \
340         WGET=%{_usrbin}/wget \
341
342 %{__make} all
343 %{?with_doc:%{__make} doc}
344
345 %install
346 rm -rf $RPM_BUILD_ROOT
347 install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d},/dev/pts}
348
349 %{__make} install install-distribution \
350         DESTDIR=$RPM_BUILD_ROOT
351
352 cp -a vserver-compat.h $RPM_BUILD_ROOT%{_includedir}
353
354 chmod -R +rX $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/*
355
356 install -d $RPM_BUILD_ROOT%{_sysconfdir}/vservices
357 install -d $RPM_BUILD_ROOT/vservers/.pkg
358 ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase
359 ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev
360
361 for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
362         s=`basename $i | sed s/v_//`
363         cat >$RPM_BUILD_ROOT%{_sysconfdir}/vservices/$s << EOF
364 # IP addresses/interfaces to bound $s service to
365 #IP=10.0.0.1
366 #IP=eth0
367 EOF
368 done
369
370 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE1} > \
371         $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
372 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE2} > \
373         $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers
374 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE3} > \
375         $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
376 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE4} > \
377         $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
378 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE5} > \
379         $RPM_BUILD_ROOT/etc/sysconfig/vservers
380
381 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
382
383 install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vrootdevices
384 install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/vrootdevices
385 install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/initpost
386
387 ln -sf null $RPM_BUILD_ROOT/dev/initctl
388
389 %ifarch %{x8664}
390 sed -i 's/^glibc$/glibc64/' $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/pkgs/01
391 sed -i 's/glibc\-\[0\-9\]\*\.rpm/glibc64\-\[0\-9\]\*\.rpm/' $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/rpmlist.d/00.lst
392 %endif
393
394 # baggins check this: needed but seems unused
395 install -d $RPM_BUILD_ROOT/var/cache/vservers
396
397 %clean
398 rm -rf $RPM_BUILD_ROOT
399
400 %post
401 %{_sbindir}/setattr --barrier /vservers || :
402
403 %post   lib -p /sbin/ldconfig
404 %postun lib -p /sbin/ldconfig
405
406 %post init
407 /sbin/chkconfig --add vrootdevices
408 /sbin/chkconfig --add vprocunhide
409 /sbin/chkconfig --add vservers
410 if [ ! -f /var/lock/subsys/vrootdevices ]; then
411         echo "Type \"/etc/rc.d/init.d/vrootdevices start\" to assign virtual root devices" 1>&2
412 fi
413 if [ ! -f /var/lock/subsys/vprocunhide ]; then
414         echo "Type \"/etc/rc.d/init.d/vprocunhide start\" to set /proc visibility for vservers" 1>&2
415 fi
416 if [ ! -f /var/lock/subsys/vservers ]; then
417         echo "Type \"/etc/rc.d/init.d/vservers start\" to start vservers" 1>&2
418 fi
419
420 %preun init
421 if [ "$1" = "0" ]; then
422         if [ -r /var/lock/subsys/vservers ]; then
423                 /etc/rc.d/init.d/vservers stop >&2
424         fi
425         if [ -r /var/lock/subsys/vprocunhide ]; then
426                 /etc/rc.d/init.d/vprocunhide stop >&2
427         fi
428         if [ -r /var/lock/subsys/vrootdevices ]; then
429                 /etc/rc.d/init.d/vrootdevices stop >&2
430         fi
431         /sbin/chkconfig --del vservers
432         /sbin/chkconfig --del vprocunhide
433         /sbin/chkconfig --del vrootdevices
434 fi
435
436 %post legacy
437 /sbin/chkconfig --add rebootmgr
438 /sbin/chkconfig --add vservers-legacy
439 if [ ! -f /var/lock/subsys/rebootmgr ] ; then
440         echo "Type \"/etc/rc.d/init.d/rebootmgr start\" to start reboot manager for legacy vservers" 1>&2
441 fi
442 if [ ! -f /var/lock/subsys/vservers-legacy ] ; then
443         echo "Type \"/etc/rc.d/init.d/vservers-legacy start\" to start legacy vservers" 1>&2
444 fi
445
446 %preun legacy
447 if [ "$1" = "0" ]; then
448         if [ -r /var/lock/subsys/rebootmgr ] ; then
449                 /etc/rc.d/init.d/rebootmgr stop >&2
450         fi
451         if [ -r /var/lock/subsys/vservers-legacy ] ; then
452                 /etc/rc.d/init.d/vservers-legacy stop >&2
453         fi
454         /sbin/chkconfig --del rebootmgr
455         /sbin/chkconfig --del vservers-legacy
456 fi
457
458 %triggerpostun build -- %{name}-build < 0.30.209-2.1
459 if [ -f /etc/vservers/.distributions/pld2.0/poldek/poldek.conf.rpmsave ]; then
460         mv -f /etc/vservers/.distributions/{pld2.0,pld-ac}/poldek/poldek.conf.rpmsave
461 fi
462
463 %files
464 %defattr(644,root,root,755)
465 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt
466 %{?with_doc:%doc doc/*.html}
467 %dir %{_sysconfdir}/vservers
468 %dir %{_sysconfdir}/vservers/.defaults
469 %dir %{_sysconfdir}/vservers/.defaults/apps
470 %dir %{_sysconfdir}/vservers/.defaults/files
471 %{_sysconfdir}/vservers/.defaults/vdirbase
472 %{_sysconfdir}/vservers/.defaults/run.rev
473 %{_sysconfdir}/vservers/vdirbase
474 %{_sysconfdir}/vservers/run.rev
475 /sbin/vshelper
476 %attr(755,root,root) %{_sbindir}/chbind
477 %attr(755,root,root) %{_sbindir}/chcontext
478 %attr(755,root,root) %{_sbindir}/chxid
479 %attr(755,root,root) %{_sbindir}/exec-cd
480 %attr(755,root,root) %{_sbindir}/lsxid
481 %attr(755,root,root) %{_sbindir}/reducecap
482 %attr(755,root,root) %{_sbindir}/setattr
483 %attr(755,root,root) %{_sbindir}/showattr
484 %attr(755,root,root) %{_sbindir}/vattribute
485 %attr(755,root,root) %{_sbindir}/vcontext
486 %attr(755,root,root) %{_sbindir}/vdlimit
487 %attr(755,root,root) %{_sbindir}/vnamespace
488 %attr(755,root,root) %{_sbindir}/vkill
489 %attr(755,root,root) %{_sbindir}/vlimit
490 %attr(755,root,root) %{_sbindir}/vdu
491 %attr(755,root,root) %{_sbindir}/vps
492 %attr(755,root,root) %{_sbindir}/vpstree
493 %attr(755,root,root) %{_sbindir}/vrsetup
494 %attr(755,root,root) %{_sbindir}/vsched
495 %attr(755,root,root) %{_sbindir}/vserver
496 %attr(755,root,root) %{_sbindir}/vserver-info
497 %attr(755,root,root) %{_sbindir}/vserver-stat
498 %attr(755,root,root) %{_sbindir}/vsomething
499 %attr(755,root,root) %{_sbindir}/vtop
500 %attr(755,root,root) %{_sbindir}/vuname
501 %attr(755,root,root) %{_sbindir}/vwait
502 %dir %{_libdir}/%{name}
503 %dir %{_libdir}/%{name}/defaults
504 %{_libdir}/%{name}/FEATURES.txt
505 %{_libdir}/%{name}/util-vserver-vars
506 %{_libdir}/%{name}/defaults/*
507 %attr(755,root,root) %{_libdir}/%{name}/capchroot
508 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
509 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
510 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
511 %attr(755,root,root) %{_libdir}/%{name}/chroot-sh
512 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
513 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
514 %attr(755,root,root) %{_libdir}/%{name}/filetime
515 %{_libdir}/%{name}/functions
516 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
517 %attr(755,root,root) %{_libdir}/%{name}/lockfile
518 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
519 %attr(755,root,root) %{_libdir}/%{name}/readlink
520 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
521 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
522 %attr(755,root,root) %{_libdir}/%{name}/sigexec
523 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
524 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
525 %{_libdir}/%{name}/vserver.*
526 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
527 %attr(755,root,root) %{_libdir}/%{name}/vshelper
528 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
529 %{_mandir}/man8/chbind.8*
530 %{_mandir}/man8/chcontext.8*
531 %{_mandir}/man8/reducecap.8*
532 %{_mandir}/man8/vps.8*
533 %{_mandir}/man8/vpstree.8*
534 %{_mandir}/man8/vserver-stat.8*
535 %{_mandir}/man8/vserver.8*
536 %{_mandir}/man8/vtop.8*
537 %attr(000,root,root) %dir /vservers
538 %attr(755,root,root) %dir /vservers/.pkg
539 %dir %{_localstatedir}/run/vservers
540 %dir %{_localstatedir}/run/vservers.rev
541 %dir %{_localstatedir}/run/vshelper
542 %dir /var/cache/vservers
543
544 %files devel
545 %defattr(644,root,root,755)
546 %{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html}
547 %attr(755,root,root) %{_libdir}/lib*.so
548 %{_libdir}/lib*.la
549 %{_includedir}/vserver*.h
550 %{_pkgconfigdir}/*.pc
551
552 %files static
553 %defattr(644,root,root,755)
554 %{_libdir}/libvserver.a
555
556 %files lib
557 %defattr(644,root,root,755)
558 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
559
560 %files init
561 %defattr(644,root,root,755)
562 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
563 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vrootdevices
564 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers
565 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
566 %attr(754,root,root) /etc/rc.d/init.d/vrootdevices
567 %attr(754,root,root) /etc/rc.d/init.d/vservers
568
569 %files build
570 %defattr(644,root,root,755)
571 %doc contrib/yum*.patch package-management.txt
572 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify
573 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
574 %dir %{_sysconfdir}/vservers/.distributions
575 %dir %{_sysconfdir}/vservers/.distributions/.common
576 %dir %{_sysconfdir}/vservers/.distributions/.common/pubkeys
577 %dir %{_sysconfdir}/vservers/.distributions/pld-ac
578 %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek
579 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/*.conf
580 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
581 %dir %{_libdir}/%{name}/distributions
582 %attr(-, root, root) %{_libdir}/%{name}/distributions/defaults
583 %attr(-, root, root) %{_libdir}/%{name}/distributions/pld*
584 %attr(-, root, root) %{_libdir}/%{name}/distributions/template
585 %attr(-, root, root) %{_libdir}/%{name}/distributions/redhat*
586 %{_libdir}/%{name}/vserver-build.*
587 %{_libdir}/%{name}/vserver-setup.functions
588 %{_libdir}/%{name}/defaults/fstab
589 %{_libdir}/%{name}/defaults/debootstrap.uri
590 %{_libdir}/%{name}/defaults/vunify-exclude
591 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
592 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
593 %attr(755,root,root) %{_libdir}/%{name}/vcopy
594 %attr(755,root,root) %{_libdir}/%{name}/vhashify
595 %attr(755,root,root) %{_libdir}/%{name}/vpkg
596 %attr(755,root,root) %{_libdir}/%{name}/vpoldek-worker
597 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
598 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
599 %attr(755,root,root) %{_libdir}/%{name}/vunify
600 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
601 %attr(755,root,root) %{_sbindir}/vapt-get
602 %attr(755,root,root) %{_sbindir}/vpoldek
603 %attr(755,root,root) %{_sbindir}/vrpm
604 %attr(755,root,root) %{_sbindir}/vyum
605
606 %files -n vserver-distro-fedora
607 %defattr(644,root,root,755)
608 %dir %{_sysconfdir}/vservers/.distributions/fc*
609 %dir %{_sysconfdir}/vservers/.distributions/fc*/apt
610 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/fc*/apt/sources.list
611 %{_libdir}/%{name}/distributions/fc*
612
613 %files -n vserver-distro-redhat
614 %defattr(644,root,root,755)
615 %dir %{_sysconfdir}/vservers/.distributions/rh*
616 %dir %{_sysconfdir}/vservers/.distributions/rh*/apt
617 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/rh*/apt/sources.list
618 %{_libdir}/%{name}/distributions/rh*
619
620 %files -n vserver-distro-suse
621 %defattr(644,root,root,755)
622 %dir %{_sysconfdir}/vservers/.distributions/suse*
623 %dir %{_sysconfdir}/vservers/.distributions/suse*/apt
624 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/suse*/apt/sources.list
625 %{_libdir}/%{name}/distributions/suse*
626
627 %files -n vserver-distro-centos
628 %defattr(644,root,root,755)
629 %{_libdir}/util-vserver/distributions/centos42
630
631 %files legacy
632 %defattr(644,root,root,755)
633 %dir %{_sysconfdir}/vservices
634 %{_sysconfdir}/vservices/*
635 %dir %{_libdir}/%{name}/legacy
636 %attr(755,root,root) %{_libdir}/%{name}/legacy/*
637 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
638 %attr(754,root,root) /etc/rc.d/init.d/v_*
639 %attr(754,root,root) /etc/rc.d/init.d/rebootmgr
640 %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
641 %attr(755,root,root) %{_sbindir}/vserver-copy
642 %{_mandir}/man8/distrib-info.8*
643 %{_mandir}/man8/rebootmgr.8*
644 %{_mandir}/man8/vserver-copy.8*
This page took 0.19189 seconds and 4 git commands to generate.