]>
Commit | Line | Data |
---|---|---|
628330c1 ER |
1 | # TODO |
2 | # - somewhy empty /var/cache/vservers is needed when building pld vserver | |
e128cb8a | 3 | # - make build create /dev/std{in,out,err} links |
50aa81bc | 4 | # - reject install in %pre if /proc/virtual/info has incompatible version |
27ad8b1b | 5 | # |
5b2fc2c7 | 6 | # m68k and mips are the only not supported archs |
9f1aa96a | 7 | # |
9f81736b | 8 | # Conditional build: |
6730cb3d JB |
9 | %bcond_without dietlibc # don't use dietlibc (ask for troubles) |
10 | %bcond_without doc # don't build documentation which needed LaTeX | |
204e5db3 | 11 | %bcond_without no_dynamic_context # disable enforcement of disabled dynamic context |
6730cb3d | 12 | %bcond_with xalan # use the xalan xslt processor |
9f1aa96a | 13 | # |
e128cb8a | 14 | %define _vproc_version 0.01 |
b3024b38 | 15 | # diet compile fails with ccache in %{__cc} |
e128cb8a ER |
16 | %undefine with_ccache |
17 | # | |
c4036d6e | 18 | Summary: Linux virtual server utilities |
33f71e01 | 19 | Summary(pl.UTF-8): Narzędzia dla linuksowych serwerów wirtualnych |
c4036d6e | 20 | Name: util-vserver |
67457f13 | 21 | Version: 0.30.214 |
6b673994 | 22 | Release: 4 |
c4036d6e | 23 | License: GPL |
fc8ba798 | 24 | Group: Applications/System |
fe9ea50c | 25 | Source0: http://ftp.linux-vserver.org/pub/utils/util-vserver/%{name}-%{version}.tar.bz2 |
67457f13 | 26 | # Source0-md5: 8bad879e36a6a1b9b4858d0d6d3c8c76 |
536c7360 | 27 | Source1: vprocunhide.init |
f16cd315 | 28 | Source2: vservers.init |
536c7360 | 29 | Source3: vservers-legacy.init |
9f81736b | 30 | Source4: rebootmgr.init |
f16cd315 | 31 | Source5: vservers.sysconfig |
9f81736b | 32 | Source6: vservers-legacy.sysconfig |
e5f7ee9a JR |
33 | Source7: vrootdevices.init |
34 | Source8: vrootdevices.sysconfig | |
19844202 | 35 | # A bit of documentation explaining package management |
47f9cd5f | 36 | # http://www.paul.sladen.org/vserver/archives/200505/0078.html |
b674c64a | 37 | Source9: %{name}-pkgmgmt.txt |
ceff5a94 | 38 | Source10: %{name}-initpost.sh |
e128cb8a ER |
39 | Source11: http://www.13thfloor.at/vserver/s_release/v1.2.10/vproc-%{_vproc_version}.tar.bz2 |
40 | # Source11-md5: 1d030717bdbc958ea4b35fd2410dad85 | |
4961db11 | 41 | Source12: %{name}-vhashify.cron |
01331769 | 42 | Patch0: %{name}-vsysvwrapper.patch |
880068a9 | 43 | Patch1: %{name}-pld.patch |
01331769 | 44 | Patch4: %{name}-m4-diet.patch |
f16cd315 JR |
45 | Patch6: %{name}-build-umask.patch |
46 | Patch7: %{name}-utmpx.patch | |
33beda22 | 47 | Patch8: %{name}-vprocunhide.patch |
616759c3 | 48 | Patch9: %{name}-dev.patch |
f5385f4a | 49 | Patch10: %{name}-no-dynamic-ctx.patch |
3a527d22 | 50 | Patch11: %{name}-more-ip.patch |
fe9ea50c | 51 | Patch12: %{name}-rpm-fake-resolver-badperm-errorlogging.patch |
6d43167c | 52 | Patch13: %{name}-tmpdir.patch |
a41118d0 | 53 | Patch14: %{name}-interfaces-ignore-cvs-dir.patch |
f9347a64 | 54 | URL: http://savannah.nongnu.org/projects/util-vserver/ |
59ac117c | 55 | BuildRequires: autoconf |
c21e4fcc | 56 | BuildRequires: automake >= 1.9 |
6f3fd704 | 57 | BuildRequires: beecrypt-devel |
f791a6d7 | 58 | %{?with_dietlibc:BuildRequires: dietlibc-static >= 2:0.29} |
6730cb3d | 59 | BuildRequires: e2fsprogs-devel |
6f3fd704 | 60 | BuildRequires: libstdc++-devel |
c740301d | 61 | BuildRequires: libtool >= 1.5.14 |
bb167fd6 | 62 | %ifarch %{x8664} |
63 | BuildRequires: sed >= 4.0 | |
64 | %endif | |
2d9f659e | 65 | BuildRequires: rpmbuild(macros) >= 1.268 |
54d8402e | 66 | %if %{with doc} |
3aaf9ac9 MW |
67 | BuildRequires: doxygen |
68 | BuildRequires: graphviz | |
e8b52e06 JR |
69 | BuildRequires: libxslt-progs |
70 | BuildRequires: tetex-format-pdflatex | |
71 | BuildRequires: tetex-makeindex | |
8783ed79 | 72 | # To be removed when tetex-format-pdflatex, tetex-pdftex... |
09abf0a6 | 73 | # ...and graphviz packages get fixed |
8783ed79 | 74 | BuildRequires: ghostscript |
8783ed79 | 75 | BuildRequires: ghostscript-fonts-std |
2d6d0c17 ER |
76 | BuildRequires: tetex-fonts-jknappen |
77 | BuildRequires: tetex-metafont | |
9f81736b | 78 | %{?with_xalan:BuildRequires: xalan-j} |
54d8402e | 79 | %endif |
2d6d0c17 ER |
80 | Requires(post,preun): /sbin/chkconfig |
81 | Requires: %{name}-lib = %{version}-%{release} | |
996a9238 | 82 | Requires: issue |
fc5c9ef4 | 83 | Requires: mktemp >= 1.5-18 |
c993b99d | 84 | Requires: rc-scripts |
07c48fe5 | 85 | Requires: tar |
fc8ba798 | 86 | Requires: util-linux |
bf0ccb73 | 87 | Obsoletes: util-vserver-core |
c4036d6e AM |
88 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
89 | ||
c993b99d ER |
90 | # for adapter |
91 | %define _usrbin /usr/bin | |
f996608b ER |
92 | %define _usrsbin /usr/sbin |
93 | %define _usrlib /usr/lib | |
c993b99d | 94 | |
c4036d6e AM |
95 | %description |
96 | This package provides the components and a framework to setup virtual | |
f9347a64 | 97 | servers. A virtual server runs inside a Linux server. It is |
c4036d6e AM |
98 | nevertheless highly independent. As such, you can run various services |
99 | with normal configuration. The various vservers can't interact with | |
100 | each other and can't interact with services in the main server. | |
101 | ||
102 | This requires a special kernel supporting the new new_s_context and | |
103 | set_ipv4root system call. | |
104 | ||
fc8ba798 JR |
105 | This package contains utilities which are required to communicate with |
106 | the Linux-Vserver enabled kernel. | |
107 | ||
aa0485fb JR |
108 | %description -l pl.UTF-8 |
109 | Ten pakiet dostarcza składniki i szkielet do tworzenia wirtualnych | |
110 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
111 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
112 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
113 | w interakcję z innymi ani z usługami na głównym serwerze. | |
f9347a64 | 114 | |
aa0485fb | 115 | Wymaga to specjalnego jądra obsługującego nowe wywołania systemowe |
f9347a64 JB |
116 | new_s_context i set_ipv4root. |
117 | ||
aa0485fb JR |
118 | Ten pakiet zawiera narzędzia wymagane do komunikacji z jądrem z |
119 | włączonym mechanizmem Linux-Vserver. | |
fc8ba798 | 120 | |
d76eaeb7 JB |
121 | %package lib |
122 | Summary: Dynamic libraries for util-vserver | |
123 | Summary(pl.UTF-8): Biblioteki dynamiczne dla pakietu util-vserver | |
124 | Group: Libraries | |
125 | ||
126 | %description lib | |
127 | util-vserver provides the components and a framework to setup virtual | |
128 | servers. A virtual server runs inside a linux server. It is | |
129 | nevertheless highly independent. As such, you can run various services | |
130 | pith normal configuration. The various vservers can't interact with | |
131 | each other and can't interact with services in the main server. | |
132 | ||
133 | This package contains the shared libraries needed by all other | |
134 | 'util-vserver' subpackages. | |
135 | ||
136 | %description lib -l pl.UTF-8 | |
137 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
138 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
139 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
140 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
141 | w interakcję z innymi ani z usługami na głównym serwerze. | |
142 | ||
143 | Ten pakiet zawiera biblioteki współdzielone wymagane przez wszystkie | |
144 | podpakiety util-vserver. | |
145 | ||
421cacb8 | 146 | %package devel |
b2c6ab86 | 147 | Summary: Development files for Linux vserver libraries |
33f71e01 | 148 | Summary(pl.UTF-8): Pliki programistyczne dla bibliotek linuksowego vserwera |
28a38c7c | 149 | Group: Development/Libraries |
45bc69c6 | 150 | Requires: %{name}-lib = %{version}-%{release} |
421cacb8 AM |
151 | |
152 | %description devel | |
b2c6ab86 JB |
153 | This package contains the development files necessary for developing |
154 | programs which use vserver library. | |
421cacb8 | 155 | |
aa0485fb | 156 | %description devel -l pl.UTF-8 |
b2c6ab86 | 157 | Ten pakiet zawiera pliki programistyczne konieczne do rozwijania |
aa0485fb | 158 | programów używających biblioteki vserver. |
421cacb8 AM |
159 | |
160 | %package static | |
28a38c7c | 161 | Summary: Static vserver library |
33f71e01 | 162 | Summary(pl.UTF-8): Biblioteka statyczna vservera |
28a38c7c | 163 | Group: Development/Libraries |
b2c6ab86 | 164 | Requires: %{name}-devel = %{version}-%{release} |
421cacb8 AM |
165 | |
166 | %description static | |
b2c6ab86 | 167 | This package contains the static version of vserver library. |
421cacb8 | 168 | |
aa0485fb JR |
169 | %description static -l pl.UTF-8 |
170 | Ten pakiet zawiera statyczną wersję biblioteki vservera. | |
421cacb8 | 171 | |
9f81736b JR |
172 | %package build |
173 | Summary: Tools which can be used to build vservers | |
33f71e01 | 174 | Summary(pl.UTF-8): Narzędzia do budowania vserverów |
9f81736b | 175 | Group: Applications/System |
9f81736b | 176 | Requires: %{name} = %{version}-%{release} |
50ef50d6 | 177 | Requires: /etc/pld-release |
7a6192ce AM |
178 | # for ar, used by debbootstrap |
179 | Requires: binutils | |
2d6d0c17 | 180 | Requires: e2fsprogs |
7a6192ce | 181 | Requires: wget |
4b5d1b66 | 182 | Requires: which |
2d6d0c17 | 183 | Conflicts: poldek < 0.18.8-10 |
9f81736b JR |
184 | |
185 | %description build | |
186 | util-vserver provides the components and a framework to setup virtual | |
187 | servers. A virtual server runs inside a linux server. It is | |
188 | nevertheless highly independent. As such, you can run various services | |
189 | with normal configuration. The various vservers can't interact with | |
190 | each other and can't interact with services in the main server. | |
191 | ||
192 | This package contains utilities which assist in building Vservers. | |
193 | ||
aa0485fb JR |
194 | %description build -l pl.UTF-8 |
195 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
196 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
197 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
198 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
199 | w interakcję z innymi ani z usługami na głównym serwerze. | |
7a93d1d4 | 200 | |
aa0485fb | 201 | Ten pakiet zawiera narzędzia pomagające przy budowaniu Vserwerów. |
7a93d1d4 | 202 | |
9f81736b JR |
203 | %package init |
204 | Summary: initscripts for vserver | |
33f71e01 | 205 | Summary(pl.UTF-8): Skrypty inicjalizujące dla vserwera |
fc8ba798 | 206 | Group: Applications/System |
7a93d1d4 | 207 | Requires(post,preun): /sbin/chkconfig |
9f81736b | 208 | Requires: %{name} = %{version}-%{release} |
7a93d1d4 JB |
209 | Requires: diffutils |
210 | Requires: make | |
211 | Requires: rc-scripts | |
9f81736b JR |
212 | |
213 | %description init | |
214 | util-vserver provides the components and a framework to setup virtual | |
215 | servers. A virtual server runs inside a linux server. It is | |
216 | nevertheless highly independent. As such, you can run various services | |
217 | with normal configuration. The various vservers can't interact with | |
218 | each other and can't interact with services in the main server. | |
219 | ||
220 | This package contains the SysV initscripts which start and stop | |
7a93d1d4 JB |
221 | Vservers and related tools. |
222 | ||
aa0485fb JR |
223 | %description init -l pl.UTF-8 |
224 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
225 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
226 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
227 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
228 | w interakcję z innymi ani z usługami na głównym serwerze. | |
7a93d1d4 | 229 | |
aa0485fb JR |
230 | Ten pakiet zawiera skrypty inicjalizujące SysV uruchamiające i |
231 | zatrzymujące Vserwery oraz powiązane narzędzia. | |
9f81736b JR |
232 | |
233 | %package legacy | |
234 | Summary: Legacy utilities for util-vserver | |
33f71e01 | 235 | Summary(pl.UTF-8): Stare narzędzia dla util-vserver |
9f81736b | 236 | Group: Applications/System |
7a93d1d4 | 237 | Requires(post,preun): /sbin/chkconfig |
9f81736b | 238 | Requires: %{name} = %{version}-%{release} |
7a93d1d4 | 239 | Requires: rc-scripts |
9f81736b JR |
240 | |
241 | %description legacy | |
242 | util-vserver provides the components and a framework to setup virtual | |
243 | servers. A virtual server runs inside a linux server. It is | |
244 | nevertheless highly independent. As such, you can run various services | |
245 | with normal configuration. The various vservers can't interact with | |
246 | each other and can't interact with services in the main server. | |
247 | ||
7a93d1d4 | 248 | This package contains the tools which are needed to work with Vservers |
9f81736b JR |
249 | having an old-style configuration. |
250 | ||
aa0485fb JR |
251 | %description legacy -l pl.UTF-8 |
252 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
253 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
254 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
255 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
256 | w interakcję z innymi ani z usługami na głównym serwerze. | |
7a93d1d4 | 257 | |
aa0485fb JR |
258 | Ten pakiet zawiera narzędzia potrzebne do pracy z Vserwerami mającymi |
259 | konfigurację w starym stylu. | |
7a93d1d4 | 260 | |
d765f9b1 JB |
261 | %package -n vserver-distro-debian |
262 | Summary: VServer build templates for Debian | |
868a20c5 | 263 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Debian |
d765f9b1 JB |
264 | Group: Applications/System |
265 | Requires: %{name}-build = %{version}-%{release} | |
b351d620 | 266 | Requires: dpkg |
d765f9b1 JB |
267 | |
268 | %description -n vserver-distro-debian | |
269 | VServer build templates for Debian. | |
270 | ||
868a20c5 | 271 | %description -n vserver-distro-debian -l pl.UTF-8 |
d765f9b1 JB |
272 | Szablony do tworzenia VServerów dla dystrybucji Debian. |
273 | ||
d76eaeb7 | 274 | %package -n vserver-distro-centos |
d765f9b1 JB |
275 | Summary: VServer build template for CentOS |
276 | Summary(pl.UTF-8): Szablon budowania VServerów dla dystrybucji CentOS | |
d76eaeb7 JB |
277 | Group: Applications/System |
278 | Requires: %{name}-build = %{version}-%{release} | |
279 | Requires: yum | |
280 | ||
281 | %description -n vserver-distro-centos | |
d765f9b1 | 282 | VServer build template for CentOS 4.2 and 5. |
d76eaeb7 JB |
283 | |
284 | %description -n vserver-distro-centos -l pl.UTF-8 | |
d765f9b1 | 285 | Szablon budowania VServerów dla dystrybucji CentOS 4.2 i 5. |
d76eaeb7 JB |
286 | |
287 | %package -n vserver-distro-fedora | |
d765f9b1 JB |
288 | Summary: VServer build templates for Fedora |
289 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Fedora | |
d76eaeb7 JB |
290 | Group: Applications/System |
291 | Requires: %{name}-build = %{version}-%{release} | |
292 | Requires: binutils | |
293 | Requires: e2fsprogs | |
294 | Requires: rpm | |
d76eaeb7 JB |
295 | Requires: wget |
296 | ||
297 | %description -n vserver-distro-fedora | |
d765f9b1 | 298 | VServer build templates for Fedora Core 1,2,3,4,5,6 and Fedora 7. |
d76eaeb7 JB |
299 | |
300 | %description -n vserver-distro-fedora -l pl.UTF-8 | |
d765f9b1 JB |
301 | Szablony do tworzenia VServerów dla dystrybucji Fedora Core |
302 | 1,2,3,4,5,6 oraz Fedora 7. | |
d76eaeb7 JB |
303 | |
304 | %package -n vserver-distro-gentoo | |
305 | Summary: VServer build template for Gentoo | |
d765f9b1 | 306 | Summary(pl.UTF-8): Szablon budowania VServerów dla Gentoo |
d76eaeb7 JB |
307 | Group: Applications/System |
308 | Requires: %{name}-build = %{version}-%{release} | |
309 | ||
310 | %description -n vserver-distro-gentoo | |
311 | VServer build template for Gentoo. | |
312 | ||
313 | %description -n vserver-distro-gentoo -l pl.UTF-8 | |
d765f9b1 | 314 | Szablon budowania VServerów dla Gentoo. |
d76eaeb7 JB |
315 | |
316 | %package -n vserver-distro-redhat | |
317 | Summary: VServer build template for Red Hat Linux 9 | |
318 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9 | |
319 | Group: Applications/System | |
320 | Requires: %{name}-build = %{version}-%{release} | |
321 | Requires: binutils | |
322 | Requires: e2fsprogs | |
323 | Requires: rpm | |
d76eaeb7 JB |
324 | Requires: wget |
325 | ||
326 | %description -n vserver-distro-redhat | |
327 | VServer build template for RedHat Linux 9. | |
328 | ||
329 | %description -n vserver-distro-redhat -l pl.UTF-8 | |
330 | Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9. | |
331 | ||
332 | %package -n vserver-distro-suse | |
333 | Summary: VServer build template for SuSE 9.1 | |
334 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1 | |
335 | Group: Applications/System | |
336 | Requires: %{name}-build = %{version}-%{release} | |
337 | Requires: binutils | |
338 | Requires: e2fsprogs | |
339 | Requires: rpm | |
d76eaeb7 JB |
340 | Requires: wget |
341 | ||
342 | %description -n vserver-distro-suse | |
343 | VServer build template for SuSE Linux 9.1. | |
344 | ||
345 | %description -n vserver-distro-suse -l pl.UTF-8 | |
346 | Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1. | |
347 | ||
d765f9b1 JB |
348 | %package -n vserver-distro-ubuntu |
349 | Summary: VServer build templates for Ubuntu | |
868a20c5 | 350 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Ubuntu |
d765f9b1 JB |
351 | Group: Applications/System |
352 | Requires: %{name}-build = %{version}-%{release} | |
b351d620 | 353 | Requires: dpkg |
d765f9b1 JB |
354 | |
355 | %description -n vserver-distro-ubuntu | |
356 | VServer build templates for Ubuntu. | |
357 | ||
868a20c5 | 358 | %description -n vserver-distro-ubuntu -l pl.UTF-8 |
d765f9b1 JB |
359 | Szablony do tworzenia VServerów dla dystrybucji Ubuntu. |
360 | ||
e94d4df0 | 361 | %ifarch amd64 |
362 | %define _x8664name amd64 | |
363 | %else | |
364 | %define _x8664name x86_64 | |
365 | %endif | |
366 | ||
c4036d6e | 367 | %prep |
e128cb8a | 368 | %setup -q -a11 |
b7fb7f75 | 369 | %patch0 -p1 |
9f81736b | 370 | %patch1 -p1 |
33754dff | 371 | %patch4 -p1 |
f16cd315 | 372 | %patch6 -p1 |
1cfbc735 | 373 | %patch7 -p1 |
33beda22 | 374 | %patch8 -p1 |
616759c3 | 375 | %patch9 -p1 |
204e5db3 | 376 | %{?with_no_dynamic_context:%patch10 -p1} |
3a527d22 | 377 | %patch11 -p1 |
b3024b38 | 378 | %patch12 -p1 |
6d43167c | 379 | %patch13 -p1 |
a41118d0 | 380 | %patch14 -p1 |
c4036d6e | 381 | |
8f413f5a | 382 | install %{SOURCE9} package-management.txt |
47f9cd5f | 383 | |
c4036d6e | 384 | %build |
ac7f10fe AM |
385 | unset LD_SYMBOLIC_FUNCTIONS || : |
386 | ||
b6503b78 | 387 | %if %{with dietlibc} |
fcf60dd0 | 388 | CFLAGS="%{rpmcflags} -D__GLIBC__ -D__KERNEL_STRICT_NAMES=1 -U__STRICT_ANSI__" |
b6503b78 | 389 | %endif |
84567ffc JR |
390 | %{__aclocal} -I m4 |
391 | %{__automake} | |
31c082fa | 392 | %{__autoconf} |
9f81736b JR |
393 | %configure \ |
394 | --with-initrddir=/etc/rc.d/init.d \ | |
395 | --enable-release \ | |
6f41121b | 396 | --enable-apis=NOLEGACY \ |
893c90d5 | 397 | --with-initscripts=sysv \ |
398 | --%{?with_dietlibc:en}%{!?with_dietlibc:dis}able-dietlibc \ | |
e8b52e06 | 399 | MKTEMP=/bin/mktemp \ |
84567ffc | 400 | MOUNT=/bin/mount \ |
e8b52e06 | 401 | PS=/bin/ps \ |
7ae711b9 | 402 | UMOUNT=/bin/umount \ |
2151e92d | 403 | IP=/sbin/ip \ |
c993b99d | 404 | IPTABLES=%{_usrsbin}/iptables \ |
e8b52e06 JR |
405 | MODPROBE=/sbin/modprobe \ |
406 | NAMEIF=/sbin/nameif \ | |
407 | RMMOD=/sbin/rmmod \ | |
408 | VCONFIG=/sbin/vconfig \ | |
c993b99d | 409 | WGET=%{_usrbin}/wget \ |
c4036d6e | 410 | |
9f81736b | 411 | %{__make} all |
ea52b140 | 412 | %{?with_doc:%{__make} doc} |
c4036d6e | 413 | |
e128cb8a ER |
414 | %{__make} -C vproc-%{_vproc_version} \ |
415 | CC="%{__cc}" \ | |
416 | CFLAGS="%{rpmcflags}" | |
417 | ||
c4036d6e AM |
418 | %install |
419 | rm -rf $RPM_BUILD_ROOT | |
4961db11 | 420 | install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d,cron.d},/dev/pts} \ |
084b5d80 | 421 | $RPM_BUILD_ROOT{%{_sysconfdir}/vservices,/vservers/.pkg} |
27ad8b1b | 422 | |
e8d85bc2 | 423 | %{__make} -j1 install install-distribution \ |
c4036d6e AM |
424 | DESTDIR=$RPM_BUILD_ROOT |
425 | ||
47f9cd5f JR |
426 | chmod -R +rX $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/* |
427 | ||
9f81736b JR |
428 | for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do |
429 | s=`basename $i | sed s/v_//` | |
c993b99d | 430 | cat >$RPM_BUILD_ROOT%{_sysconfdir}/vservices/$s << EOF |
9f81736b JR |
431 | # IP addresses/interfaces to bound $s service to |
432 | #IP=10.0.0.1 | |
433 | #IP=eth0 | |
434 | EOF | |
435 | done | |
c4036d6e | 436 | |
c993b99d | 437 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE1} > \ |
a91f83e5 | 438 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide |
c993b99d | 439 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE2} > \ |
f16cd315 | 440 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers |
c993b99d | 441 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE3} > \ |
a91f83e5 | 442 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy |
c993b99d | 443 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE4} > \ |
a91f83e5 | 444 | $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr |
f16cd315 JR |
445 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE5} > \ |
446 | $RPM_BUILD_ROOT/etc/sysconfig/vservers | |
a91f83e5 | 447 | |
9f81736b | 448 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy |
536c7360 | 449 | |
e5f7ee9a JR |
450 | install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vrootdevices |
451 | install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/vrootdevices | |
14d38be9 | 452 | install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/initpost |
e970f749 | 453 | install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/initpost |
6b673994 | 454 | install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ti/initpost |
e128cb8a | 455 | install vproc-%{_vproc_version}/vproc $RPM_BUILD_ROOT%{_sbindir} |
4961db11 PG |
456 | install %{SOURCE12} $RPM_BUILD_ROOT%{_libdir}/%{name}/vhashify.cron |
457 | ||
458 | cat > $RPM_BUILD_ROOT/etc/cron.d/vservers << EOF | |
459 | 02 2 * * 0 root %{_libdir}/%{name}/vhashify.cron | |
460 | EOF | |
e5f7ee9a | 461 | |
f996608b | 462 | ln -sf null $RPM_BUILD_ROOT/dev/initctl |
b5d3f919 | 463 | |
eed0f0e7 | 464 | %ifarch %{x8664} |
51986043 AM |
465 | # ac i686 |
466 | cp -a $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac \ | |
467 | $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac-i686 | |
30f41eb5 AM |
468 | echo "%{_target_cpu}-%{_target_vendor}-linux" > $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/rpm/platform |
469 | echo "i686-%{_target_vendor}-linux" > $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac-i686/rpm/platform | |
51986043 AM |
470 | cp -a $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac \ |
471 | $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac-i686 | |
e94d4df0 | 472 | sed -i 's/%{_x8664name}/i686/g' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac-i686/poldek/*.conf |
51986043 AM |
473 | |
474 | # th i686 | |
475 | cp -a $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th \ | |
476 | $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th-i686 | |
30f41eb5 AM |
477 | echo "%{_target_cpu}-%{_target_vendor}-linux" > $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/rpm/platform |
478 | echo "i686-%{_target_vendor}-linux" > $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th-i686/rpm/platform | |
51986043 AM |
479 | cp -a $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th \ |
480 | $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th-i686 | |
e94d4df0 | 481 | sed -i 's/%{_x8664name}/i686/g' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th-i686/poldek/*.conf |
51986043 | 482 | |
6b673994 | 483 | # titanium i686 |
484 | cp -a $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ti \ | |
485 | $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ti-i686 | |
486 | echo "%{_target_cpu}-%{_target_vendor}-linux" > $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ti/rpm/platform | |
487 | echo "i686-%{_target_vendor}-linux" > $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ti-i686/rpm/platform | |
488 | cp -a $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ti \ | |
489 | $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ti-i686 | |
e94d4df0 | 490 | sed -i 's/%{_x8664name}/i686/g' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ti-i686/poldek/*.conf |
6b673994 | 491 | |
51986043 | 492 | # ac x86_64 |
db9064d3 AM |
493 | sed -i 's/^glibc$/glibc64/' $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/pkgs/01 |
494 | sed -i 's/glibc\-\[0\-9\]\*\.rpm/glibc64\-\[0\-9\]\*\.rpm/' $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/rpmlist.d/00.lst | |
edb21b00 AM |
495 | sed -i 's/x86_64/amd64/g' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac/poldek/*.conf |
496 | %endif | |
497 | %ifarch i486 | |
498 | sed -i 's/i486/i386/g' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac/poldek/*.conf | |
eed0f0e7 JR |
499 | %endif |
500 | ||
2c4297d9 | 501 | # XXX baggins check this: needed but seems unused |
2d6d0c17 ER |
502 | install -d $RPM_BUILD_ROOT/var/cache/vservers |
503 | ||
2c4297d9 ER |
504 | # we have our own initscript which does the same |
505 | rm -f $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default | |
6d43167c | 506 | rm -f $RPM_BUILD_ROOT%{_libdir}/util-vserver/vserver-wrapper |
2c4297d9 | 507 | # probaly the part of them |
6d43167c | 508 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/vservers.conf |
2c4297d9 | 509 | |
421cacb8 AM |
510 | %clean |
511 | rm -rf $RPM_BUILD_ROOT | |
c4036d6e | 512 | |
9f81736b JR |
513 | %post |
514 | %{_sbindir}/setattr --barrier /vservers || : | |
515 | ||
7a93d1d4 | 516 | %post lib -p /sbin/ldconfig |
9f81736b JR |
517 | %postun lib -p /sbin/ldconfig |
518 | ||
d76eaeb7 JB |
519 | %triggerpostun build -- %{name}-build < 0.30.210-5.2 |
520 | if [ -f /etc/vservers/.distributions/pld2.0/poldek/poldek.conf.rpmsave ]; then | |
521 | mv -f /etc/vservers/.distributions/{pld2.0,pld-ac}/poldek/poldek.conf.rpmsave | |
522 | fi | |
523 | ||
524 | # kill old vserver specific package ignores which are no longer needed | |
525 | l=`egrep '^ignore.*(basesystem|SysVinit|rc-scripts)' /etc/vservers/*/apps/pkgmgmt/base/poldek/etc/poldek.conf -l 2>/dev/null` | |
526 | if [ "$l" ]; then | |
527 | %{__sed} -i -e '/^ignore/s, \(basesystem\|SysVinit\|rc-scripts\),,g' $l | |
528 | fi | |
529 | ||
9f81736b | 530 | %post init |
3996b68e | 531 | /sbin/chkconfig --add vrootdevices |
9f81736b | 532 | /sbin/chkconfig --add vprocunhide |
09abf0a6 | 533 | /sbin/chkconfig --add vservers |
3996b68e | 534 | if [ ! -f /var/lock/subsys/vrootdevices ]; then |
2d9f659e | 535 | echo "Type \"/sbin/service vrootdevices start\" to assign virtual root devices" 1>&2 |
3996b68e | 536 | fi |
26dd3d85 | 537 | if [ ! -f /var/lock/subsys/vprocunhide ]; then |
2d9f659e | 538 | echo "Type \"/sbin/service vprocunhide start\" to set /proc visibility for vservers" 1>&2 |
26dd3d85 | 539 | fi |
09abf0a6 | 540 | if [ ! -f /var/lock/subsys/vservers ]; then |
2d9f659e | 541 | echo "Type \"/sbin/service vservers start\" to start vservers" 1>&2 |
26dd3d85 | 542 | fi |
9f81736b JR |
543 | |
544 | %preun init | |
545 | if [ "$1" = "0" ]; then | |
2d9f659e ER |
546 | %service vservers stop |
547 | %service vprocunhide stop | |
548 | %service vrootdevices stop | |
09abf0a6 | 549 | /sbin/chkconfig --del vservers |
26dd3d85 | 550 | /sbin/chkconfig --del vprocunhide |
3996b68e | 551 | /sbin/chkconfig --del vrootdevices |
9f81736b JR |
552 | fi |
553 | ||
554 | %post legacy | |
555 | /sbin/chkconfig --add rebootmgr | |
556 | /sbin/chkconfig --add vservers-legacy | |
26dd3d85 | 557 | if [ ! -f /var/lock/subsys/rebootmgr ] ; then |
2d9f659e | 558 | echo "Type \"/sbin/service rebootmgr start\" to start reboot manager for legacy vservers" 1>&2 |
26dd3d85 ER |
559 | fi |
560 | if [ ! -f /var/lock/subsys/vservers-legacy ] ; then | |
2d9f659e | 561 | echo "Type \"/sbin/service vservers-legacy start\" to start legacy vservers" 1>&2 |
26dd3d85 | 562 | fi |
9f81736b JR |
563 | |
564 | %preun legacy | |
565 | if [ "$1" = "0" ]; then | |
2d9f659e ER |
566 | %service rebootmgr stop |
567 | %service vservers-legacy stop | |
9f81736b JR |
568 | /sbin/chkconfig --del rebootmgr |
569 | /sbin/chkconfig --del vservers-legacy | |
570 | fi | |
b2c6ab86 | 571 | |
c4036d6e AM |
572 | %files |
573 | %defattr(644,root,root,755) | |
ea52b140 | 574 | %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt |
575 | %{?with_doc:%doc doc/*.html} | |
b7fb7f75 | 576 | %dir %{_sysconfdir}/vservers |
9f81736b JR |
577 | %dir %{_sysconfdir}/vservers/.defaults |
578 | %dir %{_sysconfdir}/vservers/.defaults/apps | |
579 | %dir %{_sysconfdir}/vservers/.defaults/files | |
047cae91 JR |
580 | %{_sysconfdir}/vservers/.defaults/vdirbase |
581 | %{_sysconfdir}/vservers/.defaults/run.rev | |
9f81736b | 582 | /sbin/vshelper |
fc8ba798 JR |
583 | %attr(755,root,root) %{_sbindir}/chbind |
584 | %attr(755,root,root) %{_sbindir}/chcontext | |
585 | %attr(755,root,root) %{_sbindir}/chxid | |
9f81736b | 586 | %attr(755,root,root) %{_sbindir}/exec-cd |
fc8ba798 | 587 | %attr(755,root,root) %{_sbindir}/lsxid |
328586ba | 588 | %attr(755,root,root) %{_sbindir}/naddress |
589 | %attr(755,root,root) %{_sbindir}/nattribute | |
590 | %attr(755,root,root) %{_sbindir}/ncontext | |
fc8ba798 JR |
591 | %attr(755,root,root) %{_sbindir}/reducecap |
592 | %attr(755,root,root) %{_sbindir}/setattr | |
593 | %attr(755,root,root) %{_sbindir}/showattr | |
594 | %attr(755,root,root) %{_sbindir}/vattribute | |
595 | %attr(755,root,root) %{_sbindir}/vcontext | |
596 | %attr(755,root,root) %{_sbindir}/vdlimit | |
597 | %attr(755,root,root) %{_sbindir}/vnamespace | |
598 | %attr(755,root,root) %{_sbindir}/vkill | |
599 | %attr(755,root,root) %{_sbindir}/vlimit | |
893c90d5 | 600 | %attr(755,root,root) %{_sbindir}/vdevmap |
9f81736b | 601 | %attr(755,root,root) %{_sbindir}/vdu |
e128cb8a | 602 | %attr(755,root,root) %{_sbindir}/vproc |
9f81736b JR |
603 | %attr(755,root,root) %{_sbindir}/vps |
604 | %attr(755,root,root) %{_sbindir}/vpstree | |
fc8ba798 JR |
605 | %attr(755,root,root) %{_sbindir}/vrsetup |
606 | %attr(755,root,root) %{_sbindir}/vsched | |
9f81736b | 607 | %attr(755,root,root) %{_sbindir}/vserver |
fc8ba798 | 608 | %attr(755,root,root) %{_sbindir}/vserver-info |
9f81736b JR |
609 | %attr(755,root,root) %{_sbindir}/vserver-stat |
610 | %attr(755,root,root) %{_sbindir}/vsomething | |
67457f13 | 611 | %attr(755,root,root) %{_sbindir}/vtag |
9f81736b | 612 | %attr(755,root,root) %{_sbindir}/vtop |
fc8ba798 | 613 | %attr(755,root,root) %{_sbindir}/vuname |
31c082fa | 614 | %attr(755,root,root) %{_sbindir}/vwait |
b2c6ab86 | 615 | %dir %{_libdir}/%{name} |
b7fb7f75 | 616 | %dir %{_libdir}/%{name}/defaults |
fc8ba798 JR |
617 | %{_libdir}/%{name}/FEATURES.txt |
618 | %{_libdir}/%{name}/util-vserver-vars | |
b7fb7f75 | 619 | %{_libdir}/%{name}/defaults/* |
b2c6ab86 | 620 | %attr(755,root,root) %{_libdir}/%{name}/capchroot |
b7fb7f75 | 621 | %attr(755,root,root) %{_libdir}/%{name}/chain-echo |
328586ba | 622 | %attr(755,root,root) %{_libdir}/%{name}/chbind-compat |
b7fb7f75 | 623 | %attr(755,root,root) %{_libdir}/%{name}/check-unixfile |
fc8ba798 | 624 | %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat |
31c082fa | 625 | %attr(755,root,root) %{_libdir}/%{name}/chroot-sh |
b7fb7f75 | 626 | %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit |
b2c6ab86 JB |
627 | %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel |
628 | %attr(755,root,root) %{_libdir}/%{name}/filetime | |
b7fb7f75 | 629 | %{_libdir}/%{name}/functions |
67457f13 | 630 | %attr(755,root,root) %{_libdir}/%{name}/h2ext |
631 | %attr(755,root,root) %{_libdir}/%{name}/h2ext-worker | |
b7fb7f75 JR |
632 | %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive |
633 | %attr(755,root,root) %{_libdir}/%{name}/lockfile | |
634 | %attr(755,root,root) %{_libdir}/%{name}/mask2prefix | |
b2c6ab86 | 635 | %attr(755,root,root) %{_libdir}/%{name}/readlink |
b7fb7f75 JR |
636 | %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo |
637 | %attr(755,root,root) %{_libdir}/%{name}/secure-mount | |
638 | %attr(755,root,root) %{_libdir}/%{name}/sigexec | |
639 | %attr(755,root,root) %{_libdir}/%{name}/start-vservers | |
b7fb7f75 | 640 | %attr(755,root,root) %{_libdir}/%{name}/vprocunhide |
b7fb7f75 | 641 | %{_libdir}/%{name}/vserver.* |
d2e6de4d | 642 | %{_libdir}/%{name}/vserver-setup.* |
aaa9538c | 643 | %attr(755,root,root) %{_libdir}/%{name}/vserver-build |
d2e6de4d | 644 | %{_libdir}/%{name}/vserver-build.* |
b2c6ab86 | 645 | %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh |
4961db11 PG |
646 | %attr(755,root,root) %{_libdir}/%{name}/vhashify |
647 | %attr(755,root,root) %{_libdir}/%{name}/vhashify.cron | |
b7fb7f75 JR |
648 | %attr(755,root,root) %{_libdir}/%{name}/vshelper |
649 | %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync | |
893c90d5 | 650 | %attr(755,root,root) %{_libdir}/%{name}/vsysctl |
fc8ba798 JR |
651 | %{_mandir}/man8/chbind.8* |
652 | %{_mandir}/man8/chcontext.8* | |
653 | %{_mandir}/man8/reducecap.8* | |
654 | %{_mandir}/man8/vps.8* | |
655 | %{_mandir}/man8/vpstree.8* | |
656 | %{_mandir}/man8/vserver-stat.8* | |
657 | %{_mandir}/man8/vserver.8* | |
658 | %{_mandir}/man8/vtop.8* | |
c993b99d | 659 | %attr(000,root,root) %dir /vservers |
2b3c93e4 | 660 | %dir /vservers/.pkg |
9f81736b JR |
661 | %dir %{_localstatedir}/run/vservers |
662 | %dir %{_localstatedir}/run/vservers.rev | |
663 | %dir %{_localstatedir}/run/vshelper | |
2d6d0c17 | 664 | %dir /var/cache/vservers |
421cacb8 | 665 | |
d76eaeb7 JB |
666 | %files lib |
667 | %defattr(644,root,root,755) | |
668 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
669 | ||
421cacb8 AM |
670 | %files devel |
671 | %defattr(644,root,root,755) | |
ea52b140 | 672 | %{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html} |
b7fb7f75 JR |
673 | %attr(755,root,root) %{_libdir}/lib*.so |
674 | %{_libdir}/lib*.la | |
33754dff | 675 | %{_includedir}/vserver*.h |
b7fb7f75 | 676 | %{_pkgconfigdir}/*.pc |
421cacb8 AM |
677 | |
678 | %files static | |
679 | %defattr(644,root,root,755) | |
680 | %{_libdir}/libvserver.a | |
9f81736b | 681 | |
9f81736b JR |
682 | %files build |
683 | %defattr(644,root,root,755) | |
8f413f5a | 684 | %doc contrib/yum*.patch package-management.txt |
9f81736b JR |
685 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify |
686 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash | |
c21e4fcc JR |
687 | %dir %{_sysconfdir}/vservers/.distributions |
688 | %dir %{_sysconfdir}/vservers/.distributions/.common | |
689 | %dir %{_sysconfdir}/vservers/.distributions/.common/pubkeys | |
14d38be9 ER |
690 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac |
691 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek | |
8e7b0f24 | 692 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/*.conf |
39f02c0d | 693 | %ifarch %{x8664} |
51986043 AM |
694 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac-i686 |
695 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac-i686/poldek | |
696 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac-i686/poldek/*.conf | |
51986043 AM |
697 | %dir %{_sysconfdir}/vservers/.distributions/pld-th-i686 |
698 | %dir %{_sysconfdir}/vservers/.distributions/pld-th-i686/poldek | |
699 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-th-i686/poldek/*.conf | |
6b673994 | 700 | %dir %{_sysconfdir}/vservers/.distributions/pld-ti-i686 |
701 | %dir %{_sysconfdir}/vservers/.distributions/pld-ti-i686/poldek | |
702 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ti-i686/poldek/*.conf | |
39f02c0d AM |
703 | %endif |
704 | %dir %{_sysconfdir}/vservers/.distributions/pld-th | |
705 | %dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek | |
706 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-th/poldek/*.conf | |
6b673994 | 707 | %dir %{_sysconfdir}/vservers/.distributions/pld-ti |
708 | %dir %{_sysconfdir}/vservers/.distributions/pld-ti/poldek | |
709 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ti/poldek/*.conf | |
9f81736b JR |
710 | %attr(755,root,root) %{_libdir}/%{name}/rpm-fake* |
711 | %dir %{_libdir}/%{name}/distributions | |
2b8192a7 ER |
712 | %attr(-,root,root) %{_libdir}/%{name}/distributions/defaults |
713 | %attr(-,root,root) %{_libdir}/%{name}/distributions/pld* | |
714 | %dir %{_libdir}/%{name}/distributions/template | |
715 | %attr(755,root,root) %{_libdir}/%{name}/distributions/template/init* | |
716 | %attr(-,root,root) %{_libdir}/%{name}/distributions/redhat | |
9f81736b JR |
717 | %{_libdir}/%{name}/vserver-build.* |
718 | %{_libdir}/%{name}/vserver-setup.functions | |
719 | %{_libdir}/%{name}/defaults/fstab | |
720 | %{_libdir}/%{name}/defaults/debootstrap.uri | |
721 | %{_libdir}/%{name}/defaults/vunify-exclude | |
722 | %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt | |
723 | %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker | |
893c90d5 | 724 | %attr(755,root,root) %{_libdir}/%{name}/vclone |
9f81736b | 725 | %attr(755,root,root) %{_libdir}/%{name}/vcopy |
9f81736b | 726 | %attr(755,root,root) %{_libdir}/%{name}/vpkg |
84567ffc | 727 | %attr(755,root,root) %{_libdir}/%{name}/vpoldek-worker |
9f81736b JR |
728 | %attr(755,root,root) %{_libdir}/%{name}/vrpm-* |
729 | %attr(755,root,root) %{_libdir}/%{name}/vserver-build | |
730 | %attr(755,root,root) %{_libdir}/%{name}/vunify | |
731 | %attr(755,root,root) %{_libdir}/%{name}/vyum-worker | |
732 | %attr(755,root,root) %{_sbindir}/vapt-get | |
84567ffc | 733 | %attr(755,root,root) %{_sbindir}/vpoldek |
9f81736b JR |
734 | %attr(755,root,root) %{_sbindir}/vrpm |
735 | %attr(755,root,root) %{_sbindir}/vyum | |
9f81736b | 736 | |
d76eaeb7 JB |
737 | %files init |
738 | %defattr(644,root,root,755) | |
739 | %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper | |
740 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vrootdevices | |
741 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers | |
742 | %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/vservers | |
743 | %attr(754,root,root) /etc/rc.d/init.d/vprocunhide | |
744 | %attr(754,root,root) /etc/rc.d/init.d/vrootdevices | |
745 | %attr(754,root,root) /etc/rc.d/init.d/vservers | |
746 | ||
747 | %files legacy | |
748 | %defattr(644,root,root,755) | |
749 | %dir %{_sysconfdir}/vservices | |
750 | %{_sysconfdir}/vservices/* | |
751 | %dir %{_libdir}/%{name}/legacy | |
752 | %attr(755,root,root) %{_libdir}/%{name}/legacy/* | |
753 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy | |
754 | %attr(754,root,root) /etc/rc.d/init.d/v_* | |
755 | %attr(754,root,root) /etc/rc.d/init.d/rebootmgr | |
756 | %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy | |
757 | %attr(755,root,root) %{_sbindir}/vserver-copy | |
758 | %{_mandir}/man8/distrib-info.8* | |
759 | %{_mandir}/man8/rebootmgr.8* | |
760 | %{_mandir}/man8/vserver-copy.8* | |
761 | ||
762 | %files -n vserver-distro-centos | |
763 | %defattr(644,root,root,755) | |
764 | %{_libdir}/util-vserver/distributions/centos* | |
765 | ||
d765f9b1 JB |
766 | %files -n vserver-distro-debian |
767 | %defattr(644,root,root,755) | |
de976288 JB |
768 | %dir %{_libdir}/%{name}/distributions/debian |
769 | %{_libdir}/%{name}/distributions/debian/debootstrap.script | |
770 | %attr(755,root,root) %{_libdir}/%{name}/distributions/debian/initpost | |
d765f9b1 JB |
771 | %{_libdir}/%{name}/distributions/etch |
772 | %{_libdir}/%{name}/distributions/lenny | |
773 | %{_libdir}/%{name}/distributions/sid | |
774 | ||
0e0c7ff7 ER |
775 | %files -n vserver-distro-fedora |
776 | %defattr(644,root,root,755) | |
d765f9b1 JB |
777 | %dir %{_sysconfdir}/vservers/.distributions/f7 |
778 | %dir %{_sysconfdir}/vservers/.distributions/f7/apt | |
779 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/f7/apt/sources.list | |
0e0c7ff7 ER |
780 | %dir %{_sysconfdir}/vservers/.distributions/fc* |
781 | %dir %{_sysconfdir}/vservers/.distributions/fc*/apt | |
782 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/fc*/apt/sources.list | |
d765f9b1 | 783 | %{_libdir}/%{name}/distributions/f7 |
0e0c7ff7 ER |
784 | %{_libdir}/%{name}/distributions/fc* |
785 | ||
d76eaeb7 JB |
786 | %files -n vserver-distro-gentoo |
787 | %defattr(644,root,root,755) | |
788 | %dir %{_libdir}/util-vserver/distributions/gentoo | |
789 | %attr(755,root,root) %{_libdir}/util-vserver/distributions/gentoo/* | |
790 | %attr(755,root,root) %{_sbindir}/vdispatch-conf | |
791 | %attr(755,root,root) %{_sbindir}/vemerge | |
792 | %attr(755,root,root) %{_sbindir}/vesync | |
793 | %attr(755,root,root) %{_sbindir}/vupdateworld | |
794 | ||
0e0c7ff7 ER |
795 | %files -n vserver-distro-redhat |
796 | %defattr(644,root,root,755) | |
797 | %dir %{_sysconfdir}/vservers/.distributions/rh* | |
798 | %dir %{_sysconfdir}/vservers/.distributions/rh*/apt | |
799 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/rh*/apt/sources.list | |
800 | %{_libdir}/%{name}/distributions/rh* | |
801 | ||
802 | %files -n vserver-distro-suse | |
803 | %defattr(644,root,root,755) | |
804 | %dir %{_sysconfdir}/vservers/.distributions/suse* | |
805 | %dir %{_sysconfdir}/vservers/.distributions/suse*/apt | |
806 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/suse*/apt/sources.list | |
807 | %{_libdir}/%{name}/distributions/suse* | |
d765f9b1 JB |
808 | |
809 | %files -n vserver-distro-ubuntu | |
810 | %defattr(644,root,root,755) | |
811 | %{_libdir}/%{name}/distributions/breezy | |
812 | %{_libdir}/%{name}/distributions/dapper | |
813 | %{_libdir}/%{name}/distributions/edgy | |
814 | %{_libdir}/%{name}/distributions/feisty | |
815 | %{_libdir}/%{name}/distributions/gutsy | |
816 | %{_libdir}/%{name}/distributions/hoary | |
817 | %{_libdir}/%{name}/distributions/warty |