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