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