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