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