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