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