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