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