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