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