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