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