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