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