]>
Commit | Line | Data |
---|---|---|
628330c1 ER |
1 | # TODO |
2 | # - somewhy empty /var/cache/vservers is needed when building pld vserver | |
e128cb8a | 3 | # - make build create /dev/std{in,out,err} links |
467f3ad9 | 4 | # - f8 subpackage |
761afb0b ER |
5 | # - reject install in %%pretrans if /proc/virtual/info has incompatible version |
6 | # - unpackaged | |
7 | # /etc/rc.d/init.d/util-vserver -- # integrate to our initscript (util-vserver sets the path to vshelper and kills all guest processes) | |
27ad8b1b | 8 | # |
5b2fc2c7 | 9 | # m68k and mips are the only not supported archs |
9f1aa96a | 10 | # |
9f81736b | 11 | # Conditional build: |
6730cb3d JB |
12 | %bcond_without dietlibc # don't use dietlibc (ask for troubles) |
13 | %bcond_without doc # don't build documentation which needed LaTeX | |
204e5db3 | 14 | %bcond_without no_dynamic_context # disable enforcement of disabled dynamic context |
6730cb3d | 15 | %bcond_with xalan # use the xalan xslt processor |
9f1aa96a | 16 | # |
e128cb8a | 17 | %define _vproc_version 0.01 |
b3024b38 | 18 | # diet compile fails with ccache in %{__cc} |
e128cb8a ER |
19 | %undefine with_ccache |
20 | # | |
c4036d6e | 21 | Summary: Linux virtual server utilities |
33f71e01 | 22 | Summary(pl.UTF-8): Narzędzia dla linuksowych serwerów wirtualnych |
c4036d6e | 23 | Name: util-vserver |
467f3ad9 | 24 | Version: 0.30.215 |
8af33989 | 25 | Release: 2.3 |
c4036d6e | 26 | License: GPL |
fc8ba798 | 27 | Group: Applications/System |
fe9ea50c | 28 | Source0: http://ftp.linux-vserver.org/pub/utils/util-vserver/%{name}-%{version}.tar.bz2 |
467f3ad9 | 29 | # Source0-md5: befd9b8e5311e87395b67ee381d83649 |
536c7360 | 30 | Source1: vprocunhide.init |
f16cd315 | 31 | Source2: vservers.init |
536c7360 | 32 | Source3: vservers-legacy.init |
9f81736b | 33 | Source4: rebootmgr.init |
f16cd315 | 34 | Source5: vservers.sysconfig |
9f81736b | 35 | Source6: vservers-legacy.sysconfig |
e5f7ee9a JR |
36 | Source7: vrootdevices.init |
37 | Source8: vrootdevices.sysconfig | |
19844202 | 38 | # A bit of documentation explaining package management |
47f9cd5f | 39 | # http://www.paul.sladen.org/vserver/archives/200505/0078.html |
b674c64a | 40 | Source9: %{name}-pkgmgmt.txt |
ceff5a94 | 41 | Source10: %{name}-initpost.sh |
e128cb8a ER |
42 | Source11: http://www.13thfloor.at/vserver/s_release/v1.2.10/vproc-%{_vproc_version}.tar.bz2 |
43 | # Source11-md5: 1d030717bdbc958ea4b35fd2410dad85 | |
4961db11 | 44 | Source12: %{name}-vhashify.cron |
468087c5 | 45 | Source13: ftp://ftp.pld-linux.org/dists/ac/PLD-2.0-Ac-GPG-key.asc |
46 | # Source13-md5: 8e7574d1de2fa95c2c54cd2ee03364c1 | |
47 | Source14: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc | |
48 | # Source14-md5: 08b29584dd349aac9caa7610131a0a88 | |
01331769 | 49 | Patch0: %{name}-vsysvwrapper.patch |
880068a9 | 50 | Patch1: %{name}-pld.patch |
01331769 | 51 | Patch4: %{name}-m4-diet.patch |
f16cd315 JR |
52 | Patch6: %{name}-build-umask.patch |
53 | Patch7: %{name}-utmpx.patch | |
33beda22 | 54 | Patch8: %{name}-vprocunhide.patch |
616759c3 | 55 | Patch9: %{name}-dev.patch |
f5385f4a | 56 | Patch10: %{name}-no-dynamic-ctx.patch |
3a527d22 | 57 | Patch11: %{name}-more-ip.patch |
fe9ea50c | 58 | Patch12: %{name}-rpm-fake-resolver-badperm-errorlogging.patch |
6d43167c | 59 | Patch13: %{name}-tmpdir.patch |
e7ac6dd1 ER |
60 | Patch14: %{name}-rpmpath.patch |
61 | Patch15: %{name}-interfaces-ignore-cvs-dir.patch | |
761afb0b | 62 | Patch16: %{name}-personalitymachine.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 |
c4036d6e | 408 | |
8f413f5a | 409 | install %{SOURCE9} package-management.txt |
47f9cd5f | 410 | |
c4036d6e | 411 | %build |
ac7f10fe AM |
412 | unset LD_SYMBOLIC_FUNCTIONS || : |
413 | ||
b6503b78 | 414 | %if %{with dietlibc} |
fcf60dd0 | 415 | CFLAGS="%{rpmcflags} -D__GLIBC__ -D__KERNEL_STRICT_NAMES=1 -U__STRICT_ANSI__" |
b6503b78 | 416 | %endif |
84567ffc JR |
417 | %{__aclocal} -I m4 |
418 | %{__automake} | |
31c082fa | 419 | %{__autoconf} |
9f81736b JR |
420 | %configure \ |
421 | --with-initrddir=/etc/rc.d/init.d \ | |
422 | --enable-release \ | |
6f41121b | 423 | --enable-apis=NOLEGACY \ |
893c90d5 | 424 | --with-initscripts=sysv \ |
425 | --%{?with_dietlibc:en}%{!?with_dietlibc:dis}able-dietlibc \ | |
e8b52e06 | 426 | MKTEMP=/bin/mktemp \ |
84567ffc | 427 | MOUNT=/bin/mount \ |
e8b52e06 | 428 | PS=/bin/ps \ |
7ae711b9 | 429 | UMOUNT=/bin/umount \ |
2151e92d | 430 | IP=/sbin/ip \ |
c993b99d | 431 | IPTABLES=%{_usrsbin}/iptables \ |
e8b52e06 JR |
432 | MODPROBE=/sbin/modprobe \ |
433 | NAMEIF=/sbin/nameif \ | |
434 | RMMOD=/sbin/rmmod \ | |
435 | VCONFIG=/sbin/vconfig \ | |
c993b99d | 436 | WGET=%{_usrbin}/wget \ |
c4036d6e | 437 | |
9f81736b | 438 | %{__make} all |
ea52b140 | 439 | %{?with_doc:%{__make} doc} |
c4036d6e | 440 | |
e128cb8a ER |
441 | %{__make} -C vproc-%{_vproc_version} \ |
442 | CC="%{__cc}" \ | |
443 | CFLAGS="%{rpmcflags}" | |
444 | ||
c4036d6e AM |
445 | %install |
446 | rm -rf $RPM_BUILD_ROOT | |
4961db11 | 447 | install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d,cron.d},/dev/pts} \ |
084b5d80 | 448 | $RPM_BUILD_ROOT{%{_sysconfdir}/vservices,/vservers/.pkg} |
27ad8b1b | 449 | |
e8d85bc2 | 450 | %{__make} -j1 install install-distribution \ |
c4036d6e AM |
451 | DESTDIR=$RPM_BUILD_ROOT |
452 | ||
47f9cd5f JR |
453 | chmod -R +rX $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/* |
454 | ||
9f81736b JR |
455 | for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do |
456 | s=`basename $i | sed s/v_//` | |
c993b99d | 457 | cat >$RPM_BUILD_ROOT%{_sysconfdir}/vservices/$s << EOF |
9f81736b JR |
458 | # IP addresses/interfaces to bound $s service to |
459 | #IP=10.0.0.1 | |
460 | #IP=eth0 | |
461 | EOF | |
462 | done | |
c4036d6e | 463 | |
c993b99d | 464 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE1} > \ |
a91f83e5 | 465 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide |
c993b99d | 466 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE2} > \ |
f16cd315 | 467 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers |
c993b99d | 468 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE3} > \ |
a91f83e5 | 469 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy |
c993b99d | 470 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE4} > \ |
a91f83e5 | 471 | $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr |
f16cd315 JR |
472 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE5} > \ |
473 | $RPM_BUILD_ROOT/etc/sysconfig/vservers | |
a91f83e5 | 474 | |
9f81736b | 475 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy |
536c7360 | 476 | |
e5f7ee9a JR |
477 | install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vrootdevices |
478 | install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/vrootdevices | |
761afb0b ER |
479 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld |
480 | install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld/initpost | |
481 | ln -s ../pld/initpost $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/initpost | |
482 | ln -s ../pld/initpost $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/initpost | |
483 | ln -s ../pld/initpost $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ti/initpost | |
e128cb8a | 484 | install vproc-%{_vproc_version}/vproc $RPM_BUILD_ROOT%{_sbindir} |
4961db11 PG |
485 | install %{SOURCE12} $RPM_BUILD_ROOT%{_libdir}/%{name}/vhashify.cron |
486 | ||
487 | cat > $RPM_BUILD_ROOT/etc/cron.d/vservers << EOF | |
488 | 02 2 * * 0 root %{_libdir}/%{name}/vhashify.cron | |
489 | EOF | |
e5f7ee9a | 490 | |
468087c5 | 491 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/pubkeys |
492 | cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/pubkeys/pld-ac.asc | |
493 | ||
761afb0b | 494 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/pubkeys |
468087c5 | 495 | cp -a %{SOURCE14} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/pubkeys/pld-th.asc |
b5d3f919 | 496 | |
1cbfb76d | 497 | # set arch for pld-ac in pld.conf |
498 | %ifarch i486 i686 ppc sparc alpha athlon | |
499 | %define _ftp_arch %{_target_cpu} | |
500 | %endif | |
501 | %ifarch %{x8664} | |
502 | %define _ftp_arch amd64 | |
503 | %endif | |
504 | %ifarch pentium2 pentium3 pentium4 | |
505 | %define _ftp_arch i686 | |
506 | %endif | |
d2c9e889 | 507 | %ifarch i486 |
508 | %define _ftp_arch i386 | |
509 | %endif | |
1cbfb76d | 510 | %ifarch sparcv9 sparc64 |
511 | %define _ftp_arch sparc | |
512 | %endif | |
513 | %{__sed} -i -e 's|%%ARCH%%|%{_ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d/pld.conf | |
514 | ||
8af33989 | 515 | %ifarch %{x8664} |
516 | # ac i686 for x86_64 hosts | |
517 | cp -a $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac \ | |
518 | $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac-i686 | |
519 | cp -a $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac \ | |
520 | $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac-i686 | |
521 | sed -i 's/%{_ftp_arch}/i686/g' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac-i686/poldek/repos.d/pld.conf | |
522 | %endif | |
523 | ||
1cbfb76d | 524 | # set arch for pld-th in pld.conf |
761afb0b ER |
525 | %ifarch i486 i686 ppc sparc alpha athlon |
526 | %define _ftp_arch %{_target_cpu} | |
527 | %endif | |
eed0f0e7 | 528 | %ifarch %{x8664} |
761afb0b ER |
529 | %define _ftp_arch x86_64 |
530 | %endif | |
531 | %ifarch i586 | |
532 | %define _ftp_arch i486 | |
533 | %endif | |
534 | %ifarch pentium2 pentium3 pentium4 | |
535 | %define _ftp_arch i686 | |
536 | %endif | |
537 | %ifarch sparcv9 sparc64 | |
538 | %define _ftp_arch sparc | |
539 | %endif | |
761afb0b | 540 | %{__sed} -i -e 's|%%ARCH%%|%{_ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d/pld.conf |
1cbfb76d | 541 | |
8af33989 | 542 | %ifarch %{x8664} |
543 | # th i686 for x86_64 hosts | |
544 | cp -a $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th \ | |
545 | $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th-i686 | |
546 | cp -a $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th \ | |
547 | $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th-i686 | |
548 | sed -i 's/%{_ftp_arch}/i686/g' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th-i686/poldek/repos.d/pld.conf | |
549 | %endif | |
550 | ||
1cbfb76d | 551 | # set arch for pld-ti in pld.conf |
552 | %ifarch i486 i686 ppc sparc alpha athlon | |
553 | %define _ftp_arch %{_target_cpu} | |
554 | %endif | |
555 | %ifarch %{x8664} | |
556 | %define _ftp_arch x86_64 | |
557 | %endif | |
558 | %ifarch pentium2 pentium3 pentium4 | |
559 | %define _ftp_arch i686 | |
560 | %endif | |
561 | %ifarch sparcv9 sparc64 | |
562 | %define _ftp_arch sparc | |
563 | %endif | |
a25733d4 | 564 | %{__sed} -i -e 's|%%ARCH%%|%{_ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ti/poldek/repos.d/pld.conf |
761afb0b | 565 | |
8af33989 | 566 | %ifarch %{x8664} |
567 | # titanium i686 for x86_64 hosts | |
568 | cp -a $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ti \ | |
569 | $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ti-i686 | |
570 | cp -a $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ti \ | |
571 | $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ti-i686 | |
572 | sed -i 's/%{_ftp_arch}/i686/g' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ti-i686/poldek/repos.d/pld.conf | |
573 | %endif | |
574 | ||
761afb0b ER |
575 | cat <<'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/defaults/rpm/platform |
576 | # first platform file entry can't contain regexps | |
577 | %{_target_cpu}-%{_target_vendor}-linux | |
578 | ||
579 | # x86_64 things | |
580 | %ifarch x86_64 | |
581 | amd64-[^-]*-linux(-gnu)? | |
582 | x86_64-[^-]*-linux(-gnu)? | |
583 | %endif | |
584 | %ifarch amd64 | |
585 | amd64-[^-]*-linux(-gnu)? | |
586 | x86_64-[^-]*-linux(-gnu)? | |
587 | %endif | |
588 | %ifarch ia32e | |
589 | ia32e-[^-]*-linux(-gnu)? | |
590 | x86_64-[^-]*-linux(-gnu)? | |
591 | %endif | |
592 | ||
593 | # x86 things | |
594 | %ifarch athlon %{x8664} | |
595 | athlon-[^-]*-linux(-gnu)? | |
596 | %endif | |
597 | %ifarch pentium4 athlon %{x8664} | |
598 | pentium4-[^-]*-linux(-gnu)? | |
599 | %endif | |
600 | %ifarch pentium3 pentium4 athlon %{x8664} | |
601 | pentium3-[^-]*-linux(-gnu)? | |
602 | %endif | |
603 | %ifarch i686 pentium3 pentium4 athlon %{x8664} | |
604 | i686-[^-]*-linux(-gnu)? | |
605 | %endif | |
606 | %ifarch i586 i686 pentium3 pentium4 athlon %{x8664} | |
607 | i586-[^-]*-linux(-gnu)? | |
608 | %endif | |
609 | %ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} | |
610 | i486-[^-]*-linux(-gnu)? | |
611 | %endif | |
612 | %ifarch %{ix86} %{x8664} | |
613 | i386-[^-]*-linux(-gnu)? | |
614 | %endif | |
615 | ||
616 | %ifarch alpha | |
617 | alpha-[^-]*-linux(-gnu)? | |
618 | %endif | |
619 | ||
620 | %ifarch ia64 | |
621 | ia64-[^-]*-linux(-gnu)? | |
622 | %endif | |
623 | ||
624 | %ifarch ppc64 | |
625 | powerpc64-[^-]*-linux(-gnu)? | |
626 | ppc64-[^-]*-linux(-gnu)? | |
edb21b00 | 627 | %endif |
761afb0b ER |
628 | %ifarch ppc ppc64 |
629 | powerpc-[^-]*-linux(-gnu)? | |
630 | ppc-[^-]*-linux(-gnu)? | |
eed0f0e7 JR |
631 | %endif |
632 | ||
761afb0b ER |
633 | %ifarch s390x |
634 | s390x-[^-]*-linux(-gnu)? | |
635 | %endif | |
636 | %ifarch s390 s390x | |
637 | s390-[^-]*-linux(-gnu)? | |
638 | %endif | |
639 | ||
640 | %ifarch sparc64 | |
641 | sparc64-[^-]*-linux(-gnu)? | |
642 | sparcv8-[^-]*-linux(-gnu)? | |
643 | sparcv9-[^-]*-linux(-gnu)? | |
644 | %endif | |
645 | %ifarch sparcv9 | |
646 | sparcv8-[^-]*-linux(-gnu)? | |
647 | sparcv9-[^-]*-linux(-gnu)? | |
648 | %endif | |
649 | %ifarch sparc sparcv9 sparc64 | |
650 | sparc-[^-]*-linux(-gnu)? | |
651 | %endif | |
652 | ||
653 | # noarch | |
654 | noarch-[^-]*-.* | |
655 | EOF | |
656 | ||
2c4297d9 | 657 | # XXX baggins check this: needed but seems unused |
2d6d0c17 ER |
658 | install -d $RPM_BUILD_ROOT/var/cache/vservers |
659 | ||
2c4297d9 ER |
660 | # we have our own initscript which does the same |
661 | rm -f $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default | |
761afb0b ER |
662 | rm -f $RPM_BUILD_ROOT/etc/rc.d/init.d/util-vserver |
663 | rm -rf $RPM_BUILD_ROOT/dev | |
6d43167c | 664 | rm -f $RPM_BUILD_ROOT%{_libdir}/util-vserver/vserver-wrapper |
467f3ad9 | 665 | rm -f $RPM_BUILD_ROOT%{_libdir}/util-vserver/vserver-init.functions |
6d43167c | 666 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/vservers.conf |
2c4297d9 | 667 | |
421cacb8 AM |
668 | %clean |
669 | rm -rf $RPM_BUILD_ROOT | |
c4036d6e | 670 | |
9f81736b JR |
671 | %post |
672 | %{_sbindir}/setattr --barrier /vservers || : | |
673 | ||
7a93d1d4 | 674 | %post lib -p /sbin/ldconfig |
9f81736b JR |
675 | %postun lib -p /sbin/ldconfig |
676 | ||
677 | %post init | |
3996b68e | 678 | /sbin/chkconfig --add vrootdevices |
9f81736b | 679 | /sbin/chkconfig --add vprocunhide |
09abf0a6 | 680 | /sbin/chkconfig --add vservers |
3996b68e | 681 | if [ ! -f /var/lock/subsys/vrootdevices ]; then |
2d9f659e | 682 | echo "Type \"/sbin/service vrootdevices start\" to assign virtual root devices" 1>&2 |
3996b68e | 683 | fi |
26dd3d85 | 684 | if [ ! -f /var/lock/subsys/vprocunhide ]; then |
2d9f659e | 685 | echo "Type \"/sbin/service vprocunhide start\" to set /proc visibility for vservers" 1>&2 |
26dd3d85 | 686 | fi |
09abf0a6 | 687 | if [ ! -f /var/lock/subsys/vservers ]; then |
2d9f659e | 688 | echo "Type \"/sbin/service vservers start\" to start vservers" 1>&2 |
26dd3d85 | 689 | fi |
9f81736b JR |
690 | |
691 | %preun init | |
692 | if [ "$1" = "0" ]; then | |
2d9f659e ER |
693 | %service vservers stop |
694 | %service vprocunhide stop | |
695 | %service vrootdevices stop | |
09abf0a6 | 696 | /sbin/chkconfig --del vservers |
26dd3d85 | 697 | /sbin/chkconfig --del vprocunhide |
3996b68e | 698 | /sbin/chkconfig --del vrootdevices |
9f81736b JR |
699 | fi |
700 | ||
701 | %post legacy | |
702 | /sbin/chkconfig --add rebootmgr | |
703 | /sbin/chkconfig --add vservers-legacy | |
26dd3d85 | 704 | if [ ! -f /var/lock/subsys/rebootmgr ] ; then |
2d9f659e | 705 | echo "Type \"/sbin/service rebootmgr start\" to start reboot manager for legacy vservers" 1>&2 |
26dd3d85 ER |
706 | fi |
707 | if [ ! -f /var/lock/subsys/vservers-legacy ] ; then | |
2d9f659e | 708 | echo "Type \"/sbin/service vservers-legacy start\" to start legacy vservers" 1>&2 |
26dd3d85 | 709 | fi |
9f81736b JR |
710 | |
711 | %preun legacy | |
712 | if [ "$1" = "0" ]; then | |
2d9f659e ER |
713 | %service rebootmgr stop |
714 | %service vservers-legacy stop | |
9f81736b JR |
715 | /sbin/chkconfig --del rebootmgr |
716 | /sbin/chkconfig --del vservers-legacy | |
717 | fi | |
b2c6ab86 | 718 | |
761afb0b | 719 | %triggerpostun -n vserver-distro-pld -- util-vserver-build < 0.30.215-1.1 |
a25733d4 | 720 | for D in ac th ti; do |
721 | P=%{_sysconfdir}/vservers/.distributions/pld-$D/poldek | |
761afb0b | 722 | |
a25733d4 | 723 | if [ -f $P/pld-source.conf.rpmsave ]; then |
724 | cp -f $P/repos.d/pld.conf{,.rpmnew} | |
725 | mv -f $P/pld-source.conf.rpmsave $P/repos.d/pld.conf | |
726 | fi | |
727 | done | |
761afb0b ER |
728 | exit 0 |
729 | ||
c4036d6e AM |
730 | %files |
731 | %defattr(644,root,root,755) | |
ea52b140 | 732 | %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt |
733 | %{?with_doc:%doc doc/*.html} | |
b7fb7f75 | 734 | %dir %{_sysconfdir}/vservers |
9f81736b JR |
735 | %dir %{_sysconfdir}/vservers/.defaults |
736 | %dir %{_sysconfdir}/vservers/.defaults/apps | |
737 | %dir %{_sysconfdir}/vservers/.defaults/files | |
047cae91 JR |
738 | %{_sysconfdir}/vservers/.defaults/vdirbase |
739 | %{_sysconfdir}/vservers/.defaults/run.rev | |
9f81736b | 740 | /sbin/vshelper |
fc8ba798 JR |
741 | %attr(755,root,root) %{_sbindir}/chbind |
742 | %attr(755,root,root) %{_sbindir}/chcontext | |
743 | %attr(755,root,root) %{_sbindir}/chxid | |
9f81736b | 744 | %attr(755,root,root) %{_sbindir}/exec-cd |
fc8ba798 | 745 | %attr(755,root,root) %{_sbindir}/lsxid |
328586ba | 746 | %attr(755,root,root) %{_sbindir}/naddress |
747 | %attr(755,root,root) %{_sbindir}/nattribute | |
748 | %attr(755,root,root) %{_sbindir}/ncontext | |
fc8ba798 JR |
749 | %attr(755,root,root) %{_sbindir}/reducecap |
750 | %attr(755,root,root) %{_sbindir}/setattr | |
751 | %attr(755,root,root) %{_sbindir}/showattr | |
752 | %attr(755,root,root) %{_sbindir}/vattribute | |
753 | %attr(755,root,root) %{_sbindir}/vcontext | |
754 | %attr(755,root,root) %{_sbindir}/vdlimit | |
755 | %attr(755,root,root) %{_sbindir}/vnamespace | |
756 | %attr(755,root,root) %{_sbindir}/vkill | |
757 | %attr(755,root,root) %{_sbindir}/vlimit | |
893c90d5 | 758 | %attr(755,root,root) %{_sbindir}/vdevmap |
9f81736b | 759 | %attr(755,root,root) %{_sbindir}/vdu |
467f3ad9 | 760 | %attr(755,root,root) %{_sbindir}/vmemctrl |
761 | %attr(755,root,root) %{_sbindir}/vmount | |
e128cb8a | 762 | %attr(755,root,root) %{_sbindir}/vproc |
9f81736b JR |
763 | %attr(755,root,root) %{_sbindir}/vps |
764 | %attr(755,root,root) %{_sbindir}/vpstree | |
467f3ad9 | 765 | %attr(755,root,root) %{_sbindir}/vspace |
fc8ba798 JR |
766 | %attr(755,root,root) %{_sbindir}/vrsetup |
767 | %attr(755,root,root) %{_sbindir}/vsched | |
9f81736b | 768 | %attr(755,root,root) %{_sbindir}/vserver |
fc8ba798 | 769 | %attr(755,root,root) %{_sbindir}/vserver-info |
9f81736b JR |
770 | %attr(755,root,root) %{_sbindir}/vserver-stat |
771 | %attr(755,root,root) %{_sbindir}/vsomething | |
67457f13 | 772 | %attr(755,root,root) %{_sbindir}/vtag |
9f81736b | 773 | %attr(755,root,root) %{_sbindir}/vtop |
fc8ba798 | 774 | %attr(755,root,root) %{_sbindir}/vuname |
31c082fa | 775 | %attr(755,root,root) %{_sbindir}/vwait |
b2c6ab86 | 776 | %dir %{_libdir}/%{name} |
b7fb7f75 | 777 | %dir %{_libdir}/%{name}/defaults |
fc8ba798 JR |
778 | %{_libdir}/%{name}/FEATURES.txt |
779 | %{_libdir}/%{name}/util-vserver-vars | |
b7fb7f75 | 780 | %{_libdir}/%{name}/defaults/* |
b2c6ab86 | 781 | %attr(755,root,root) %{_libdir}/%{name}/capchroot |
b7fb7f75 | 782 | %attr(755,root,root) %{_libdir}/%{name}/chain-echo |
328586ba | 783 | %attr(755,root,root) %{_libdir}/%{name}/chbind-compat |
b7fb7f75 | 784 | %attr(755,root,root) %{_libdir}/%{name}/check-unixfile |
fc8ba798 | 785 | %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat |
31c082fa | 786 | %attr(755,root,root) %{_libdir}/%{name}/chroot-sh |
b7fb7f75 | 787 | %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit |
b2c6ab86 JB |
788 | %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel |
789 | %attr(755,root,root) %{_libdir}/%{name}/filetime | |
b7fb7f75 | 790 | %{_libdir}/%{name}/functions |
67457f13 | 791 | %attr(755,root,root) %{_libdir}/%{name}/h2ext |
792 | %attr(755,root,root) %{_libdir}/%{name}/h2ext-worker | |
b7fb7f75 JR |
793 | %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive |
794 | %attr(755,root,root) %{_libdir}/%{name}/lockfile | |
795 | %attr(755,root,root) %{_libdir}/%{name}/mask2prefix | |
b2c6ab86 | 796 | %attr(755,root,root) %{_libdir}/%{name}/readlink |
b7fb7f75 JR |
797 | %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo |
798 | %attr(755,root,root) %{_libdir}/%{name}/secure-mount | |
799 | %attr(755,root,root) %{_libdir}/%{name}/sigexec | |
800 | %attr(755,root,root) %{_libdir}/%{name}/start-vservers | |
467f3ad9 | 801 | %attr(755,root,root) %{_libdir}/%{name}/tunctl |
b7fb7f75 | 802 | %attr(755,root,root) %{_libdir}/%{name}/vprocunhide |
b7fb7f75 | 803 | %{_libdir}/%{name}/vserver.* |
aaa9538c | 804 | %attr(755,root,root) %{_libdir}/%{name}/vserver-build |
b2c6ab86 | 805 | %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh |
4961db11 PG |
806 | %attr(755,root,root) %{_libdir}/%{name}/vhashify |
807 | %attr(755,root,root) %{_libdir}/%{name}/vhashify.cron | |
b7fb7f75 JR |
808 | %attr(755,root,root) %{_libdir}/%{name}/vshelper |
809 | %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync | |
893c90d5 | 810 | %attr(755,root,root) %{_libdir}/%{name}/vsysctl |
fc8ba798 JR |
811 | %{_mandir}/man8/chbind.8* |
812 | %{_mandir}/man8/chcontext.8* | |
813 | %{_mandir}/man8/reducecap.8* | |
814 | %{_mandir}/man8/vps.8* | |
815 | %{_mandir}/man8/vpstree.8* | |
816 | %{_mandir}/man8/vserver-stat.8* | |
817 | %{_mandir}/man8/vserver.8* | |
818 | %{_mandir}/man8/vtop.8* | |
c993b99d | 819 | %attr(000,root,root) %dir /vservers |
2b3c93e4 | 820 | %dir /vservers/.pkg |
9f81736b JR |
821 | %dir %{_localstatedir}/run/vservers |
822 | %dir %{_localstatedir}/run/vservers.rev | |
823 | %dir %{_localstatedir}/run/vshelper | |
2d6d0c17 | 824 | %dir /var/cache/vservers |
421cacb8 | 825 | |
d76eaeb7 JB |
826 | %files lib |
827 | %defattr(644,root,root,755) | |
761afb0b ER |
828 | %attr(755,root,root) %{_libdir}/libvserver.so.*.*.* |
829 | %attr(755,root,root) %ghost %{_libdir}/libvserver.so.0 | |
d76eaeb7 | 830 | |
421cacb8 AM |
831 | %files devel |
832 | %defattr(644,root,root,755) | |
ea52b140 | 833 | %{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html} |
761afb0b | 834 | %attr(755,root,root) %{_libdir}/libvserver.so |
b7fb7f75 | 835 | %{_libdir}/lib*.la |
33754dff | 836 | %{_includedir}/vserver*.h |
b7fb7f75 | 837 | %{_pkgconfigdir}/*.pc |
421cacb8 AM |
838 | |
839 | %files static | |
840 | %defattr(644,root,root,755) | |
841 | %{_libdir}/libvserver.a | |
9f81736b | 842 | |
9f81736b JR |
843 | %files build |
844 | %defattr(644,root,root,755) | |
8f413f5a | 845 | %doc contrib/yum*.patch package-management.txt |
9f81736b JR |
846 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify |
847 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash | |
c21e4fcc JR |
848 | %dir %{_sysconfdir}/vservers/.distributions |
849 | %dir %{_sysconfdir}/vservers/.distributions/.common | |
850 | %dir %{_sysconfdir}/vservers/.distributions/.common/pubkeys | |
9f81736b JR |
851 | %attr(755,root,root) %{_libdir}/%{name}/rpm-fake* |
852 | %dir %{_libdir}/%{name}/distributions | |
2b8192a7 | 853 | %attr(-,root,root) %{_libdir}/%{name}/distributions/defaults |
2b8192a7 ER |
854 | %dir %{_libdir}/%{name}/distributions/template |
855 | %attr(755,root,root) %{_libdir}/%{name}/distributions/template/init* | |
856 | %attr(-,root,root) %{_libdir}/%{name}/distributions/redhat | |
9f81736b | 857 | %{_libdir}/%{name}/vserver-setup.functions |
761afb0b | 858 | %{_libdir}/%{name}/vserver-build.* |
9f81736b JR |
859 | %{_libdir}/%{name}/defaults/fstab |
860 | %{_libdir}/%{name}/defaults/debootstrap.uri | |
861 | %{_libdir}/%{name}/defaults/vunify-exclude | |
862 | %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt | |
863 | %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker | |
893c90d5 | 864 | %attr(755,root,root) %{_libdir}/%{name}/vclone |
9f81736b | 865 | %attr(755,root,root) %{_libdir}/%{name}/vcopy |
9f81736b | 866 | %attr(755,root,root) %{_libdir}/%{name}/vpkg |
84567ffc | 867 | %attr(755,root,root) %{_libdir}/%{name}/vpoldek-worker |
9f81736b JR |
868 | %attr(755,root,root) %{_libdir}/%{name}/vrpm-* |
869 | %attr(755,root,root) %{_libdir}/%{name}/vserver-build | |
870 | %attr(755,root,root) %{_libdir}/%{name}/vunify | |
871 | %attr(755,root,root) %{_libdir}/%{name}/vyum-worker | |
872 | %attr(755,root,root) %{_sbindir}/vapt-get | |
84567ffc | 873 | %attr(755,root,root) %{_sbindir}/vpoldek |
9f81736b JR |
874 | %attr(755,root,root) %{_sbindir}/vrpm |
875 | %attr(755,root,root) %{_sbindir}/vyum | |
761afb0b | 876 | %{_mandir}/man8/vserver-build.8* |
9f81736b | 877 | |
d76eaeb7 JB |
878 | %files init |
879 | %defattr(644,root,root,755) | |
880 | %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper | |
881 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vrootdevices | |
882 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers | |
883 | %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/vservers | |
884 | %attr(754,root,root) /etc/rc.d/init.d/vprocunhide | |
885 | %attr(754,root,root) /etc/rc.d/init.d/vrootdevices | |
886 | %attr(754,root,root) /etc/rc.d/init.d/vservers | |
887 | ||
888 | %files legacy | |
889 | %defattr(644,root,root,755) | |
890 | %dir %{_sysconfdir}/vservices | |
891 | %{_sysconfdir}/vservices/* | |
892 | %dir %{_libdir}/%{name}/legacy | |
893 | %attr(755,root,root) %{_libdir}/%{name}/legacy/* | |
894 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy | |
895 | %attr(754,root,root) /etc/rc.d/init.d/v_* | |
896 | %attr(754,root,root) /etc/rc.d/init.d/rebootmgr | |
897 | %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy | |
898 | %attr(755,root,root) %{_sbindir}/vserver-copy | |
899 | %{_mandir}/man8/distrib-info.8* | |
900 | %{_mandir}/man8/rebootmgr.8* | |
901 | %{_mandir}/man8/vserver-copy.8* | |
902 | ||
a94c4947 | 903 | %files -n vserver-distro-alpine |
904 | %defattr(644,root,root,755) | |
905 | %dir %{_libdir}/%{name}/distributions/alpine | |
906 | %attr(755,root,root) %{_libdir}/%{name}/distributions/alpine/initpost | |
907 | %attr(755,root,root) %{_libdir}/%{name}/distributions/alpine/initpre | |
908 | ||
d76eaeb7 JB |
909 | %files -n vserver-distro-centos |
910 | %defattr(644,root,root,755) | |
911 | %{_libdir}/util-vserver/distributions/centos* | |
912 | ||
d765f9b1 JB |
913 | %files -n vserver-distro-debian |
914 | %defattr(644,root,root,755) | |
de976288 JB |
915 | %dir %{_libdir}/%{name}/distributions/debian |
916 | %{_libdir}/%{name}/distributions/debian/debootstrap.script | |
917 | %attr(755,root,root) %{_libdir}/%{name}/distributions/debian/initpost | |
d765f9b1 JB |
918 | %{_libdir}/%{name}/distributions/etch |
919 | %{_libdir}/%{name}/distributions/lenny | |
920 | %{_libdir}/%{name}/distributions/sid | |
921 | ||
0e0c7ff7 ER |
922 | %files -n vserver-distro-fedora |
923 | %defattr(644,root,root,755) | |
d765f9b1 JB |
924 | %dir %{_sysconfdir}/vservers/.distributions/f7 |
925 | %dir %{_sysconfdir}/vservers/.distributions/f7/apt | |
926 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/f7/apt/sources.list | |
0e0c7ff7 ER |
927 | %dir %{_sysconfdir}/vservers/.distributions/fc* |
928 | %dir %{_sysconfdir}/vservers/.distributions/fc*/apt | |
929 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/fc*/apt/sources.list | |
d765f9b1 | 930 | %{_libdir}/%{name}/distributions/f7 |
a94c4947 | 931 | %{_libdir}/%{name}/distributions/f8 |
0e0c7ff7 ER |
932 | %{_libdir}/%{name}/distributions/fc* |
933 | ||
d76eaeb7 JB |
934 | %files -n vserver-distro-gentoo |
935 | %defattr(644,root,root,755) | |
936 | %dir %{_libdir}/util-vserver/distributions/gentoo | |
937 | %attr(755,root,root) %{_libdir}/util-vserver/distributions/gentoo/* | |
938 | %attr(755,root,root) %{_sbindir}/vdispatch-conf | |
939 | %attr(755,root,root) %{_sbindir}/vemerge | |
940 | %attr(755,root,root) %{_sbindir}/vesync | |
941 | %attr(755,root,root) %{_sbindir}/vupdateworld | |
942 | ||
761afb0b ER |
943 | %files -n vserver-distro-pld |
944 | %defattr(644,root,root,755) | |
945 | %attr(-,root,root) %{_libdir}/%{name}/distributions/pld | |
946 | %attr(-,root,root) %{_libdir}/%{name}/distributions/pld-* | |
947 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac | |
948 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek | |
949 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d | |
950 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d/*.conf | |
951 | %dir %{_sysconfdir}/vservers/.distributions/pld-th | |
952 | %dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek | |
953 | %dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d | |
954 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d/*.conf | |
955 | %dir %{_sysconfdir}/vservers/.distributions/pld-ti | |
956 | %dir %{_sysconfdir}/vservers/.distributions/pld-ti/poldek | |
957 | %dir %{_sysconfdir}/vservers/.distributions/pld-ti/poldek/repos.d | |
958 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ti/poldek/repos.d/*.conf | |
8af33989 | 959 | %ifarch %{x8664} |
960 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac-i686 | |
961 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac-i686/poldek | |
962 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac-i686/poldek/repos.d | |
963 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac-i686/poldek/repos.d/*.conf | |
964 | %dir %{_sysconfdir}/vservers/.distributions/pld-th-i686 | |
965 | %dir %{_sysconfdir}/vservers/.distributions/pld-th-i686/poldek | |
966 | %dir %{_sysconfdir}/vservers/.distributions/pld-th-i686/poldek/repos.d | |
967 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-th-i686/poldek/repos.d/*.conf | |
968 | %dir %{_sysconfdir}/vservers/.distributions/pld-ti-i686 | |
969 | %dir %{_sysconfdir}/vservers/.distributions/pld-ti-i686/poldek | |
970 | %dir %{_sysconfdir}/vservers/.distributions/pld-ti-i686/poldek/repos.d | |
971 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ti-i686/poldek/repos.d/*.conf | |
972 | %endif | |
761afb0b | 973 | |
0e0c7ff7 ER |
974 | %files -n vserver-distro-redhat |
975 | %defattr(644,root,root,755) | |
976 | %dir %{_sysconfdir}/vservers/.distributions/rh* | |
977 | %dir %{_sysconfdir}/vservers/.distributions/rh*/apt | |
978 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/rh*/apt/sources.list | |
979 | %{_libdir}/%{name}/distributions/rh* | |
980 | ||
981 | %files -n vserver-distro-suse | |
982 | %defattr(644,root,root,755) | |
983 | %dir %{_sysconfdir}/vservers/.distributions/suse* | |
984 | %dir %{_sysconfdir}/vservers/.distributions/suse*/apt | |
985 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/suse*/apt/sources.list | |
986 | %{_libdir}/%{name}/distributions/suse* | |
d765f9b1 JB |
987 | |
988 | %files -n vserver-distro-ubuntu | |
989 | %defattr(644,root,root,755) | |
990 | %{_libdir}/%{name}/distributions/breezy | |
991 | %{_libdir}/%{name}/distributions/dapper | |
992 | %{_libdir}/%{name}/distributions/edgy | |
993 | %{_libdir}/%{name}/distributions/feisty | |
994 | %{_libdir}/%{name}/distributions/gutsy | |
995 | %{_libdir}/%{name}/distributions/hoary | |
996 | %{_libdir}/%{name}/distributions/warty |