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