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