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