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