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