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