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