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