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