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