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