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