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