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