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