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