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