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