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