]>
Commit | Line | Data |
---|---|---|
622053c4 ER |
1 | # TODO |
2 | # - %install is not re-entrant | |
925e8edc | 3 | # |
5b2fc2c7 | 4 | # m68k and mips are the only not supported archs |
9f1aa96a | 5 | # |
9f81736b | 6 | # Conditional build: |
6730cb3d JB |
7 | %bcond_without dietlibc # don't use dietlibc (ask for troubles) |
8 | %bcond_without doc # don't build documentation which needed LaTeX | |
204e5db3 | 9 | %bcond_without no_dynamic_context # disable enforcement of disabled dynamic context |
6730cb3d | 10 | %bcond_with xalan # use the xalan xslt processor |
04c2a702 | 11 | |
22ee1f7a | 12 | %define vproc_version 0.01 |
b3024b38 | 13 | # diet compile fails with ccache in %{__cc} |
e128cb8a | 14 | %undefine with_ccache |
04c2a702 | 15 | |
8fe55c88 JR |
16 | %ifarch ppc |
17 | # pdflatex: refman: Invalid argument | |
18 | %undefine with_doc | |
19 | %endif | |
b681e6a9 | 20 | |
f6be3523 AM |
21 | %define snap pre3025 |
22 | %define rel 1 | |
c4036d6e | 23 | Summary: Linux virtual server utilities |
33f71e01 | 24 | Summary(pl.UTF-8): Narzędzia dla linuksowych serwerów wirtualnych |
c4036d6e | 25 | Name: util-vserver |
bc2ffe55 | 26 | Version: 0.30.216 |
2c41f437 | 27 | Release: 1.%{snap}.%{rel} |
c4036d6e | 28 | License: GPL |
fc8ba798 | 29 | Group: Applications/System |
385aa86b | 30 | Source0: http://people.linux-vserver.org/~dhozac/t/uv-testing/%{name}-%{version}-%{snap}.tar.bz2 |
f6be3523 | 31 | # Source0-md5: 46592e4695c6011c828872b66a483fc0 |
536c7360 | 32 | Source1: vprocunhide.init |
f16cd315 | 33 | Source2: vservers.init |
536c7360 | 34 | Source3: vservers-legacy.init |
9f81736b | 35 | Source4: rebootmgr.init |
f16cd315 | 36 | Source5: vservers.sysconfig |
9f81736b | 37 | Source6: vservers-legacy.sysconfig |
e5f7ee9a JR |
38 | Source7: vrootdevices.init |
39 | Source8: vrootdevices.sysconfig | |
19844202 | 40 | # A bit of documentation explaining package management |
47f9cd5f | 41 | # http://www.paul.sladen.org/vserver/archives/200505/0078.html |
b674c64a | 42 | Source9: %{name}-pkgmgmt.txt |
ceff5a94 | 43 | Source10: %{name}-initpost.sh |
22ee1f7a | 44 | Source11: http://www.13thfloor.at/vserver/s_release/v1.2.10/vproc-%{vproc_version}.tar.bz2 |
e128cb8a | 45 | # Source11-md5: 1d030717bdbc958ea4b35fd2410dad85 |
4961db11 | 46 | Source12: %{name}-vhashify.cron |
468087c5 | 47 | Source13: ftp://ftp.pld-linux.org/dists/ac/PLD-2.0-Ac-GPG-key.asc |
48 | # Source13-md5: 8e7574d1de2fa95c2c54cd2ee03364c1 | |
49 | Source14: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc | |
50 | # Source14-md5: 08b29584dd349aac9caa7610131a0a88 | |
49e22b19 | 51 | Source15: %{name}.init |
7c944e34 | 52 | Source16: %{name}.tmpfiles |
01331769 | 53 | Patch0: %{name}-vsysvwrapper.patch |
880068a9 | 54 | Patch1: %{name}-pld.patch |
54c149ac | 55 | Patch2: %{name}-centos.patch |
1e07a54b | 56 | Patch3: %{name}-tld.patch |
01331769 | 57 | Patch4: %{name}-m4-diet.patch |
1e14ade8 | 58 | Patch5: %{name}-yum-verb-nogpg.patch |
f16cd315 JR |
59 | Patch6: %{name}-build-umask.patch |
60 | Patch7: %{name}-utmpx.patch | |
33beda22 | 61 | Patch8: %{name}-vprocunhide.patch |
616759c3 | 62 | Patch9: %{name}-dev.patch |
f5385f4a | 63 | Patch10: %{name}-no-dynamic-ctx.patch |
3a527d22 | 64 | Patch11: %{name}-more-ip.patch |
fe9ea50c | 65 | Patch12: %{name}-rpm-fake-resolver-badperm-errorlogging.patch |
6d43167c | 66 | Patch13: %{name}-tmpdir.patch |
e7ac6dd1 ER |
67 | Patch14: %{name}-rpmpath.patch |
68 | Patch15: %{name}-interfaces-ignore-cvs-dir.patch | |
761afb0b | 69 | Patch16: %{name}-personalitymachine.patch |
0edd7eb1 | 70 | Patch17: %{name}-backupfiles.patch |
bc2ffe55 | 71 | Patch18: %{name}-vprocunhide-net.patch |
bac1963d | 72 | # http://glen.alkohol.ee/pld/util-vserver-dbrebuild-internalize4.patch |
bc2ffe55 | 73 | Patch19: %{name}-dbrebuild-internalize4.patch |
bc2ffe55 | 74 | Patch21: %{name}-bash-wrapper.patch |
94a3845f | 75 | Patch22: %{name}-pivot-root-ugly-hack.patch |
21a3b8ba | 76 | Patch24: vunify-more-exclude.patch |
27dc70bd | 77 | Patch25: stat.patch |
f6c359be | 78 | Patch26: %{name}-am.patch |
f9347a64 | 79 | URL: http://savannah.nongnu.org/projects/util-vserver/ |
59ac117c | 80 | BuildRequires: autoconf |
c21e4fcc | 81 | BuildRequires: automake >= 1.9 |
6f3fd704 | 82 | BuildRequires: beecrypt-devel |
925e8edc | 83 | BuildRequires: ctags |
f791a6d7 | 84 | %{?with_dietlibc:BuildRequires: dietlibc-static >= 2:0.29} |
6730cb3d | 85 | BuildRequires: e2fsprogs-devel |
6f3fd704 | 86 | BuildRequires: libstdc++-devel |
c740301d | 87 | BuildRequires: libtool >= 1.5.14 |
08d35c12 | 88 | BuildRequires: pkgconfig |
21a3b8ba | 89 | BuildRequires: python-devel |
7890624b | 90 | BuildRequires: python-modules |
91 | BuildRequires: rpm-pythonprov | |
2d9f659e | 92 | BuildRequires: rpmbuild(macros) >= 1.268 |
08d35c12 | 93 | BuildRequires: sed >= 4.0 |
54d8402e | 94 | %if %{with doc} |
c27aa395 | 95 | BuildRequires: doxygen >= 1:1.7.3 |
3aaf9ac9 | 96 | BuildRequires: graphviz |
e8b52e06 | 97 | BuildRequires: libxslt-progs |
11eacd16 | 98 | BuildRequires: python-devel |
a1ab5811 | 99 | %if "%{pld_release}" != "th" |
6d7f9a61 | 100 | BuildRequires: tetex-fonts-jknappen |
101 | BuildRequires: tetex-format-pdflatex | |
102 | BuildRequires: tetex-makeindex | |
103 | BuildRequires: tetex-metafont | |
104 | %else | |
888b8665 | 105 | BuildRequires: texlive-fonts-rsfs |
bc2ffe55 JR |
106 | BuildRequires: texlive-fonts-type1-urw |
107 | BuildRequires: texlive-format-pdflatex | |
c27aa395 | 108 | BuildRequires: texlive-latex-extend |
8d5e0559 | 109 | BuildRequires: texlive-latex-ucs |
bc2ffe55 JR |
110 | BuildRequires: texlive-makeindex |
111 | BuildRequires: texlive-pdftex | |
112 | BuildRequires: texlive-xetex | |
6d7f9a61 | 113 | %endif |
9f81736b | 114 | %{?with_xalan:BuildRequires: xalan-j} |
54d8402e | 115 | %endif |
2d6d0c17 | 116 | Requires(post,preun): /sbin/chkconfig |
33ef531a | 117 | Requires: %{name}-lib = %{version}-%{release} |
2bef02ad | 118 | Requires: coreutils |
1e14ade8 | 119 | Requires: diffutils |
996a9238 | 120 | Requires: issue |
7ccbf05b | 121 | Requires: make |
fc5c9ef4 | 122 | Requires: mktemp >= 1.5-18 |
cf832f1a | 123 | Requires: rc-scripts >= 0.4.3.4 |
07c48fe5 | 124 | Requires: tar |
a1ab5811 | 125 | Requires: util-linux >= 2.13 |
33ef531a | 126 | Requires: vserver-distro-pld = %{version}-%{release} |
4f782c13 | 127 | Obsoletes: util-vserver-build |
bf0ccb73 | 128 | Obsoletes: util-vserver-core |
82a15eaa | 129 | Obsoletes: util-vserver-init |
11eacd16 | 130 | Conflicts: poldek < 0.18.8-10 |
c4036d6e AM |
131 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
132 | ||
6492e391 AM |
133 | %if %{with dietlibc} |
134 | # binaries created with this option have broken segments when using dietlibc | |
135 | %define filterout_ld -Wl,-z,relro | |
136 | %endif | |
137 | ||
c993b99d ER |
138 | # for adapter |
139 | %define _usrbin /usr/bin | |
f996608b ER |
140 | %define _usrsbin /usr/sbin |
141 | %define _usrlib /usr/lib | |
c993b99d | 142 | |
c4036d6e AM |
143 | %description |
144 | This package provides the components and a framework to setup virtual | |
f9347a64 | 145 | servers. A virtual server runs inside a Linux server. It is |
c4036d6e AM |
146 | nevertheless highly independent. As such, you can run various services |
147 | with normal configuration. The various vservers can't interact with | |
148 | each other and can't interact with services in the main server. | |
149 | ||
150 | This requires a special kernel supporting the new new_s_context and | |
151 | set_ipv4root system call. | |
152 | ||
fc8ba798 | 153 | This package contains utilities which are required to communicate with |
82a15eaa | 154 | the Linux-Vserver enabled kernel, utilities which assist in building |
11eacd16 AM |
155 | Vservers and SysV initscripts which start and stop Vservers and |
156 | related tools. | |
fc8ba798 | 157 | |
aa0485fb JR |
158 | %description -l pl.UTF-8 |
159 | Ten pakiet dostarcza składniki i szkielet do tworzenia wirtualnych | |
160 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
161 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
162 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
163 | w interakcję z innymi ani z usługami na głównym serwerze. | |
f9347a64 | 164 | |
aa0485fb | 165 | Wymaga to specjalnego jądra obsługującego nowe wywołania systemowe |
f9347a64 JB |
166 | new_s_context i set_ipv4root. |
167 | ||
aa0485fb | 168 | Ten pakiet zawiera narzędzia wymagane do komunikacji z jądrem z |
82a15eaa JR |
169 | włączonym mechanizmem Linux-Vserver, narzędzia pomagające przy |
170 | budowaniu Vserwerów i skrypty inicjalizujące SysV uruchamiające i | |
171 | zatrzymujące Vserwery oraz powiązane narzędzia. | |
fc8ba798 | 172 | |
d76eaeb7 JB |
173 | %package lib |
174 | Summary: Dynamic libraries for util-vserver | |
175 | Summary(pl.UTF-8): Biblioteki dynamiczne dla pakietu util-vserver | |
176 | Group: Libraries | |
177 | ||
178 | %description lib | |
179 | util-vserver provides the components and a framework to setup virtual | |
180 | servers. A virtual server runs inside a linux server. It is | |
181 | nevertheless highly independent. As such, you can run various services | |
182 | pith normal configuration. The various vservers can't interact with | |
183 | each other and can't interact with services in the main server. | |
184 | ||
185 | This package contains the shared libraries needed by all other | |
186 | 'util-vserver' subpackages. | |
187 | ||
188 | %description lib -l pl.UTF-8 | |
189 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
190 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
191 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
192 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
193 | w interakcję z innymi ani z usługami na głównym serwerze. | |
194 | ||
195 | Ten pakiet zawiera biblioteki współdzielone wymagane przez wszystkie | |
196 | podpakiety util-vserver. | |
197 | ||
421cacb8 | 198 | %package devel |
b2c6ab86 | 199 | Summary: Development files for Linux vserver libraries |
33f71e01 | 200 | Summary(pl.UTF-8): Pliki programistyczne dla bibliotek linuksowego vserwera |
28a38c7c | 201 | Group: Development/Libraries |
33ef531a | 202 | Requires: %{name}-lib = %{version}-%{release} |
421cacb8 AM |
203 | |
204 | %description devel | |
b2c6ab86 JB |
205 | This package contains the development files necessary for developing |
206 | programs which use vserver library. | |
421cacb8 | 207 | |
aa0485fb | 208 | %description devel -l pl.UTF-8 |
b2c6ab86 | 209 | Ten pakiet zawiera pliki programistyczne konieczne do rozwijania |
aa0485fb | 210 | programów używających biblioteki vserver. |
421cacb8 AM |
211 | |
212 | %package static | |
28a38c7c | 213 | Summary: Static vserver library |
33f71e01 | 214 | Summary(pl.UTF-8): Biblioteka statyczna vservera |
28a38c7c | 215 | Group: Development/Libraries |
33ef531a | 216 | Requires: %{name}-devel = %{version}-%{release} |
421cacb8 AM |
217 | |
218 | %description static | |
b2c6ab86 | 219 | This package contains the static version of vserver library. |
421cacb8 | 220 | |
aa0485fb JR |
221 | %description static -l pl.UTF-8 |
222 | Ten pakiet zawiera statyczną wersję biblioteki vservera. | |
421cacb8 | 223 | |
9f81736b JR |
224 | %package legacy |
225 | Summary: Legacy utilities for util-vserver | |
33f71e01 | 226 | Summary(pl.UTF-8): Stare narzędzia dla util-vserver |
9f81736b | 227 | Group: Applications/System |
7a93d1d4 | 228 | Requires(post,preun): /sbin/chkconfig |
33ef531a | 229 | Requires: %{name} = %{version}-%{release} |
7a93d1d4 | 230 | Requires: rc-scripts |
9f81736b JR |
231 | |
232 | %description legacy | |
233 | util-vserver provides the components and a framework to setup virtual | |
234 | servers. A virtual server runs inside a linux server. It is | |
235 | nevertheless highly independent. As such, you can run various services | |
236 | with normal configuration. The various vservers can't interact with | |
237 | each other and can't interact with services in the main server. | |
238 | ||
7a93d1d4 | 239 | This package contains the tools which are needed to work with Vservers |
9f81736b JR |
240 | having an old-style configuration. |
241 | ||
aa0485fb JR |
242 | %description legacy -l pl.UTF-8 |
243 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
244 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
245 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
246 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
247 | w interakcję z innymi ani z usługami na głównym serwerze. | |
7a93d1d4 | 248 | |
aa0485fb JR |
249 | Ten pakiet zawiera narzędzia potrzebne do pracy z Vserwerami mającymi |
250 | konfigurację w starym stylu. | |
7a93d1d4 | 251 | |
11eacd16 AM |
252 | %package -n python-util-vserver |
253 | Summary: Python interface to libutil-vserver library | |
254 | Summary(pl.UTF-8): Pythonowy interfejs do biblioteki libutil-vserver | |
255 | License: LGPL v2.1+ | |
256 | Group: Libraries/Python | |
257 | ||
258 | %description -n python-util-vserver | |
259 | Python interface to libutil-vserver library. | |
260 | ||
261 | %description -n python-util-vserver -l pl.UTF-8 | |
262 | Pythonowy interfejs do biblioteki libutil-vserver. | |
263 | ||
a94c4947 | 264 | %package -n vserver-distro-alpine |
265 | Summary: VServer build template for Alpine Linux | |
266 | Summary(pl.UTF-8): Szablon budowania VServerów dla dystrybucji Alpine Linux | |
d765f9b1 | 267 | Group: Applications/System |
33ef531a | 268 | Requires: %{name} = %{version}-%{release} |
d765f9b1 | 269 | |
a94c4947 | 270 | %description -n vserver-distro-alpine |
271 | VServer build template for Alpine Linux. | |
d765f9b1 | 272 | |
a94c4947 | 273 | %description -n vserver-distro-alpine -l pl.UTF-8 |
274 | Szablon budowania VServerów dla dystrybucji Alpine Linux. | |
d765f9b1 | 275 | |
d76eaeb7 | 276 | %package -n vserver-distro-centos |
d765f9b1 JB |
277 | Summary: VServer build template for CentOS |
278 | Summary(pl.UTF-8): Szablon budowania VServerów dla dystrybucji CentOS | |
d76eaeb7 | 279 | Group: Applications/System |
33ef531a ER |
280 | Requires: %{name} = %{version}-%{release} |
281 | Requires: vserver-distro-redhat = %{version}-%{release} | |
d76eaeb7 JB |
282 | Requires: yum |
283 | ||
284 | %description -n vserver-distro-centos | |
d765f9b1 | 285 | VServer build template for CentOS 4.2 and 5. |
d76eaeb7 JB |
286 | |
287 | %description -n vserver-distro-centos -l pl.UTF-8 | |
d765f9b1 | 288 | Szablon budowania VServerów dla dystrybucji CentOS 4.2 i 5. |
d76eaeb7 | 289 | |
a94c4947 | 290 | %package -n vserver-distro-debian |
076e0301 | 291 | Summary: VServer build templates for Debian and Ubuntu |
292 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Debian i Ubuntu | |
a94c4947 | 293 | Group: Applications/System |
33ef531a | 294 | Requires: %{name} = %{version}-%{release} |
076e0301 | 295 | Requires: debootstrap |
a94c4947 | 296 | Requires: dpkg |
e0b99d3d | 297 | Provides: vserver-distro-ubuntu |
076e0301 | 298 | Obsoletes: vserver-distro-ubuntu |
a94c4947 | 299 | |
300 | %description -n vserver-distro-debian | |
e0b99d3d | 301 | VServer build templates for Debian and Ubuntu. |
a94c4947 | 302 | |
303 | %description -n vserver-distro-debian -l pl.UTF-8 | |
e0b99d3d | 304 | Szablony do tworzenia VServerów dla dystrybucji Debian i Ubuntu. |
a94c4947 | 305 | |
d76eaeb7 | 306 | %package -n vserver-distro-fedora |
d765f9b1 JB |
307 | Summary: VServer build templates for Fedora |
308 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Fedora | |
d76eaeb7 | 309 | Group: Applications/System |
33ef531a | 310 | Requires: %{name} = %{version}-%{release} |
d76eaeb7 JB |
311 | Requires: binutils |
312 | Requires: e2fsprogs | |
313 | Requires: rpm | |
33ef531a | 314 | Requires: vserver-distro-redhat = %{version}-%{release} |
622053c4 | 315 | Requires: wget |
29afce9a | 316 | Requires: yum |
d76eaeb7 JB |
317 | |
318 | %description -n vserver-distro-fedora | |
d765f9b1 | 319 | VServer build templates for Fedora Core 1,2,3,4,5,6 and Fedora 7. |
d76eaeb7 JB |
320 | |
321 | %description -n vserver-distro-fedora -l pl.UTF-8 | |
d765f9b1 JB |
322 | Szablony do tworzenia VServerów dla dystrybucji Fedora Core |
323 | 1,2,3,4,5,6 oraz Fedora 7. | |
d76eaeb7 JB |
324 | |
325 | %package -n vserver-distro-gentoo | |
326 | Summary: VServer build template for Gentoo | |
d765f9b1 | 327 | Summary(pl.UTF-8): Szablon budowania VServerów dla Gentoo |
d76eaeb7 | 328 | Group: Applications/System |
33ef531a | 329 | Requires: %{name} = %{version}-%{release} |
d76eaeb7 JB |
330 | |
331 | %description -n vserver-distro-gentoo | |
332 | VServer build template for Gentoo. | |
333 | ||
334 | %description -n vserver-distro-gentoo -l pl.UTF-8 | |
d765f9b1 | 335 | Szablon budowania VServerów dla Gentoo. |
d76eaeb7 | 336 | |
e84dd6c9 JR |
337 | %package -n vserver-distro-pld |
338 | Summary: VServer build templates for PLD Linux | |
339 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji PLD Linux | |
340 | Group: Applications/System | |
33ef531a | 341 | Requires: %{name} = %{version}-%{release} |
e84dd6c9 JR |
342 | Requires: /etc/pld-release |
343 | Requires: poldek >= 0.30 | |
344 | ||
345 | %description -n vserver-distro-pld | |
346 | VServer build templates for PLD Linux. | |
347 | ||
348 | %description -n vserver-distro-pld -l pl.UTF-8 | |
349 | Szablony do tworzenia VServerów dla dystrybucji PLD Linux. | |
350 | ||
d76eaeb7 JB |
351 | %package -n vserver-distro-redhat |
352 | Summary: VServer build template for Red Hat Linux 9 | |
353 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9 | |
354 | Group: Applications/System | |
33ef531a | 355 | Requires: %{name} = %{version}-%{release} |
d76eaeb7 JB |
356 | Requires: binutils |
357 | Requires: e2fsprogs | |
358 | Requires: rpm | |
d76eaeb7 JB |
359 | Requires: wget |
360 | ||
361 | %description -n vserver-distro-redhat | |
362 | VServer build template for RedHat Linux 9. | |
363 | ||
364 | %description -n vserver-distro-redhat -l pl.UTF-8 | |
365 | Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9. | |
366 | ||
367 | %package -n vserver-distro-suse | |
368 | Summary: VServer build template for SuSE 9.1 | |
369 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1 | |
370 | Group: Applications/System | |
33ef531a | 371 | Requires: %{name} = %{version}-%{release} |
d76eaeb7 JB |
372 | Requires: binutils |
373 | Requires: e2fsprogs | |
374 | Requires: rpm | |
d76eaeb7 JB |
375 | Requires: wget |
376 | ||
377 | %description -n vserver-distro-suse | |
378 | VServer build template for SuSE Linux 9.1. | |
379 | ||
380 | %description -n vserver-distro-suse -l pl.UTF-8 | |
381 | Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1. | |
382 | ||
217d218f AM |
383 | %package -n vserver-distro-scientificlinux |
384 | Summary: VServer build template for Scientific Linux | |
385 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji Scientific Linux | |
386 | Group: Applications/System | |
387 | Requires: %{name} = %{version}-%{release} | |
388 | Requires: binutils | |
389 | Requires: e2fsprogs | |
390 | Requires: rpm | |
391 | Requires: wget | |
392 | Requires: yum | |
393 | ||
394 | %description -n vserver-distro-scientificlinux | |
395 | VServer build template for Scientific Linux. | |
396 | ||
397 | %description -n vserver-distro-scientificlinux -l pl.UTF-8 | |
398 | Szablon do tworzenia VServerów dla dystrybucji Scientific Linux. | |
399 | ||
1e07a54b | 400 | %package -n vserver-distro-tld |
401 | Summary: VServer build templates for Titanium Linux Distribution | |
402 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Titanium Linux | |
403 | Group: Applications/System | |
404 | Requires: %{name} = %{version}-%{release} | |
1e07a54b | 405 | Requires: poldek >= 0.30 |
406 | ||
407 | %description -n vserver-distro-tld | |
408 | VServer build templates for Titanium Linux Distribution. | |
409 | ||
410 | %description -n vserver-distro-tld -l pl.UTF-8 | |
411 | Szablony do tworzenia VServerów dla dystrybucji Titanium Linux. | |
412 | ||
c4036d6e | 413 | %prep |
2f75efb5 | 414 | %setup -q -n %{name}-%{version}-%{snap} -a11 |
b7fb7f75 | 415 | %patch0 -p1 |
9f81736b | 416 | %patch1 -p1 |
54c149ac | 417 | %patch2 -p1 |
1e07a54b | 418 | %patch3 -p1 |
33754dff | 419 | %patch4 -p1 |
1e14ade8 | 420 | %patch5 -p1 |
f16cd315 | 421 | %patch6 -p1 |
1cfbc735 | 422 | %patch7 -p1 |
33beda22 | 423 | %patch8 -p1 |
616759c3 | 424 | %patch9 -p1 |
204e5db3 | 425 | %{?with_no_dynamic_context:%patch10 -p1} |
3a527d22 | 426 | %patch11 -p1 |
b3024b38 | 427 | %patch12 -p1 |
6d43167c | 428 | %patch13 -p1 |
a41118d0 | 429 | %patch14 -p1 |
e7ac6dd1 | 430 | %patch15 -p1 |
761afb0b | 431 | %patch16 -p1 |
0edd7eb1 | 432 | %patch17 -p1 |
4bfa49a8 | 433 | %patch18 -p1 |
4b9dfd9e | 434 | %patch19 -p1 |
999bf1a1 | 435 | %patch21 -p1 |
94a3845f | 436 | %patch22 -p1 |
21a3b8ba | 437 | %patch24 -p1 |
27dc70bd | 438 | %patch25 -p1 |
f6c359be | 439 | %patch26 -p1 |
c4036d6e | 440 | |
8f413f5a | 441 | install %{SOURCE9} package-management.txt |
47f9cd5f | 442 | |
c4036d6e | 443 | %build |
ac7f10fe AM |
444 | unset LD_SYMBOLIC_FUNCTIONS || : |
445 | ||
b6503b78 | 446 | %if %{with dietlibc} |
fcf60dd0 | 447 | CFLAGS="%{rpmcflags} -D__GLIBC__ -D__KERNEL_STRICT_NAMES=1 -U__STRICT_ANSI__" |
b6503b78 | 448 | %endif |
1e14ade8 | 449 | %{__libtoolize} |
84567ffc JR |
450 | %{__aclocal} -I m4 |
451 | %{__automake} | |
31c082fa | 452 | %{__autoconf} |
9f81736b JR |
453 | %configure \ |
454 | --with-initrddir=/etc/rc.d/init.d \ | |
455 | --enable-release \ | |
6f41121b | 456 | --enable-apis=NOLEGACY \ |
893c90d5 | 457 | --with-initscripts=sysv \ |
458 | --%{?with_dietlibc:en}%{!?with_dietlibc:dis}able-dietlibc \ | |
7890624b | 459 | FSCK=/sbin/fsck \ |
460 | IONICE=%{_usrbin}/ionice \ | |
2151e92d | 461 | IP=/sbin/ip \ |
c993b99d | 462 | IPTABLES=%{_usrsbin}/iptables \ |
7890624b | 463 | MKTEMP=/bin/mktemp \ |
e8b52e06 | 464 | MODPROBE=/sbin/modprobe \ |
7890624b | 465 | MOUNT=/bin/mount \ |
e8b52e06 | 466 | NAMEIF=/sbin/nameif \ |
7890624b | 467 | PS=/bin/ps \ |
468 | RESTORE=/sbin/restore \ | |
e8b52e06 | 469 | RMMOD=/sbin/rmmod \ |
7890624b | 470 | RSYNC=%{_usrbin}/rsync \ |
471 | STRACE=%{_usrbin}/strace \ | |
472 | UMOUNT=/bin/umount \ | |
e8b52e06 | 473 | VCONFIG=/sbin/vconfig \ |
c993b99d | 474 | WGET=%{_usrbin}/wget \ |
7890624b | 475 | # end |
c4036d6e | 476 | |
9f81736b | 477 | %{__make} all |
9a45d9d7 | 478 | %{?with_doc:%{__make} doc} |
c4036d6e | 479 | |
22ee1f7a | 480 | %{__make} -C vproc-%{vproc_version} \ |
e128cb8a ER |
481 | CC="%{__cc}" \ |
482 | CFLAGS="%{rpmcflags}" | |
483 | ||
c4036d6e AM |
484 | %install |
485 | rm -rf $RPM_BUILD_ROOT | |
49e22b19 | 486 | install -d $RPM_BUILD_ROOT{/vservers/.pkg,/etc/{sysconfig,rc.d/init.d,cron.d}} \ |
90766857 | 487 | $RPM_BUILD_ROOT%{_sysconfdir}/vservices \ |
7c944e34 JR |
488 | $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.defaults/{apps/vdevmap,cgroup} \ |
489 | $RPM_BUILD_ROOT/usr/lib/tmpfiles.d | |
27ad8b1b | 490 | |
e8d85bc2 | 491 | %{__make} -j1 install install-distribution \ |
c4036d6e AM |
492 | DESTDIR=$RPM_BUILD_ROOT |
493 | ||
480949d3 AM |
494 | # our libcgroup uses per subsystem mount |
495 | touch $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.defaults/cgroup/per-ss | |
496 | ||
47f9cd5f JR |
497 | chmod -R +rX $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/* |
498 | ||
9f81736b | 499 | for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do |
622053c4 | 500 | s=$(basename $i | sed s/v_//) |
c993b99d | 501 | cat >$RPM_BUILD_ROOT%{_sysconfdir}/vservices/$s << EOF |
9f81736b JR |
502 | # IP addresses/interfaces to bound $s service to |
503 | #IP=10.0.0.1 | |
504 | #IP=eth0 | |
505 | EOF | |
506 | done | |
c4036d6e | 507 | |
c993b99d | 508 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE1} > \ |
a91f83e5 | 509 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide |
c993b99d | 510 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE2} > \ |
f16cd315 | 511 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers |
c993b99d | 512 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE3} > \ |
a91f83e5 | 513 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy |
c993b99d | 514 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE4} > \ |
a91f83e5 | 515 | $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr |
49e22b19 JR |
516 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE15} > \ |
517 | $RPM_BUILD_ROOT/etc/rc.d/init.d/util-vserver | |
f16cd315 JR |
518 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE5} > \ |
519 | $RPM_BUILD_ROOT/etc/sysconfig/vservers | |
fd71193c JR |
520 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' gentoo/bash-wrapper > \ |
521 | $RPM_BUILD_ROOT%{_libdir}/%{name}/bash-wrapper | |
a91f83e5 | 522 | |
9f81736b | 523 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy |
536c7360 | 524 | |
e5f7ee9a JR |
525 | install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vrootdevices |
526 | install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/vrootdevices | |
761afb0b ER |
527 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld |
528 | install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld/initpost | |
1e07a54b | 529 | install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/tld/initpost |
761afb0b ER |
530 | ln -s ../pld/initpost $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/initpost |
531 | ln -s ../pld/initpost $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/initpost | |
22ee1f7a | 532 | install vproc-%{vproc_version}/vproc $RPM_BUILD_ROOT%{_sbindir} |
cf71c7e1 | 533 | sed -e 's,/usr/lib,%{_libdir},' %{SOURCE12} > $RPM_BUILD_ROOT%{_libdir}/%{name}/vhashify.cron |
04c2a702 | 534 | chmod +x $RPM_BUILD_ROOT%{_libdir}/%{name}/vhashify.cron |
4961db11 PG |
535 | |
536 | cat > $RPM_BUILD_ROOT/etc/cron.d/vservers << EOF | |
537 | 02 2 * * 0 root %{_libdir}/%{name}/vhashify.cron | |
538 | EOF | |
e5f7ee9a | 539 | |
468087c5 | 540 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/pubkeys |
541 | cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/pubkeys/pld-ac.asc | |
542 | ||
761afb0b | 543 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/pubkeys |
468087c5 | 544 | cp -a %{SOURCE14} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/pubkeys/pld-th.asc |
b5d3f919 | 545 | |
7c944e34 JR |
546 | install %{SOURCE16} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf |
547 | ||
1cbfb76d | 548 | # set arch for pld-ac in pld.conf |
d4b06dc0 | 549 | %ifarch i586 i686 ppc sparc alpha athlon |
22ee1f7a | 550 | %define ftp_arch %{_target_cpu} |
1cbfb76d | 551 | %endif |
552 | %ifarch %{x8664} | |
22ee1f7a | 553 | %define ftp_arch amd64 |
1cbfb76d | 554 | %endif |
d2c9e889 | 555 | %ifarch i486 |
22ee1f7a | 556 | %define ftp_arch i386 |
d2c9e889 | 557 | %endif |
d4b06dc0 | 558 | %ifarch pentium2 pentium3 pentium4 |
22ee1f7a | 559 | %define ftp_arch i686 |
d4b06dc0 | 560 | %endif |
1cbfb76d | 561 | %ifarch sparcv9 sparc64 |
22ee1f7a | 562 | %define ftp_arch sparc |
1cbfb76d | 563 | %endif |
22ee1f7a | 564 | %{__sed} -i -e 's|%%ARCH%%|%{ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d/pld.conf |
1cbfb76d | 565 | |
566 | # set arch for pld-th in pld.conf | |
761afb0b | 567 | %ifarch i486 i686 ppc sparc alpha athlon |
22ee1f7a | 568 | %define ftp_arch %{_target_cpu} |
761afb0b | 569 | %endif |
eed0f0e7 | 570 | %ifarch %{x8664} |
22ee1f7a | 571 | %define ftp_arch x86_64 |
761afb0b ER |
572 | %endif |
573 | %ifarch i586 | |
22ee1f7a | 574 | %define ftp_arch i486 |
761afb0b ER |
575 | %endif |
576 | %ifarch pentium2 pentium3 pentium4 | |
22ee1f7a | 577 | %define ftp_arch i686 |
761afb0b ER |
578 | %endif |
579 | %ifarch sparcv9 sparc64 | |
22ee1f7a | 580 | %define ftp_arch sparc |
761afb0b | 581 | %endif |
22ee1f7a | 582 | %{__sed} -i -e 's|%%ARCH%%|%{ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d/pld.conf |
1cbfb76d | 583 | |
1e07a54b | 584 | # set arch for tld in tld.conf |
585 | %ifarch i586 i686 ppc sparc alpha | |
22ee1f7a | 586 | %define ftp_arch %{_target_cpu} |
1cbfb76d | 587 | %endif |
588 | %ifarch %{x8664} | |
22ee1f7a | 589 | %define ftp_arch x86_64 |
1cbfb76d | 590 | %endif |
d4b06dc0 | 591 | %ifarch athlon pentium2 pentium3 pentium4 |
22ee1f7a | 592 | %define ftp_arch i686 |
1cbfb76d | 593 | %endif |
1e07a54b | 594 | %{__sed} -i -e 's|%%ARCH%%|%{ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/tld/poldek/repos.d/tld.conf |
761afb0b | 595 | |
6a628ec2 AM |
596 | # current debootstrap link |
597 | echo "http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.10_all.deb" \ | |
598 | > $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults/debootstrap.uri | |
599 | ||
0edd7eb1 | 600 | install -d $RPM_BUILD_ROOT/var/cache/vservers/poldek |
2d6d0c17 | 601 | |
622053c4 | 602 | # cleanups |
761afb0b | 603 | rm -rf $RPM_BUILD_ROOT/dev |
622053c4 ER |
604 | rm -rf $RPM_BUILD_ROOT%{py_sitedir}/_libvserver.la |
605 | # we have our own initscript which does the same | |
6d43167c | 606 | rm -f $RPM_BUILD_ROOT%{_libdir}/util-vserver/vserver-wrapper |
467f3ad9 | 607 | rm -f $RPM_BUILD_ROOT%{_libdir}/util-vserver/vserver-init.functions |
49e22b19 | 608 | rm -f $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default |
6d43167c | 609 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/vservers.conf |
2c4297d9 | 610 | |
421cacb8 AM |
611 | %clean |
612 | rm -rf $RPM_BUILD_ROOT | |
c4036d6e | 613 | |
82a15eaa JR |
614 | %triggerun -- util-vserver-init |
615 | # Prevent preun from util-vserver-init from working | |
616 | chmod a-x /etc/rc.d/init.d/vprocunhide | |
617 | chmod a-x /etc/rc.d/init.d/vrootdevices | |
618 | chmod a-x /etc/rc.d/init.d/vservers | |
619 | ||
90766857 | 620 | %triggerpostun -- util-vserver-init |
807d69d1 | 621 | # Restore what triggerun removed |
82a15eaa JR |
622 | chmod ug+x /etc/rc.d/init.d/vprocunhide |
623 | chmod ug+x /etc/rc.d/init.d/vrootdevices | |
624 | chmod ug+x /etc/rc.d/init.d/vservers | |
625 | /sbin/chkconfig --add vrootdevices | |
626 | /sbin/chkconfig --add vprocunhide | |
627 | /sbin/chkconfig --add vservers | |
5bc4d3d7 ER |
628 | if [ -f /etc/sysconfig/vrootdevices.rpmsave ]; then |
629 | cp -f /etc/sysconfig/vrootdevices{,.rpmnew} | |
630 | mv -f /etc/sysconfig/vrootdevices{.rpmsave,} | |
87423c3f | 631 | fi |
5bc4d3d7 ER |
632 | if [ -f /etc/sysconfig/vservers.rpmsave ]; then |
633 | cp -f /etc/sysconfig/vservers{,.rpmnew} | |
634 | mv -f /etc/sysconfig/vservers{.rpmsave,} | |
87423c3f | 635 | fi |
82a15eaa | 636 | |
9f81736b JR |
637 | %post |
638 | %{_sbindir}/setattr --barrier /vservers || : | |
7ccbf05b | 639 | /sbin/chkconfig --add util-vserver |
3996b68e | 640 | /sbin/chkconfig --add vrootdevices |
9f81736b | 641 | /sbin/chkconfig --add vprocunhide |
09abf0a6 | 642 | /sbin/chkconfig --add vservers |
82a15eaa JR |
643 | if [ ! -f /var/lock/subsys/util-vserver ]; then |
644 | echo "Type \"/sbin/service util-vserver start\" to set up vshelper path" 1>&2 | |
645 | fi | |
3996b68e | 646 | if [ ! -f /var/lock/subsys/vrootdevices ]; then |
2d9f659e | 647 | echo "Type \"/sbin/service vrootdevices start\" to assign virtual root devices" 1>&2 |
3996b68e | 648 | fi |
26dd3d85 | 649 | if [ ! -f /var/lock/subsys/vprocunhide ]; then |
2d9f659e | 650 | echo "Type \"/sbin/service vprocunhide start\" to set /proc visibility for vservers" 1>&2 |
26dd3d85 | 651 | fi |
09abf0a6 | 652 | if [ ! -f /var/lock/subsys/vservers ]; then |
2d9f659e | 653 | echo "Type \"/sbin/service vservers start\" to start vservers" 1>&2 |
26dd3d85 | 654 | fi |
9f81736b | 655 | |
82a15eaa | 656 | %preun |
9f81736b | 657 | if [ "$1" = "0" ]; then |
82a15eaa | 658 | %service util-vserver stop |
2d9f659e ER |
659 | %service vservers stop |
660 | %service vprocunhide stop | |
661 | %service vrootdevices stop | |
82a15eaa | 662 | /sbin/chkconfig --del util-vserver |
09abf0a6 | 663 | /sbin/chkconfig --del vservers |
26dd3d85 | 664 | /sbin/chkconfig --del vprocunhide |
3996b68e | 665 | /sbin/chkconfig --del vrootdevices |
9f81736b JR |
666 | fi |
667 | ||
82a15eaa JR |
668 | %post lib -p /sbin/ldconfig |
669 | %postun lib -p /sbin/ldconfig | |
670 | ||
9f81736b JR |
671 | %post legacy |
672 | /sbin/chkconfig --add rebootmgr | |
673 | /sbin/chkconfig --add vservers-legacy | |
26dd3d85 | 674 | if [ ! -f /var/lock/subsys/rebootmgr ] ; then |
2d9f659e | 675 | echo "Type \"/sbin/service rebootmgr start\" to start reboot manager for legacy vservers" 1>&2 |
26dd3d85 ER |
676 | fi |
677 | if [ ! -f /var/lock/subsys/vservers-legacy ] ; then | |
2d9f659e | 678 | echo "Type \"/sbin/service vservers-legacy start\" to start legacy vservers" 1>&2 |
26dd3d85 | 679 | fi |
9f81736b JR |
680 | |
681 | %preun legacy | |
682 | if [ "$1" = "0" ]; then | |
2d9f659e ER |
683 | %service rebootmgr stop |
684 | %service vservers-legacy stop | |
9f81736b JR |
685 | /sbin/chkconfig --del rebootmgr |
686 | /sbin/chkconfig --del vservers-legacy | |
687 | fi | |
b2c6ab86 | 688 | |
e84dd6c9 JR |
689 | %triggerpostun -n vserver-distro-pld -- util-vserver-build < 0.30.215-1.1 |
690 | for D in ac th ti; do | |
691 | P=%{_sysconfdir}/vservers/.distributions/pld-$D/poldek | |
692 | ||
693 | if [ -f $P/pld-source.conf.rpmsave ]; then | |
694 | cp -f $P/repos.d/pld.conf{,.rpmnew} | |
695 | mv -f $P/pld-source.conf.rpmsave $P/repos.d/pld.conf | |
696 | fi | |
697 | done | |
698 | exit 0 | |
699 | ||
c4036d6e AM |
700 | %files |
701 | %defattr(644,root,root,755) | |
befcea8e | 702 | %doc AUTHORS NEWS THANKS doc/intro.txt |
b77e6495 | 703 | %doc package-management.txt |
ea52b140 | 704 | %{?with_doc:%doc doc/*.html} |
82a15eaa JR |
705 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vrootdevices |
706 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers | |
707 | %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/vservers | |
708 | %attr(754,root,root) /etc/rc.d/init.d/vprocunhide | |
709 | %attr(754,root,root) /etc/rc.d/init.d/vrootdevices | |
710 | %attr(754,root,root) /etc/rc.d/init.d/util-vserver | |
711 | %attr(754,root,root) /etc/rc.d/init.d/vservers | |
b7fb7f75 | 712 | %dir %{_sysconfdir}/vservers |
9f81736b JR |
713 | %dir %{_sysconfdir}/vservers/.defaults |
714 | %dir %{_sysconfdir}/vservers/.defaults/apps | |
49e22b19 | 715 | %dir %{_sysconfdir}/vservers/.defaults/apps/vdevmap |
4f782c13 JR |
716 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify |
717 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash | |
480949d3 AM |
718 | %dir %{_sysconfdir}/vservers/.defaults/cgroup |
719 | %{_sysconfdir}/vservers/.defaults/cgroup/per-ss | |
9f81736b | 720 | %dir %{_sysconfdir}/vservers/.defaults/files |
047cae91 | 721 | %{_sysconfdir}/vservers/.defaults/vdirbase |
f2524bfd | 722 | %{_sysconfdir}/vservers/.defaults/cachebase |
047cae91 | 723 | %{_sysconfdir}/vservers/.defaults/run.rev |
4f782c13 JR |
724 | %dir %{_sysconfdir}/vservers/.distributions |
725 | %dir %{_sysconfdir}/vservers/.distributions/.common | |
726 | %dir %{_sysconfdir}/vservers/.distributions/.common/pubkeys | |
9f81736b | 727 | /sbin/vshelper |
fc8ba798 JR |
728 | %attr(755,root,root) %{_sbindir}/chbind |
729 | %attr(755,root,root) %{_sbindir}/chcontext | |
730 | %attr(755,root,root) %{_sbindir}/chxid | |
9f81736b | 731 | %attr(755,root,root) %{_sbindir}/exec-cd |
fc8ba798 | 732 | %attr(755,root,root) %{_sbindir}/lsxid |
328586ba | 733 | %attr(755,root,root) %{_sbindir}/naddress |
734 | %attr(755,root,root) %{_sbindir}/nattribute | |
735 | %attr(755,root,root) %{_sbindir}/ncontext | |
fc8ba798 JR |
736 | %attr(755,root,root) %{_sbindir}/reducecap |
737 | %attr(755,root,root) %{_sbindir}/setattr | |
738 | %attr(755,root,root) %{_sbindir}/showattr | |
4f782c13 | 739 | %attr(755,root,root) %{_sbindir}/vapt-get |
fc8ba798 JR |
740 | %attr(755,root,root) %{_sbindir}/vattribute |
741 | %attr(755,root,root) %{_sbindir}/vcontext | |
4f782c13 | 742 | %attr(755,root,root) %{_sbindir}/vdevmap |
fc8ba798 | 743 | %attr(755,root,root) %{_sbindir}/vdlimit |
4f782c13 | 744 | %attr(755,root,root) %{_sbindir}/vdu |
fc8ba798 JR |
745 | %attr(755,root,root) %{_sbindir}/vkill |
746 | %attr(755,root,root) %{_sbindir}/vlimit | |
467f3ad9 | 747 | %attr(755,root,root) %{_sbindir}/vmemctrl |
748 | %attr(755,root,root) %{_sbindir}/vmount | |
4f782c13 JR |
749 | %attr(755,root,root) %{_sbindir}/vnamespace |
750 | %attr(755,root,root) %{_sbindir}/vpoldek | |
e128cb8a | 751 | %attr(755,root,root) %{_sbindir}/vproc |
9f81736b JR |
752 | %attr(755,root,root) %{_sbindir}/vps |
753 | %attr(755,root,root) %{_sbindir}/vpstree | |
4f782c13 | 754 | %attr(755,root,root) %{_sbindir}/vrpm |
fc8ba798 JR |
755 | %attr(755,root,root) %{_sbindir}/vrsetup |
756 | %attr(755,root,root) %{_sbindir}/vsched | |
9f81736b | 757 | %attr(755,root,root) %{_sbindir}/vserver |
fc8ba798 | 758 | %attr(755,root,root) %{_sbindir}/vserver-info |
9f81736b JR |
759 | %attr(755,root,root) %{_sbindir}/vserver-stat |
760 | %attr(755,root,root) %{_sbindir}/vsomething | |
4f782c13 | 761 | %attr(755,root,root) %{_sbindir}/vspace |
67457f13 | 762 | %attr(755,root,root) %{_sbindir}/vtag |
9f81736b | 763 | %attr(755,root,root) %{_sbindir}/vtop |
fc8ba798 | 764 | %attr(755,root,root) %{_sbindir}/vuname |
e014ae5d | 765 | %attr(755,root,root) %{_sbindir}/vurpm |
31c082fa | 766 | %attr(755,root,root) %{_sbindir}/vwait |
4f782c13 | 767 | %attr(755,root,root) %{_sbindir}/vyum |
b2c6ab86 | 768 | %dir %{_libdir}/%{name} |
b7fb7f75 | 769 | %dir %{_libdir}/%{name}/defaults |
4f782c13 JR |
770 | %{_libdir}/%{name}/defaults/fstab |
771 | %{_libdir}/%{name}/defaults/debootstrap.* | |
772 | %{_libdir}/%{name}/defaults/vunify-exclude | |
6a628ec2 AM |
773 | %{_libdir}/%{name}/defaults/context.start |
774 | %{_libdir}/%{name}/defaults/environment | |
775 | %{_libdir}/%{name}/defaults/h2ext.desc | |
776 | %{_libdir}/%{name}/defaults/mtab | |
777 | %{_libdir}/%{name}/defaults/vprocunhide-files | |
4f782c13 JR |
778 | %dir %{_libdir}/%{name}/distributions |
779 | %{_libdir}/%{name}/distributions/defaults | |
780 | %dir %{_libdir}/%{name}/distributions/template | |
781 | %attr(755,root,root) %{_libdir}/%{name}/distributions/template/initpost | |
782 | %attr(755,root,root) %{_libdir}/%{name}/distributions/template/initpre | |
783 | %dir %{_libdir}/%{name}/distributions/redhat | |
784 | %attr(755,root,root) %{_libdir}/%{name}/distributions/redhat/initpost | |
785 | %attr(755,root,root) %{_libdir}/%{name}/distributions/redhat/initpre | |
786 | %attr(755,root,root) %{_libdir}/%{name}/distributions/redhat/rc.sysinit | |
787 | %{_libdir}/%{name}/FEATURES.txt | |
788 | %{_libdir}/%{name}/util-vserver-vars | |
49e22b19 | 789 | %attr(755,root,root) %{_libdir}/%{name}/bash-wrapper |
b2c6ab86 | 790 | %attr(755,root,root) %{_libdir}/%{name}/capchroot |
b7fb7f75 | 791 | %attr(755,root,root) %{_libdir}/%{name}/chain-echo |
328586ba | 792 | %attr(755,root,root) %{_libdir}/%{name}/chbind-compat |
fc8ba798 | 793 | %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat |
4f782c13 | 794 | %attr(755,root,root) %{_libdir}/%{name}/check-unixfile |
31c082fa | 795 | %attr(755,root,root) %{_libdir}/%{name}/chroot-sh |
bc2ffe55 | 796 | %attr(755,root,root) %{_libdir}/%{name}/exec-remount |
b7fb7f75 | 797 | %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit |
b2c6ab86 JB |
798 | %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel |
799 | %attr(755,root,root) %{_libdir}/%{name}/filetime | |
b7fb7f75 | 800 | %{_libdir}/%{name}/functions |
67457f13 | 801 | %attr(755,root,root) %{_libdir}/%{name}/h2ext |
802 | %attr(755,root,root) %{_libdir}/%{name}/h2ext-worker | |
b7fb7f75 JR |
803 | %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive |
804 | %attr(755,root,root) %{_libdir}/%{name}/lockfile | |
805 | %attr(755,root,root) %{_libdir}/%{name}/mask2prefix | |
4f782c13 | 806 | %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt |
b2c6ab86 | 807 | %attr(755,root,root) %{_libdir}/%{name}/readlink |
4f782c13 | 808 | %attr(755,root,root) %{_libdir}/%{name}/rpm-fake* |
b7fb7f75 JR |
809 | %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo |
810 | %attr(755,root,root) %{_libdir}/%{name}/secure-mount | |
811 | %attr(755,root,root) %{_libdir}/%{name}/sigexec | |
812 | %attr(755,root,root) %{_libdir}/%{name}/start-vservers | |
467f3ad9 | 813 | %attr(755,root,root) %{_libdir}/%{name}/tunctl |
4f782c13 JR |
814 | %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker |
815 | %attr(755,root,root) %{_libdir}/%{name}/vclone | |
816 | %attr(755,root,root) %{_libdir}/%{name}/vcopy | |
817 | %attr(755,root,root) %{_libdir}/%{name}/vhashify | |
818 | %attr(755,root,root) %{_libdir}/%{name}/vhashify.cron | |
819 | %attr(755,root,root) %{_libdir}/%{name}/vpkg | |
820 | %attr(755,root,root) %{_libdir}/%{name}/vpoldek-worker | |
b7fb7f75 | 821 | %attr(755,root,root) %{_libdir}/%{name}/vprocunhide |
4f782c13 | 822 | %attr(755,root,root) %{_libdir}/%{name}/vrpm-* |
aaa9538c | 823 | %attr(755,root,root) %{_libdir}/%{name}/vserver-build |
e014ae5d | 824 | %attr(755,root,root) %{_libdir}/%{name}/vurpm-worker |
4f782c13 JR |
825 | %{_libdir}/%{name}/vserver-build.* |
826 | %{_libdir}/%{name}/vserver-setup.functions | |
827 | %{_libdir}/%{name}/vserver.* | |
b2c6ab86 | 828 | %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh |
b7fb7f75 JR |
829 | %attr(755,root,root) %{_libdir}/%{name}/vshelper |
830 | %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync | |
893c90d5 | 831 | %attr(755,root,root) %{_libdir}/%{name}/vsysctl |
82a15eaa | 832 | %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper |
4f782c13 JR |
833 | %attr(755,root,root) %{_libdir}/%{name}/vunify |
834 | %attr(755,root,root) %{_libdir}/%{name}/vyum-worker | |
fc8ba798 JR |
835 | %{_mandir}/man8/chbind.8* |
836 | %{_mandir}/man8/chcontext.8* | |
837 | %{_mandir}/man8/reducecap.8* | |
838 | %{_mandir}/man8/vps.8* | |
839 | %{_mandir}/man8/vpstree.8* | |
4f782c13 | 840 | %{_mandir}/man8/vserver-build.8* |
fc8ba798 JR |
841 | %{_mandir}/man8/vserver-stat.8* |
842 | %{_mandir}/man8/vserver.8* | |
843 | %{_mandir}/man8/vtop.8* | |
c993b99d | 844 | %attr(000,root,root) %dir /vservers |
2b3c93e4 | 845 | %dir /vservers/.pkg |
7c944e34 | 846 | /usr/lib/tmpfiles.d/%{name}.conf |
9f81736b JR |
847 | %dir %{_localstatedir}/run/vservers |
848 | %dir %{_localstatedir}/run/vservers.rev | |
849 | %dir %{_localstatedir}/run/vshelper | |
2d6d0c17 | 850 | %dir /var/cache/vservers |
0edd7eb1 | 851 | %dir /var/cache/vservers/poldek |
421cacb8 | 852 | |
d76eaeb7 JB |
853 | %files lib |
854 | %defattr(644,root,root,755) | |
761afb0b ER |
855 | %attr(755,root,root) %{_libdir}/libvserver.so.*.*.* |
856 | %attr(755,root,root) %ghost %{_libdir}/libvserver.so.0 | |
d76eaeb7 | 857 | |
421cacb8 AM |
858 | %files devel |
859 | %defattr(644,root,root,755) | |
ea52b140 | 860 | %{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html} |
761afb0b | 861 | %attr(755,root,root) %{_libdir}/libvserver.so |
b7fb7f75 | 862 | %{_libdir}/lib*.la |
33754dff | 863 | %{_includedir}/vserver*.h |
b7fb7f75 | 864 | %{_pkgconfigdir}/*.pc |
421cacb8 AM |
865 | |
866 | %files static | |
867 | %defattr(644,root,root,755) | |
868 | %{_libdir}/libvserver.a | |
9f81736b | 869 | |
d76eaeb7 JB |
870 | %files legacy |
871 | %defattr(644,root,root,755) | |
872 | %dir %{_sysconfdir}/vservices | |
873 | %{_sysconfdir}/vservices/* | |
874 | %dir %{_libdir}/%{name}/legacy | |
875 | %attr(755,root,root) %{_libdir}/%{name}/legacy/* | |
876 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy | |
877 | %attr(754,root,root) /etc/rc.d/init.d/v_* | |
878 | %attr(754,root,root) /etc/rc.d/init.d/rebootmgr | |
879 | %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy | |
880 | %attr(755,root,root) %{_sbindir}/vserver-copy | |
881 | %{_mandir}/man8/distrib-info.8* | |
882 | %{_mandir}/man8/rebootmgr.8* | |
883 | %{_mandir}/man8/vserver-copy.8* | |
884 | ||
11eacd16 AM |
885 | %files -n python-util-vserver |
886 | %defattr(644,root,root,755) | |
887 | %attr(755,root,root) %{py_sitedir}/_libvserver.so | |
8524db8a | 888 | %{py_sitedir}/libvserver.py |
11eacd16 | 889 | |
a94c4947 | 890 | %files -n vserver-distro-alpine |
891 | %defattr(644,root,root,755) | |
892 | %dir %{_libdir}/%{name}/distributions/alpine | |
893 | %attr(755,root,root) %{_libdir}/%{name}/distributions/alpine/initpost | |
894 | %attr(755,root,root) %{_libdir}/%{name}/distributions/alpine/initpre | |
895 | ||
d76eaeb7 JB |
896 | %files -n vserver-distro-centos |
897 | %defattr(644,root,root,755) | |
898 | %{_libdir}/util-vserver/distributions/centos* | |
899 | ||
d765f9b1 JB |
900 | %files -n vserver-distro-debian |
901 | %defattr(644,root,root,755) | |
de976288 | 902 | %dir %{_libdir}/%{name}/distributions/debian |
de976288 | 903 | %attr(755,root,root) %{_libdir}/%{name}/distributions/debian/initpost |
6d7f9a61 | 904 | %{_libdir}/%{name}/distributions/etch |
d765f9b1 JB |
905 | %{_libdir}/%{name}/distributions/lenny |
906 | %{_libdir}/%{name}/distributions/sid | |
8524db8a | 907 | %{_libdir}/%{name}/distributions/squeeze |
10ba43de | 908 | %{_libdir}/%{name}/distributions/wheezy |
d765f9b1 | 909 | |
0e0c7ff7 ER |
910 | %files -n vserver-distro-fedora |
911 | %defattr(644,root,root,755) | |
d765f9b1 JB |
912 | %dir %{_sysconfdir}/vservers/.distributions/f7 |
913 | %dir %{_sysconfdir}/vservers/.distributions/f7/apt | |
914 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/f7/apt/sources.list | |
0e0c7ff7 ER |
915 | %dir %{_sysconfdir}/vservers/.distributions/fc* |
916 | %dir %{_sysconfdir}/vservers/.distributions/fc*/apt | |
917 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/fc*/apt/sources.list | |
076e0301 | 918 | %{_libdir}/%{name}/distributions/f7 |
919 | %{_libdir}/%{name}/distributions/f8 | |
920 | %{_libdir}/%{name}/distributions/f9 | |
921 | %{_libdir}/%{name}/distributions/f10 | |
922 | %{_libdir}/%{name}/distributions/f11 | |
93b0c878 AM |
923 | %{_libdir}/%{name}/distributions/f12 |
924 | %{_libdir}/%{name}/distributions/f13 | |
afce1e26 | 925 | %{_libdir}/%{name}/distributions/f14 |
19409fec | 926 | %{_libdir}/%{name}/distributions/fc1 |
927 | %{_libdir}/%{name}/distributions/fc2 | |
928 | %{_libdir}/%{name}/distributions/fc3 | |
929 | %{_libdir}/%{name}/distributions/fc4 | |
930 | %{_libdir}/%{name}/distributions/fc5 | |
931 | %{_libdir}/%{name}/distributions/fc6 | |
0e0c7ff7 | 932 | |
d76eaeb7 JB |
933 | %files -n vserver-distro-gentoo |
934 | %defattr(644,root,root,755) | |
935 | %dir %{_libdir}/util-vserver/distributions/gentoo | |
936 | %attr(755,root,root) %{_libdir}/util-vserver/distributions/gentoo/* | |
937 | %attr(755,root,root) %{_sbindir}/vdispatch-conf | |
938 | %attr(755,root,root) %{_sbindir}/vemerge | |
939 | %attr(755,root,root) %{_sbindir}/vesync | |
940 | %attr(755,root,root) %{_sbindir}/vupdateworld | |
941 | ||
e84dd6c9 JR |
942 | %files -n vserver-distro-pld |
943 | %defattr(644,root,root,755) | |
944 | %dir %{_libdir}/%{name}/distributions/pld | |
945 | %attr(755,root,root) %{_libdir}/%{name}/distributions/pld/initpost | |
946 | %dir %{_libdir}/%{name}/distributions/pld-* | |
947 | %{_libdir}/%{name}/distributions/pld-*/pkgs | |
948 | %{_libdir}/%{name}/distributions/pld-*/pubkeys | |
949 | %{_libdir}/%{name}/distributions/pld-*/rpm | |
950 | %attr(755,root,root) %{_libdir}/%{name}/distributions/pld-*/initpost | |
951 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac | |
952 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek | |
953 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d | |
954 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d/*.conf | |
955 | %dir %{_sysconfdir}/vservers/.distributions/pld-th | |
956 | %dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek | |
957 | %dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d | |
958 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d/*.conf | |
e84dd6c9 | 959 | |
0e0c7ff7 ER |
960 | %files -n vserver-distro-redhat |
961 | %defattr(644,root,root,755) | |
076e0301 | 962 | %dir %{_sysconfdir}/vservers/.distributions/rh9 |
963 | %dir %{_sysconfdir}/vservers/.distributions/rh9/apt | |
0e0c7ff7 | 964 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/rh*/apt/sources.list |
076e0301 | 965 | %{_libdir}/%{name}/distributions/rh9 |
966 | %dir %{_libdir}/%{name}/distributions/redhat | |
967 | %attr(755,root,root) %{_libdir}/%{name}/distributions/redhat/initctl | |
968 | %attr(755,root,root) %{_libdir}/%{name}/distributions/redhat/initpost | |
969 | %attr(755,root,root) %{_libdir}/%{name}/distributions/redhat/initpre | |
970 | %attr(755,root,root) %{_libdir}/%{name}/distributions/redhat/rc.sysinit | |
0e0c7ff7 ER |
971 | |
972 | %files -n vserver-distro-suse | |
973 | %defattr(644,root,root,755) | |
974 | %dir %{_sysconfdir}/vservers/.distributions/suse* | |
975 | %dir %{_sysconfdir}/vservers/.distributions/suse*/apt | |
976 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/suse*/apt/sources.list | |
977 | %{_libdir}/%{name}/distributions/suse* | |
217d218f AM |
978 | |
979 | %files -n vserver-distro-scientificlinux | |
980 | %defattr(644,root,root,755) | |
981 | %dir %{_libdir}/%{name}/distributions/sl6 | |
982 | %attr(755,root,root) %{_libdir}/%{name}/distributions/sl6/initpost | |
983 | %attr(755,root,root) %{_libdir}/%{name}/distributions/sl6/initpre | |
984 | %{_libdir}/%{name}/distributions/sl6/pkgs | |
985 | %{_libdir}/%{name}/distributions/sl6/yum | |
658d1ada | 986 | %{_libdir}/%{name}/distributions/sl6/yum.repos.d |
1e07a54b | 987 | |
988 | %files -n vserver-distro-tld | |
989 | %defattr(644,root,root,755) | |
990 | %dir %{_libdir}/%{name}/distributions/tld | |
991 | %attr(755,root,root) %{_libdir}/%{name}/distributions/tld/initpost | |
992 | %{_libdir}/%{name}/distributions/tld/pkgs | |
993 | %{_libdir}/%{name}/distributions/tld/rpm | |
994 | %dir %{_sysconfdir}/vservers/.distributions/tld | |
995 | %dir %{_sysconfdir}/vservers/.distributions/tld/poldek | |
996 | %dir %{_sysconfdir}/vservers/.distributions/tld/poldek/repos.d | |
997 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/tld/poldek/repos.d/*.conf |