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