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