- rel 2; build with glibc, so it will also work on systems with newer kernels that...
[packages/util-vserver.git] / util-vserver.spec
CommitLineData
b9f4525c 1# TODO: verify systemd files
2cc169e5
ER
2# NOTE:
3# - m68k and mips are the only not supported archs
9f1aa96a 4#
9f81736b 5# Conditional build:
826adff6 6%bcond_with dietlibc # don't use dietlibc (ask for troubles)
6730cb3d 7%bcond_without doc # don't build documentation which needed LaTeX
204e5db3 8%bcond_without no_dynamic_context # disable enforcement of disabled dynamic context
6730cb3d 9%bcond_with xalan # use the xalan xslt processor
6cdf8db5 10%bcond_with legacy # build legacy 1.x utils
04c2a702 11
22ee1f7a 12%define vproc_version 0.01
04c2a702 13
8fe55c88
JR
14%ifarch ppc
15# pdflatex: refman: Invalid argument
16%undefine with_doc
17%endif
b681e6a9 18
35d779f2 19# reqdb_pkg and reqdb_ver must match value from current rpm package in distro
35d779f2 20%define reqdb_ver 5.2
076cf350 21%define reqdb_pkg db%{reqdb_ver}
5591d8ca 22%define snap pre3126
826adff6 23%define rel 2
c4036d6e 24Summary: Linux virtual server utilities
33f71e01 25Summary(pl.UTF-8): Narzędzia dla linuksowych serwerów wirtualnych
c4036d6e 26Name: util-vserver
bc2ffe55 27Version: 0.30.216
2c41f437 28Release: 1.%{snap}.%{rel}
c4036d6e 29License: GPL
fc8ba798 30Group: Applications/System
95607a22 31Source0: http://people.linux-vserver.org/~dhozac/t/uv-testing/%{name}-%{version}-%{snap}.tar.xz
5591d8ca 32# Source0-md5: f4bd6e49baf2c6dd50ff0c9b6415a1c2
536c7360 33Source1: vprocunhide.init
f16cd315 34Source2: vservers.init
536c7360 35Source3: vservers-legacy.init
9f81736b 36Source4: rebootmgr.init
f16cd315 37Source5: vservers.sysconfig
9f81736b 38Source6: vservers-legacy.sysconfig
e5f7ee9a
JR
39Source7: vrootdevices.init
40Source8: vrootdevices.sysconfig
19844202 41# A bit of documentation explaining package management
47f9cd5f 42# http://www.paul.sladen.org/vserver/archives/200505/0078.html
b674c64a 43Source9: %{name}-pkgmgmt.txt
ceff5a94 44Source10: %{name}-initpost.sh
22ee1f7a 45Source11: http://www.13thfloor.at/vserver/s_release/v1.2.10/vproc-%{vproc_version}.tar.bz2
e128cb8a 46# Source11-md5: 1d030717bdbc958ea4b35fd2410dad85
4961db11 47Source12: %{name}-vhashify.cron
468087c5 48Source13: ftp://ftp.pld-linux.org/dists/ac/PLD-2.0-Ac-GPG-key.asc
49# Source13-md5: 8e7574d1de2fa95c2c54cd2ee03364c1
50Source14: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
51# Source14-md5: 08b29584dd349aac9caa7610131a0a88
49e22b19 52Source15: %{name}.init
01331769 53Patch0: %{name}-vsysvwrapper.patch
880068a9 54Patch1: %{name}-pld.patch
54c149ac 55Patch2: %{name}-centos.patch
1e07a54b 56Patch3: %{name}-tld.patch
01331769 57Patch4: %{name}-m4-diet.patch
1e14ade8 58Patch5: %{name}-yum-verb-nogpg.patch
f16cd315 59Patch6: %{name}-build-umask.patch
33beda22 60Patch8: %{name}-vprocunhide.patch
616759c3 61Patch9: %{name}-dev.patch
f5385f4a 62Patch10: %{name}-no-dynamic-ctx.patch
3a527d22 63Patch11: %{name}-more-ip.patch
fe9ea50c 64Patch12: %{name}-rpm-fake-resolver-badperm-errorlogging.patch
6d43167c 65Patch13: %{name}-tmpdir.patch
e7ac6dd1
ER
66Patch14: %{name}-rpmpath.patch
67Patch15: %{name}-interfaces-ignore-cvs-dir.patch
761afb0b 68Patch16: %{name}-personalitymachine.patch
5591d8ca 69
bc2ffe55 70Patch18: %{name}-vprocunhide-net.patch
bac1963d 71# http://glen.alkohol.ee/pld/util-vserver-dbrebuild-internalize4.patch
bc2ffe55 72Patch19: %{name}-dbrebuild-internalize4.patch
bc2ffe55 73Patch21: %{name}-bash-wrapper.patch
94a3845f 74Patch22: %{name}-pivot-root-ugly-hack.patch
21a3b8ba 75Patch24: vunify-more-exclude.patch
27dc70bd 76Patch25: stat.patch
1f4eb45e 77
696acb34 78Patch27: %{name}-rpm5.patch
7352b984 79Patch28: diet-ccache.patch
c8b51fec 80Patch29: %{name}-centos6.patch
5e98d590 81Patch30: vsysctl-ignore-files.patch
f9347a64 82URL: http://savannah.nongnu.org/projects/util-vserver/
b9f4525c
JB
83BuildRequires: autoconf >= 2.57
84BuildRequires: automake >= 1:1.9
6f3fd704 85BuildRequires: beecrypt-devel
925e8edc 86BuildRequires: ctags
95607a22 87%{?with_dietlibc:BuildRequires: dietlibc-static >= 2:0.33-4}
6730cb3d 88BuildRequires: e2fsprogs-devel
6f3fd704 89BuildRequires: libstdc++-devel
c740301d 90BuildRequires: libtool >= 1.5.14
08d35c12 91BuildRequires: pkgconfig
b9f4525c
JB
92BuildRequires: python-devel >= 1:2.4
93BuildRequires: python-modules >= 1:2.4
7890624b 94BuildRequires: rpm-pythonprov
d6ac0c8c 95BuildRequires: rpmbuild(macros) >= 1.647
08d35c12 96BuildRequires: sed >= 4.0
b9f4525c
JB
97BuildRequires: systemd-devel
98BuildRequires: tar >= 1:1.22
99BuildRequires: xz
54d8402e 100%if %{with doc}
c27aa395 101BuildRequires: doxygen >= 1:1.7.3
3aaf9ac9 102BuildRequires: graphviz
e8b52e06 103BuildRequires: libxslt-progs
11eacd16 104BuildRequires: python-devel
a1ab5811 105%if "%{pld_release}" != "th"
6d7f9a61 106BuildRequires: tetex-fonts-jknappen
107BuildRequires: tetex-format-pdflatex
108BuildRequires: tetex-makeindex
109BuildRequires: tetex-metafont
110%else
888b8665 111BuildRequires: texlive-fonts-rsfs
bc2ffe55
JR
112BuildRequires: texlive-fonts-type1-urw
113BuildRequires: texlive-format-pdflatex
91ab8aa0 114BuildRequires: texlive-latex-ams
c27aa395 115BuildRequires: texlive-latex-extend
8d5e0559 116BuildRequires: texlive-latex-ucs
65ef8302 117BuildRequires: texlive-latex-wasysym
bc2ffe55
JR
118BuildRequires: texlive-makeindex
119BuildRequires: texlive-pdftex
120BuildRequires: texlive-xetex
6d7f9a61 121%endif
9f81736b 122%{?with_xalan:BuildRequires: xalan-j}
54d8402e 123%endif
2d6d0c17 124Requires(post,preun): /sbin/chkconfig
33ef531a 125Requires: %{name}-lib = %{version}-%{release}
2bef02ad 126Requires: coreutils
1e14ade8 127Requires: diffutils
2709d8e3 128Requires: glibc-misc
7ccbf05b 129Requires: make
fc5c9ef4 130Requires: mktemp >= 1.5-18
796b8720 131Requires: mount
f09aa8ea 132Requires: pld-release
cf832f1a 133Requires: rc-scripts >= 0.4.3.4
5dc515be 134#Requires: rpm >= 5.4.10-36
07c48fe5 135Requires: tar
fa6b08f2 136Requires: uname(release) >= 2.6.27
a1ab5811 137Requires: util-linux >= 2.13
33ef531a 138Requires: vserver-distro-pld = %{version}-%{release}
a343f348 139Suggests: %{reqdb_pkg}-utils
f09aa8ea 140Suggests: crondaemon
4f782c13 141Obsoletes: util-vserver-build
bf0ccb73 142Obsoletes: util-vserver-core
82a15eaa 143Obsoletes: util-vserver-init
11eacd16 144Conflicts: poldek < 0.18.8-10
c4036d6e
AM
145BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
146
6492e391
AM
147%if %{with dietlibc}
148# binaries created with this option have broken segments when using dietlibc
149%define filterout_ld -Wl,-z,relro
150%endif
151
c993b99d
ER
152# for adapter
153%define _usrbin /usr/bin
f996608b
ER
154%define _usrsbin /usr/sbin
155%define _usrlib /usr/lib
c993b99d 156
c4036d6e
AM
157%description
158This package provides the components and a framework to setup virtual
f9347a64 159servers. A virtual server runs inside a Linux server. It is
c4036d6e
AM
160nevertheless highly independent. As such, you can run various services
161with normal configuration. The various vservers can't interact with
162each other and can't interact with services in the main server.
163
164This requires a special kernel supporting the new new_s_context and
165set_ipv4root system call.
166
fc8ba798 167This package contains utilities which are required to communicate with
82a15eaa 168the Linux-Vserver enabled kernel, utilities which assist in building
11eacd16
AM
169Vservers and SysV initscripts which start and stop Vservers and
170related tools.
fc8ba798 171
aa0485fb
JR
172%description -l pl.UTF-8
173Ten pakiet dostarcza składniki i szkielet do tworzenia wirtualnych
174serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz
175jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać
176różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić
177w interakcję z innymi ani z usługami na głównym serwerze.
f9347a64 178
aa0485fb 179Wymaga to specjalnego jądra obsługującego nowe wywołania systemowe
f9347a64
JB
180new_s_context i set_ipv4root.
181
aa0485fb 182Ten pakiet zawiera narzędzia wymagane do komunikacji z jądrem z
82a15eaa
JR
183włączonym mechanizmem Linux-Vserver, narzędzia pomagające przy
184budowaniu Vserwerów i skrypty inicjalizujące SysV uruchamiające i
185zatrzymujące Vserwery oraz powiązane narzędzia.
fc8ba798 186
d76eaeb7
JB
187%package lib
188Summary: Dynamic libraries for util-vserver
189Summary(pl.UTF-8): Biblioteki dynamiczne dla pakietu util-vserver
190Group: Libraries
191
192%description lib
193util-vserver provides the components and a framework to setup virtual
194servers. A virtual server runs inside a linux server. It is
195nevertheless highly independent. As such, you can run various services
196pith normal configuration. The various vservers can't interact with
197each other and can't interact with services in the main server.
198
199This package contains the shared libraries needed by all other
200'util-vserver' subpackages.
201
202%description lib -l pl.UTF-8
203util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych
204serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz
205jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać
206różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić
207w interakcję z innymi ani z usługami na głównym serwerze.
208
209Ten pakiet zawiera biblioteki współdzielone wymagane przez wszystkie
210podpakiety util-vserver.
211
421cacb8 212%package devel
b2c6ab86 213Summary: Development files for Linux vserver libraries
33f71e01 214Summary(pl.UTF-8): Pliki programistyczne dla bibliotek linuksowego vserwera
28a38c7c 215Group: Development/Libraries
33ef531a 216Requires: %{name}-lib = %{version}-%{release}
421cacb8
AM
217
218%description devel
b2c6ab86
JB
219This package contains the development files necessary for developing
220programs which use vserver library.
421cacb8 221
aa0485fb 222%description devel -l pl.UTF-8
b2c6ab86 223Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
aa0485fb 224programów używających biblioteki vserver.
421cacb8
AM
225
226%package static
28a38c7c 227Summary: Static vserver library
33f71e01 228Summary(pl.UTF-8): Biblioteka statyczna vservera
28a38c7c 229Group: Development/Libraries
33ef531a 230Requires: %{name}-devel = %{version}-%{release}
421cacb8
AM
231
232%description static
b2c6ab86 233This package contains the static version of vserver library.
421cacb8 234
aa0485fb
JR
235%description static -l pl.UTF-8
236Ten pakiet zawiera statyczną wersję biblioteki vservera.
421cacb8 237
9f81736b
JR
238%package legacy
239Summary: Legacy utilities for util-vserver
33f71e01 240Summary(pl.UTF-8): Stare narzędzia dla util-vserver
9f81736b 241Group: Applications/System
7a93d1d4 242Requires(post,preun): /sbin/chkconfig
33ef531a 243Requires: %{name} = %{version}-%{release}
7a93d1d4 244Requires: rc-scripts
9f81736b
JR
245
246%description legacy
247util-vserver provides the components and a framework to setup virtual
248servers. A virtual server runs inside a linux server. It is
249nevertheless highly independent. As such, you can run various services
250with normal configuration. The various vservers can't interact with
251each other and can't interact with services in the main server.
252
7a93d1d4 253This package contains the tools which are needed to work with Vservers
9f81736b
JR
254having an old-style configuration.
255
aa0485fb
JR
256%description legacy -l pl.UTF-8
257util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych
258serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz
259jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać
260różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić
261w interakcję z innymi ani z usługami na głównym serwerze.
7a93d1d4 262
aa0485fb
JR
263Ten pakiet zawiera narzędzia potrzebne do pracy z Vserwerami mającymi
264konfigurację w starym stylu.
7a93d1d4 265
11eacd16
AM
266%package -n python-util-vserver
267Summary: Python interface to libutil-vserver library
268Summary(pl.UTF-8): Pythonowy interfejs do biblioteki libutil-vserver
269License: LGPL v2.1+
270Group: Libraries/Python
271
272%description -n python-util-vserver
273Python interface to libutil-vserver library.
274
275%description -n python-util-vserver -l pl.UTF-8
276Pythonowy interfejs do biblioteki libutil-vserver.
277
a94c4947 278%package -n vserver-distro-alpine
279Summary: VServer build template for Alpine Linux
280Summary(pl.UTF-8): Szablon budowania VServerów dla dystrybucji Alpine Linux
d765f9b1 281Group: Applications/System
33ef531a 282Requires: %{name} = %{version}-%{release}
d765f9b1 283
a94c4947 284%description -n vserver-distro-alpine
285VServer build template for Alpine Linux.
d765f9b1 286
a94c4947 287%description -n vserver-distro-alpine -l pl.UTF-8
288Szablon budowania VServerów dla dystrybucji Alpine Linux.
d765f9b1 289
d76eaeb7 290%package -n vserver-distro-centos
d765f9b1
JB
291Summary: VServer build template for CentOS
292Summary(pl.UTF-8): Szablon budowania VServerów dla dystrybucji CentOS
d76eaeb7 293Group: Applications/System
33ef531a
ER
294Requires: %{name} = %{version}-%{release}
295Requires: vserver-distro-redhat = %{version}-%{release}
d76eaeb7
JB
296Requires: yum
297
298%description -n vserver-distro-centos
d765f9b1 299VServer build template for CentOS 4.2 and 5.
d76eaeb7
JB
300
301%description -n vserver-distro-centos -l pl.UTF-8
d765f9b1 302Szablon budowania VServerów dla dystrybucji CentOS 4.2 i 5.
d76eaeb7 303
a94c4947 304%package -n vserver-distro-debian
076e0301 305Summary: VServer build templates for Debian and Ubuntu
306Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Debian i Ubuntu
a94c4947 307Group: Applications/System
33ef531a 308Requires: %{name} = %{version}-%{release}
076e0301 309Requires: debootstrap
a94c4947 310Requires: dpkg
e0b99d3d 311Provides: vserver-distro-ubuntu
076e0301 312Obsoletes: vserver-distro-ubuntu
a94c4947 313
314%description -n vserver-distro-debian
e0b99d3d 315VServer build templates for Debian and Ubuntu.
a94c4947 316
317%description -n vserver-distro-debian -l pl.UTF-8
e0b99d3d 318Szablony do tworzenia VServerów dla dystrybucji Debian i Ubuntu.
a94c4947 319
d76eaeb7 320%package -n vserver-distro-fedora
d765f9b1
JB
321Summary: VServer build templates for Fedora
322Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Fedora
d76eaeb7 323Group: Applications/System
33ef531a 324Requires: %{name} = %{version}-%{release}
d76eaeb7
JB
325Requires: binutils
326Requires: e2fsprogs
327Requires: rpm
33ef531a 328Requires: vserver-distro-redhat = %{version}-%{release}
622053c4 329Requires: wget
29afce9a 330Requires: yum
d76eaeb7
JB
331
332%description -n vserver-distro-fedora
d765f9b1 333VServer build templates for Fedora Core 1,2,3,4,5,6 and Fedora 7.
d76eaeb7
JB
334
335%description -n vserver-distro-fedora -l pl.UTF-8
d765f9b1
JB
336Szablony do tworzenia VServerów dla dystrybucji Fedora Core
3371,2,3,4,5,6 oraz Fedora 7.
d76eaeb7
JB
338
339%package -n vserver-distro-gentoo
340Summary: VServer build template for Gentoo
d765f9b1 341Summary(pl.UTF-8): Szablon budowania VServerów dla Gentoo
d76eaeb7 342Group: Applications/System
33ef531a 343Requires: %{name} = %{version}-%{release}
d76eaeb7
JB
344
345%description -n vserver-distro-gentoo
346VServer build template for Gentoo.
347
348%description -n vserver-distro-gentoo -l pl.UTF-8
d765f9b1 349Szablon budowania VServerów dla Gentoo.
d76eaeb7 350
e84dd6c9
JR
351%package -n vserver-distro-pld
352Summary: VServer build templates for PLD Linux
353Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji PLD Linux
354Group: Applications/System
33ef531a 355Requires: %{name} = %{version}-%{release}
e84dd6c9
JR
356Requires: /etc/pld-release
357Requires: poldek >= 0.30
358
359%description -n vserver-distro-pld
360VServer build templates for PLD Linux.
361
362%description -n vserver-distro-pld -l pl.UTF-8
363Szablony do tworzenia VServerów dla dystrybucji PLD Linux.
364
d76eaeb7
JB
365%package -n vserver-distro-redhat
366Summary: VServer build template for Red Hat Linux 9
367Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9
368Group: Applications/System
33ef531a 369Requires: %{name} = %{version}-%{release}
d76eaeb7
JB
370Requires: binutils
371Requires: e2fsprogs
372Requires: rpm
d76eaeb7
JB
373Requires: wget
374
375%description -n vserver-distro-redhat
376VServer build template for RedHat Linux 9.
377
378%description -n vserver-distro-redhat -l pl.UTF-8
379Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9.
380
381%package -n vserver-distro-suse
382Summary: VServer build template for SuSE 9.1
383Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1
384Group: Applications/System
33ef531a 385Requires: %{name} = %{version}-%{release}
d76eaeb7
JB
386Requires: binutils
387Requires: e2fsprogs
388Requires: rpm
d76eaeb7
JB
389Requires: wget
390
391%description -n vserver-distro-suse
392VServer build template for SuSE Linux 9.1.
393
394%description -n vserver-distro-suse -l pl.UTF-8
395Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1.
396
217d218f
AM
397%package -n vserver-distro-scientificlinux
398Summary: VServer build template for Scientific Linux
399Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji Scientific Linux
400Group: Applications/System
401Requires: %{name} = %{version}-%{release}
402Requires: binutils
403Requires: e2fsprogs
404Requires: rpm
405Requires: wget
406Requires: yum
407
408%description -n vserver-distro-scientificlinux
409VServer build template for Scientific Linux.
410
411%description -n vserver-distro-scientificlinux -l pl.UTF-8
412Szablon do tworzenia VServerów dla dystrybucji Scientific Linux.
413
1e07a54b 414%package -n vserver-distro-tld
415Summary: VServer build templates for Titanium Linux Distribution
416Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Titanium Linux
417Group: Applications/System
418Requires: %{name} = %{version}-%{release}
1e07a54b 419Requires: poldek >= 0.30
420
421%description -n vserver-distro-tld
422VServer build templates for Titanium Linux Distribution.
423
424%description -n vserver-distro-tld -l pl.UTF-8
425Szablony do tworzenia VServerów dla dystrybucji Titanium Linux.
426
c4036d6e 427%prep
2f75efb5 428%setup -q -n %{name}-%{version}-%{snap} -a11
b7fb7f75 429%patch0 -p1
9f81736b 430%patch1 -p1
54c149ac 431%patch2 -p1
1e07a54b 432%patch3 -p1
33754dff 433%patch4 -p1
1e14ade8 434%patch5 -p1
f16cd315 435%patch6 -p1
33beda22 436%patch8 -p1
616759c3 437%patch9 -p1
204e5db3 438%{?with_no_dynamic_context:%patch10 -p1}
3a527d22 439%patch11 -p1
b3024b38 440%patch12 -p1
6d43167c 441%patch13 -p1
a41118d0 442%patch14 -p1
e7ac6dd1 443%patch15 -p1
761afb0b 444%patch16 -p1
5591d8ca 445
4bfa49a8 446%patch18 -p1
4b9dfd9e 447%patch19 -p1
999bf1a1 448%patch21 -p1
94a3845f 449%patch22 -p1
21a3b8ba 450%patch24 -p1
27dc70bd 451%patch25 -p1
1f4eb45e 452
696acb34 453%patch27 -p1
7352b984 454%patch28 -p1
c8b51fec 455%patch29 -p1
5e98d590 456%patch30 -p1
c4036d6e 457
7352b984 458cp -p %{SOURCE9} package-management.txt
47f9cd5f 459
35d779f2
JR
460%{__sed} -i -e "s/@RPMDB@/%{reqdb_ver}/g" scripts/pkgmgmt
461
c4036d6e 462%build
ac7f10fe
AM
463unset LD_SYMBOLIC_FUNCTIONS || :
464
b6503b78 465%if %{with dietlibc}
fcf60dd0 466CFLAGS="%{rpmcflags} -D__GLIBC__ -D__KERNEL_STRICT_NAMES=1 -U__STRICT_ANSI__"
b6503b78 467%endif
1e14ade8 468%{__libtoolize}
84567ffc
JR
469%{__aclocal} -I m4
470%{__automake}
31c082fa 471%{__autoconf}
9f81736b
JR
472%configure \
473 --with-initrddir=/etc/rc.d/init.d \
474 --enable-release \
6f41121b 475 --enable-apis=NOLEGACY \
893c90d5 476 --with-initscripts=sysv \
477 --%{?with_dietlibc:en}%{!?with_dietlibc:dis}able-dietlibc \
7890624b 478 FSCK=/sbin/fsck \
479 IONICE=%{_usrbin}/ionice \
2151e92d 480 IP=/sbin/ip \
c993b99d 481 IPTABLES=%{_usrsbin}/iptables \
7890624b 482 MKTEMP=/bin/mktemp \
e8b52e06 483 MODPROBE=/sbin/modprobe \
7890624b 484 MOUNT=/bin/mount \
e8b52e06 485 NAMEIF=/sbin/nameif \
7890624b 486 PS=/bin/ps \
487 RESTORE=/sbin/restore \
e8b52e06 488 RMMOD=/sbin/rmmod \
7890624b 489 RSYNC=%{_usrbin}/rsync \
490 STRACE=%{_usrbin}/strace \
491 UMOUNT=/bin/umount \
e8b52e06 492 VCONFIG=/sbin/vconfig \
c993b99d 493 WGET=%{_usrbin}/wget \
7890624b 494# end
c4036d6e 495
9f81736b 496%{__make} all
6cdf8db5 497
9a45d9d7 498%{?with_doc:%{__make} doc}
c4036d6e 499
22ee1f7a 500%{__make} -C vproc-%{vproc_version} \
e128cb8a
ER
501 CC="%{__cc}" \
502 CFLAGS="%{rpmcflags}"
503
c4036d6e
AM
504%install
505rm -rf $RPM_BUILD_ROOT
49e22b19 506install -d $RPM_BUILD_ROOT{/vservers/.pkg,/etc/{sysconfig,rc.d/init.d,cron.d}} \
7c944e34 507 $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.defaults/{apps/vdevmap,cgroup} \
fa6b08f2 508 $RPM_BUILD_ROOT%{systemdtmpfilesdir}
27ad8b1b 509
e8d85bc2 510%{__make} -j1 install install-distribution \
6cdf8db5
ER
511%if %{without legacy}
512 scripts_legacy_src_SCRPTS= \
513 scripts_legacy_gen_SCRPTS= \
514 scripts_legacy_src_PRGS= \
515 sysv_gen_SCRPTS= \
516 legacy_PROGRAMS= \
517%endif
c4036d6e
AM
518 DESTDIR=$RPM_BUILD_ROOT
519
6a366eb6
JR
520%ifarch %{ix86}
521# fix breakage caused by too many substitiutions on x86
522%{__sed} -i -e 's|%{_datadir}/%{name}/sigexec|%{_libdir}/%{name}/sigexec|g' \
523 $RPM_BUILD_ROOT%{_libdir}/%{name}/vshelper
524%endif
525
480949d3
AM
526# our libcgroup uses per subsystem mount
527touch $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.defaults/cgroup/per-ss
528
1f4eb45e 529chmod -R +rX $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/*
47f9cd5f 530
99e1c7ab
AM
531cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
532cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers
533cp -p %{SOURCE15} $RPM_BUILD_ROOT/etc/rc.d/init.d/util-vserver
534cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/vservers
535sed 's|%{_usrlib}/util-vserver|%{_datadir}/%{name}|g' gentoo/bash-wrapper > \
6cdf8db5
ER
536 $RPM_BUILD_ROOT%{_libdir}/%{name}/bash-wrapper
537
538%if %{with legacy}
539install -d $RPM_BUILD_ROOT%{_sysconfdir}/vservices
540
9f81736b 541for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
622053c4 542 s=$(basename $i | sed s/v_//)
c993b99d 543 cat >$RPM_BUILD_ROOT%{_sysconfdir}/vservices/$s << EOF
9f81736b
JR
544# IP addresses/interfaces to bound $s service to
545#IP=10.0.0.1
546#IP=eth0
547EOF
548done
c4036d6e 549
99e1c7ab
AM
550cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
551cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
6cdf8db5
ER
552install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
553%else
b9f4525c
JB
554%{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
555%{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
556%{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/distrib-info.8
557%{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/rebootmgr.8
558%{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vserver-copy.8
6cdf8db5 559%endif
536c7360 560
6cdf8db5
ER
561install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vrootdevices
562cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/vrootdevices
1f4eb45e
AM
563install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld
564install -p %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld/initpost
565install -p %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/tld/initpost
566ln -s ../pld/initpost $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld-ac/initpost
567ln -s ../pld/initpost $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld-th/initpost
6cdf8db5 568install -p vproc-%{vproc_version}/vproc $RPM_BUILD_ROOT%{_sbindir}
cf71c7e1 569sed -e 's,/usr/lib,%{_libdir},' %{SOURCE12} > $RPM_BUILD_ROOT%{_libdir}/%{name}/vhashify.cron
04c2a702 570chmod +x $RPM_BUILD_ROOT%{_libdir}/%{name}/vhashify.cron
4961db11
PG
571
572cat > $RPM_BUILD_ROOT/etc/cron.d/vservers << EOF
57302 2 * * 0 root %{_libdir}/%{name}/vhashify.cron
574EOF
e5f7ee9a 575
1f4eb45e
AM
576install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld-ac/pubkeys
577cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld-ac/pubkeys/pld-ac.asc
468087c5 578
1f4eb45e
AM
579install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld-th/pubkeys
580cp -p %{SOURCE14} $RPM_BUILD_ROOT%{_datadir}/%{name}/distributions/pld-th/pubkeys/pld-th.asc
b5d3f919 581
b9f4525c 582%{__mv} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/{90-util-vserver,util-vserver}.conf
7c944e34 583
1cbfb76d 584# set arch for pld-ac in pld.conf
d4b06dc0 585%ifarch i586 i686 ppc sparc alpha athlon
22ee1f7a 586%define ftp_arch %{_target_cpu}
1cbfb76d 587%endif
588%ifarch %{x8664}
22ee1f7a 589%define ftp_arch amd64
1cbfb76d 590%endif
d2c9e889 591%ifarch i486
22ee1f7a 592%define ftp_arch i386
d2c9e889 593%endif
d4b06dc0 594%ifarch pentium2 pentium3 pentium4
22ee1f7a 595%define ftp_arch i686
d4b06dc0 596%endif
1cbfb76d 597%ifarch sparcv9 sparc64
22ee1f7a 598%define ftp_arch sparc
1cbfb76d 599%endif
22ee1f7a 600%{__sed} -i -e 's|%%ARCH%%|%{ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d/pld.conf
1cbfb76d 601
602# set arch for pld-th in pld.conf
761afb0b 603%ifarch i486 i686 ppc sparc alpha athlon
22ee1f7a 604%define ftp_arch %{_target_cpu}
761afb0b 605%endif
eed0f0e7 606%ifarch %{x8664}
22ee1f7a 607%define ftp_arch x86_64
761afb0b
ER
608%endif
609%ifarch i586
22ee1f7a 610%define ftp_arch i486
761afb0b
ER
611%endif
612%ifarch pentium2 pentium3 pentium4
22ee1f7a 613%define ftp_arch i686
761afb0b
ER
614%endif
615%ifarch sparcv9 sparc64
22ee1f7a 616%define ftp_arch sparc
761afb0b 617%endif
22ee1f7a 618%{__sed} -i -e 's|%%ARCH%%|%{ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d/pld.conf
1cbfb76d 619
1e07a54b 620# set arch for tld in tld.conf
621%ifarch i586 i686 ppc sparc alpha
22ee1f7a 622%define ftp_arch %{_target_cpu}
1cbfb76d 623%endif
624%ifarch %{x8664}
22ee1f7a 625%define ftp_arch x86_64
1cbfb76d 626%endif
d4b06dc0 627%ifarch athlon pentium2 pentium3 pentium4
22ee1f7a 628%define ftp_arch i686
1cbfb76d 629%endif
1e07a54b 630%{__sed} -i -e 's|%%ARCH%%|%{ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/tld/poldek/repos.d/tld.conf
761afb0b 631
6a628ec2 632# current debootstrap link
1f4eb45e
AM
633echo "http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.55_all.deb" \
634 > $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults/debootstrap.uri
6a628ec2 635
0edd7eb1 636install -d $RPM_BUILD_ROOT/var/cache/vservers/poldek
2d6d0c17 637
b9f4525c
JB
638# python packaging
639%py_comp $RPM_BUILD_ROOT%{py_sitedir}
640%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
641%py_postclean
cacbfd49 642%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_libvserver.la
b9f4525c 643
622053c4 644# we have our own initscript which does the same
826adff6 645%{__rm} $RPM_BUILD_ROOT%{_libexecdir}/util-vserver/vserver-wrapper
1f4eb45e 646%{__rm} $RPM_BUILD_ROOT%{_datadir}/util-vserver/vserver-init.functions
6cdf8db5
ER
647%{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default
648%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/vservers.conf
2c4297d9 649
421cacb8
AM
650%clean
651rm -rf $RPM_BUILD_ROOT
c4036d6e 652
82a15eaa
JR
653%triggerun -- util-vserver-init
654# Prevent preun from util-vserver-init from working
655chmod a-x /etc/rc.d/init.d/vprocunhide
656chmod a-x /etc/rc.d/init.d/vrootdevices
657chmod a-x /etc/rc.d/init.d/vservers
658
90766857 659%triggerpostun -- util-vserver-init
807d69d1 660# Restore what triggerun removed
82a15eaa
JR
661chmod ug+x /etc/rc.d/init.d/vprocunhide
662chmod ug+x /etc/rc.d/init.d/vrootdevices
663chmod ug+x /etc/rc.d/init.d/vservers
664/sbin/chkconfig --add vrootdevices
665/sbin/chkconfig --add vprocunhide
666/sbin/chkconfig --add vservers
5bc4d3d7
ER
667if [ -f /etc/sysconfig/vrootdevices.rpmsave ]; then
668 cp -f /etc/sysconfig/vrootdevices{,.rpmnew}
669 mv -f /etc/sysconfig/vrootdevices{.rpmsave,}
87423c3f 670fi
5bc4d3d7
ER
671if [ -f /etc/sysconfig/vservers.rpmsave ]; then
672 cp -f /etc/sysconfig/vservers{,.rpmnew}
673 mv -f /etc/sysconfig/vservers{.rpmsave,}
87423c3f 674fi
82a15eaa 675
9f81736b
JR
676%post
677%{_sbindir}/setattr --barrier /vservers || :
7ccbf05b 678/sbin/chkconfig --add util-vserver
3996b68e 679/sbin/chkconfig --add vrootdevices
9f81736b 680/sbin/chkconfig --add vprocunhide
09abf0a6 681/sbin/chkconfig --add vservers
82a15eaa
JR
682if [ ! -f /var/lock/subsys/util-vserver ]; then
683 echo "Type \"/sbin/service util-vserver start\" to set up vshelper path" 1>&2
684fi
3996b68e 685if [ ! -f /var/lock/subsys/vrootdevices ]; then
2d9f659e 686 echo "Type \"/sbin/service vrootdevices start\" to assign virtual root devices" 1>&2
3996b68e 687fi
26dd3d85 688if [ ! -f /var/lock/subsys/vprocunhide ]; then
2d9f659e 689 echo "Type \"/sbin/service vprocunhide start\" to set /proc visibility for vservers" 1>&2
26dd3d85 690fi
09abf0a6 691if [ ! -f /var/lock/subsys/vservers ]; then
2d9f659e 692 echo "Type \"/sbin/service vservers start\" to start vservers" 1>&2
26dd3d85 693fi
9f81736b 694
82a15eaa 695%preun
9f81736b 696if [ "$1" = "0" ]; then
82a15eaa 697 %service util-vserver stop
2d9f659e
ER
698 %service vservers stop
699 %service vprocunhide stop
700 %service vrootdevices stop
82a15eaa 701 /sbin/chkconfig --del util-vserver
09abf0a6 702 /sbin/chkconfig --del vservers
26dd3d85 703 /sbin/chkconfig --del vprocunhide
3996b68e 704 /sbin/chkconfig --del vrootdevices
9f81736b
JR
705fi
706
82a15eaa
JR
707%post lib -p /sbin/ldconfig
708%postun lib -p /sbin/ldconfig
709
9f81736b
JR
710%post legacy
711/sbin/chkconfig --add rebootmgr
712/sbin/chkconfig --add vservers-legacy
26dd3d85 713if [ ! -f /var/lock/subsys/rebootmgr ] ; then
2d9f659e 714 echo "Type \"/sbin/service rebootmgr start\" to start reboot manager for legacy vservers" 1>&2
26dd3d85
ER
715fi
716if [ ! -f /var/lock/subsys/vservers-legacy ] ; then
2d9f659e 717 echo "Type \"/sbin/service vservers-legacy start\" to start legacy vservers" 1>&2
26dd3d85 718fi
9f81736b
JR
719
720%preun legacy
721if [ "$1" = "0" ]; then
2d9f659e
ER
722 %service rebootmgr stop
723 %service vservers-legacy stop
9f81736b
JR
724 /sbin/chkconfig --del rebootmgr
725 /sbin/chkconfig --del vservers-legacy
726fi
b2c6ab86 727
e84dd6c9
JR
728%triggerpostun -n vserver-distro-pld -- util-vserver-build < 0.30.215-1.1
729for D in ac th ti; do
730 P=%{_sysconfdir}/vservers/.distributions/pld-$D/poldek
731
732 if [ -f $P/pld-source.conf.rpmsave ]; then
733 cp -f $P/repos.d/pld.conf{,.rpmnew}
734 mv -f $P/pld-source.conf.rpmsave $P/repos.d/pld.conf
735 fi
736done
737exit 0
738
c4036d6e
AM
739%files
740%defattr(644,root,root,755)
befcea8e 741%doc AUTHORS NEWS THANKS doc/intro.txt
b77e6495 742%doc package-management.txt
ea52b140 743%{?with_doc:%doc doc/*.html}
82a15eaa
JR
744%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vrootdevices
745%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers
746%config(noreplace) %verify(not md5 mtime size) /etc/cron.d/vservers
747%attr(754,root,root) /etc/rc.d/init.d/vprocunhide
748%attr(754,root,root) /etc/rc.d/init.d/vrootdevices
749%attr(754,root,root) /etc/rc.d/init.d/util-vserver
750%attr(754,root,root) /etc/rc.d/init.d/vservers
b7fb7f75 751%dir %{_sysconfdir}/vservers
9f81736b
JR
752%dir %{_sysconfdir}/vservers/.defaults
753%dir %{_sysconfdir}/vservers/.defaults/apps
49e22b19 754%dir %{_sysconfdir}/vservers/.defaults/apps/vdevmap
4f782c13
JR
755%dir %{_sysconfdir}/vservers/.defaults/apps/vunify
756%dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
480949d3
AM
757%dir %{_sysconfdir}/vservers/.defaults/cgroup
758%{_sysconfdir}/vservers/.defaults/cgroup/per-ss
9f81736b 759%dir %{_sysconfdir}/vservers/.defaults/files
047cae91 760%{_sysconfdir}/vservers/.defaults/vdirbase
f2524bfd 761%{_sysconfdir}/vservers/.defaults/cachebase
047cae91 762%{_sysconfdir}/vservers/.defaults/run.rev
4f782c13
JR
763%dir %{_sysconfdir}/vservers/.distributions
764%dir %{_sysconfdir}/vservers/.distributions/.common
765%dir %{_sysconfdir}/vservers/.distributions/.common/pubkeys
b9f4525c 766%attr(755,root,root) /sbin/vshelper
fc8ba798
JR
767%attr(755,root,root) %{_sbindir}/chbind
768%attr(755,root,root) %{_sbindir}/chcontext
769%attr(755,root,root) %{_sbindir}/chxid
9f81736b 770%attr(755,root,root) %{_sbindir}/exec-cd
fc8ba798 771%attr(755,root,root) %{_sbindir}/lsxid
328586ba 772%attr(755,root,root) %{_sbindir}/naddress
773%attr(755,root,root) %{_sbindir}/nattribute
774%attr(755,root,root) %{_sbindir}/ncontext
fc8ba798
JR
775%attr(755,root,root) %{_sbindir}/reducecap
776%attr(755,root,root) %{_sbindir}/setattr
777%attr(755,root,root) %{_sbindir}/showattr
4f782c13 778%attr(755,root,root) %{_sbindir}/vapt-get
fc8ba798
JR
779%attr(755,root,root) %{_sbindir}/vattribute
780%attr(755,root,root) %{_sbindir}/vcontext
4f782c13 781%attr(755,root,root) %{_sbindir}/vdevmap
fc8ba798 782%attr(755,root,root) %{_sbindir}/vdlimit
4f782c13 783%attr(755,root,root) %{_sbindir}/vdu
fc8ba798
JR
784%attr(755,root,root) %{_sbindir}/vkill
785%attr(755,root,root) %{_sbindir}/vlimit
467f3ad9 786%attr(755,root,root) %{_sbindir}/vmemctrl
787%attr(755,root,root) %{_sbindir}/vmount
4f782c13
JR
788%attr(755,root,root) %{_sbindir}/vnamespace
789%attr(755,root,root) %{_sbindir}/vpoldek
e128cb8a 790%attr(755,root,root) %{_sbindir}/vproc
9f81736b
JR
791%attr(755,root,root) %{_sbindir}/vps
792%attr(755,root,root) %{_sbindir}/vpstree
4f782c13 793%attr(755,root,root) %{_sbindir}/vrpm
fc8ba798
JR
794%attr(755,root,root) %{_sbindir}/vrsetup
795%attr(755,root,root) %{_sbindir}/vsched
9f81736b 796%attr(755,root,root) %{_sbindir}/vserver
fc8ba798 797%attr(755,root,root) %{_sbindir}/vserver-info
9f81736b
JR
798%attr(755,root,root) %{_sbindir}/vserver-stat
799%attr(755,root,root) %{_sbindir}/vsomething
4f782c13 800%attr(755,root,root) %{_sbindir}/vspace
67457f13 801%attr(755,root,root) %{_sbindir}/vtag
9f81736b 802%attr(755,root,root) %{_sbindir}/vtop
fc8ba798 803%attr(755,root,root) %{_sbindir}/vuname
e014ae5d 804%attr(755,root,root) %{_sbindir}/vurpm
31c082fa 805%attr(755,root,root) %{_sbindir}/vwait
4f782c13 806%attr(755,root,root) %{_sbindir}/vyum
1f4eb45e
AM
807%dir %{_datadir}/%{name}
808%dir %{_datadir}/%{name}/defaults
809%{_datadir}/%{name}/defaults/fstab
810%{_datadir}/%{name}/defaults/debootstrap.*
811%{_datadir}/%{name}/defaults/vunify-exclude
812%{_datadir}/%{name}/defaults/context.start
813%{_datadir}/%{name}/defaults/environment
814%{_datadir}/%{name}/defaults/h2ext.desc
815%{_datadir}/%{name}/defaults/mtab
816%{_datadir}/%{name}/defaults/vprocunhide-files
817%dir %{_datadir}/%{name}/distributions
818%{_datadir}/%{name}/distributions/defaults
819%dir %{_datadir}/%{name}/distributions/template
820%attr(755,root,root) %{_datadir}/%{name}/distributions/template/initpost
821%attr(755,root,root) %{_datadir}/%{name}/distributions/template/initpre
1f4eb45e
AM
822%{_datadir}/%{name}/util-vserver-vars
823%{_datadir}/%{name}/functions
824%{_datadir}/%{name}/vserver-build.*
825%{_datadir}/%{name}/vserver-setup.functions
826%{_datadir}/%{name}/vserver.*
b2c6ab86 827%dir %{_libdir}/%{name}
95607a22
AM
828%{_libdir}/%{name}/FEATURES.txt
829%{_libdir}/%{name}/util-vserver-vars
49e22b19 830%attr(755,root,root) %{_libdir}/%{name}/bash-wrapper
826adff6
AM
831%dir %{_libexecdir}/%{name}
832%{_libexecdir}/%{name}/util-vserver-vars
4f782c13 833%attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
4f782c13 834%attr(755,root,root) %{_libdir}/%{name}/vhashify.cron
826adff6
AM
835%attr(755,root,root) %{_libexecdir}/%{name}/capchroot
836%attr(755,root,root) %{_libexecdir}/%{name}/chain-echo
837%attr(755,root,root) %{_libexecdir}/%{name}/chbind-compat
838%attr(755,root,root) %{_libexecdir}/%{name}/chcontext-compat
839%attr(755,root,root) %{_libexecdir}/%{name}/check-unixfile
840%attr(755,root,root) %{_libexecdir}/%{name}/chroot-sh
841%attr(755,root,root) %{_libexecdir}/%{name}/exec-remount
842%attr(755,root,root) %{_libexecdir}/%{name}/exec-ulimit
843%attr(755,root,root) %{_libexecdir}/%{name}/fakerunlevel
844%attr(755,root,root) %{_libexecdir}/%{name}/filetime
845%attr(755,root,root) %{_libexecdir}/%{name}/h2ext
846%attr(755,root,root) %{_libexecdir}/%{name}/h2ext-worker
847%attr(755,root,root) %{_libexecdir}/%{name}/keep-ctx-alive
848%attr(755,root,root) %{_libexecdir}/%{name}/lockfile
849%attr(755,root,root) %{_libexecdir}/%{name}/mask2prefix
850%attr(755,root,root) %{_libexecdir}/%{name}/pkgmgmt
851%attr(755,root,root) %{_libexecdir}/%{name}/readlink
852%attr(755,root,root) %{_libexecdir}/%{name}/rpm-fake*
853%attr(755,root,root) %{_libexecdir}/%{name}/save_ctxinfo
854%attr(755,root,root) %{_libexecdir}/%{name}/secure-mount
855%attr(755,root,root) %{_libexecdir}/%{name}/sigexec
856%attr(755,root,root) %{_libexecdir}/%{name}/start-vservers
857%attr(755,root,root) %{_libexecdir}/%{name}/systemd-start
858%attr(755,root,root) %{_libexecdir}/%{name}/systemd-stop
859%attr(755,root,root) %{_libexecdir}/%{name}/tunctl
860%attr(755,root,root) %{_libexecdir}/%{name}/vapt-get-worker
861%attr(755,root,root) %{_libexecdir}/%{name}/vclone
862%attr(755,root,root) %{_libexecdir}/%{name}/vcopy
863%attr(755,root,root) %{_libexecdir}/%{name}/vhashify
864%attr(755,root,root) %{_libexecdir}/%{name}/vpkg
865%attr(755,root,root) %{_libexecdir}/%{name}/vpoldek-worker
866%attr(755,root,root) %{_libexecdir}/%{name}/vprocunhide
867%attr(755,root,root) %{_libexecdir}/%{name}/vrpm-*
868%attr(755,root,root) %{_libexecdir}/%{name}/vserver-build
869%attr(755,root,root) %{_libexecdir}/%{name}/vservers.grabinfo.sh
870%attr(755,root,root) %{_libexecdir}/%{name}/vshelper
871%attr(755,root,root) %{_libexecdir}/%{name}/vshelper-sync
872%attr(755,root,root) %{_libexecdir}/%{name}/vsysctl
873%attr(755,root,root) %{_libexecdir}/%{name}/vsysvwrapper
874%attr(755,root,root) %{_libexecdir}/%{name}/vunify
875%attr(755,root,root) %{_libexecdir}/%{name}/vurpm-worker
876%attr(755,root,root) %{_libexecdir}/%{name}/vyum-worker
fc8ba798
JR
877%{_mandir}/man8/chbind.8*
878%{_mandir}/man8/chcontext.8*
879%{_mandir}/man8/reducecap.8*
880%{_mandir}/man8/vps.8*
881%{_mandir}/man8/vpstree.8*
4f782c13 882%{_mandir}/man8/vserver-build.8*
fc8ba798
JR
883%{_mandir}/man8/vserver-stat.8*
884%{_mandir}/man8/vserver.8*
885%{_mandir}/man8/vtop.8*
b9f4525c
JB
886%attr(755,root,root) /lib/systemd/system-generators/systemd-vserver-generator
887%{systemdunitdir}/util-vserver.service
888%{systemdunitdir}/vprocunhide.service
889%{systemdunitdir}/vserver.target
890%{systemdunitdir}/vserver-mark@.target
891%{systemdunitdir}/vserver@.service
892%{_prefix}/lib/sysctl.d/90-util-vserver.conf
893%{systemdtmpfilesdir}/%{name}.conf
c993b99d 894%attr(000,root,root) %dir /vservers
2b3c93e4 895%dir /vservers/.pkg
9f81736b
JR
896%dir %{_localstatedir}/run/vservers
897%dir %{_localstatedir}/run/vservers.rev
898%dir %{_localstatedir}/run/vshelper
2d6d0c17 899%dir /var/cache/vservers
0edd7eb1 900%dir /var/cache/vservers/poldek
421cacb8 901
d76eaeb7
JB
902%files lib
903%defattr(644,root,root,755)
761afb0b
ER
904%attr(755,root,root) %{_libdir}/libvserver.so.*.*.*
905%attr(755,root,root) %ghost %{_libdir}/libvserver.so.0
d76eaeb7 906
421cacb8
AM
907%files devel
908%defattr(644,root,root,755)
ea52b140 909%{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html}
761afb0b 910%attr(755,root,root) %{_libdir}/libvserver.so
b9f4525c
JB
911%{_libdir}/libvserver.la
912%{_includedir}/vserver.h
913%{_pkgconfigdir}/util-vserver.pc
421cacb8
AM
914
915%files static
916%defattr(644,root,root,755)
917%{_libdir}/libvserver.a
9f81736b 918
6cdf8db5 919%if %{with legacy}
d76eaeb7
JB
920%files legacy
921%defattr(644,root,root,755)
922%dir %{_sysconfdir}/vservices
b9f4525c
JB
923%{_sysconfdir}/vservices/gated
924%{_sysconfdir}/vservices/httpd
925%{_sysconfdir}/vservices/named
926%{_sysconfdir}/vservices/portmap
927%{_sysconfdir}/vservices/sendmail
928%{_sysconfdir}/vservices/smb
929%{_sysconfdir}/vservices/sshd
930%{_sysconfdir}/vservices/xinetd
d76eaeb7
JB
931%dir %{_libdir}/%{name}/legacy
932%attr(755,root,root) %{_libdir}/%{name}/legacy/*
933%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
d76eaeb7 934%attr(754,root,root) /etc/rc.d/init.d/rebootmgr
b9f4525c
JB
935%attr(754,root,root) /etc/rc.d/init.d/v_gated
936%attr(754,root,root) /etc/rc.d/init.d/v_httpd
937%attr(754,root,root) /etc/rc.d/init.d/v_named
938%attr(754,root,root) /etc/rc.d/init.d/v_portmap
939%attr(754,root,root) /etc/rc.d/init.d/v_sendmail
940%attr(754,root,root) /etc/rc.d/init.d/v_smb
941%attr(754,root,root) /etc/rc.d/init.d/v_sshd
942%attr(754,root,root) /etc/rc.d/init.d/v_xinetd
d76eaeb7
JB
943%attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
944%attr(755,root,root) %{_sbindir}/vserver-copy
945%{_mandir}/man8/distrib-info.8*
946%{_mandir}/man8/rebootmgr.8*
947%{_mandir}/man8/vserver-copy.8*
6cdf8db5 948%endif
d76eaeb7 949
11eacd16
AM
950%files -n python-util-vserver
951%defattr(644,root,root,755)
952%attr(755,root,root) %{py_sitedir}/_libvserver.so
b9f4525c 953%{py_sitedir}/libvserver.py[co]
11eacd16 954
a94c4947 955%files -n vserver-distro-alpine
956%defattr(644,root,root,755)
1f4eb45e
AM
957%dir %{_datadir}/%{name}/distributions/alpine
958%attr(755,root,root) %{_datadir}/%{name}/distributions/alpine/initpost
959%attr(755,root,root) %{_datadir}/%{name}/distributions/alpine/initpre
a94c4947 960
d76eaeb7
JB
961%files -n vserver-distro-centos
962%defattr(644,root,root,755)
1f4eb45e 963%{_datadir}/util-vserver/distributions/centos*
d76eaeb7 964
d765f9b1
JB
965%files -n vserver-distro-debian
966%defattr(644,root,root,755)
1f4eb45e
AM
967%dir %{_datadir}/%{name}/distributions/debian
968%attr(755,root,root) %{_datadir}/%{name}/distributions/debian/initpost
969%{_datadir}/%{name}/distributions/etch
970%{_datadir}/%{name}/distributions/lenny
971%{_datadir}/%{name}/distributions/sid
972%{_datadir}/%{name}/distributions/squeeze
973%{_datadir}/%{name}/distributions/wheezy
d765f9b1 974
0e0c7ff7
ER
975%files -n vserver-distro-fedora
976%defattr(644,root,root,755)
d765f9b1
JB
977%dir %{_sysconfdir}/vservers/.distributions/f7
978%dir %{_sysconfdir}/vservers/.distributions/f7/apt
979%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/f7/apt/sources.list
0e0c7ff7
ER
980%dir %{_sysconfdir}/vservers/.distributions/fc*
981%dir %{_sysconfdir}/vservers/.distributions/fc*/apt
982%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/fc*/apt/sources.list
1f4eb45e
AM
983%{_datadir}/%{name}/distributions/f7
984%{_datadir}/%{name}/distributions/f8
985%{_datadir}/%{name}/distributions/f9
986%{_datadir}/%{name}/distributions/f10
987%{_datadir}/%{name}/distributions/f11
988%{_datadir}/%{name}/distributions/f12
989%{_datadir}/%{name}/distributions/f13
990%{_datadir}/%{name}/distributions/f14
991%{_datadir}/%{name}/distributions/fc1
992%{_datadir}/%{name}/distributions/fc2
993%{_datadir}/%{name}/distributions/fc3
994%{_datadir}/%{name}/distributions/fc4
995%{_datadir}/%{name}/distributions/fc5
996%{_datadir}/%{name}/distributions/fc6
0e0c7ff7 997
d76eaeb7
JB
998%files -n vserver-distro-gentoo
999%defattr(644,root,root,755)
1f4eb45e
AM
1000%dir %{_datadir}/util-vserver/distributions/gentoo
1001%attr(755,root,root) %{_datadir}/util-vserver/distributions/gentoo/*
d76eaeb7
JB
1002%attr(755,root,root) %{_sbindir}/vdispatch-conf
1003%attr(755,root,root) %{_sbindir}/vemerge
1004%attr(755,root,root) %{_sbindir}/vesync
1005%attr(755,root,root) %{_sbindir}/vupdateworld
1006
e84dd6c9
JR
1007%files -n vserver-distro-pld
1008%defattr(644,root,root,755)
1f4eb45e
AM
1009%dir %{_datadir}/%{name}/distributions/pld
1010%attr(755,root,root) %{_datadir}/%{name}/distributions/pld/initpost
1011%dir %{_datadir}/%{name}/distributions/pld-*
1012%{_datadir}/%{name}/distributions/pld-*/pkgs
1013%{_datadir}/%{name}/distributions/pld-*/pubkeys
1014%{_datadir}/%{name}/distributions/pld-*/rpm
1015%attr(755,root,root) %{_datadir}/%{name}/distributions/pld-*/initpost
e84dd6c9
JR
1016%dir %{_sysconfdir}/vservers/.distributions/pld-ac
1017%dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek
1018%dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d
1019%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d/*.conf
1020%dir %{_sysconfdir}/vservers/.distributions/pld-th
1021%dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek
1022%dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d
1023%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d/*.conf
e84dd6c9 1024
0e0c7ff7
ER
1025%files -n vserver-distro-redhat
1026%defattr(644,root,root,755)
076e0301 1027%dir %{_sysconfdir}/vservers/.distributions/rh9
1028%dir %{_sysconfdir}/vservers/.distributions/rh9/apt
0e0c7ff7 1029%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/rh*/apt/sources.list
1f4eb45e
AM
1030%{_datadir}/%{name}/distributions/rh9
1031%dir %{_datadir}/%{name}/distributions/redhat
1032%attr(755,root,root) %{_datadir}/%{name}/distributions/redhat/initctl
1033%attr(755,root,root) %{_datadir}/%{name}/distributions/redhat/initpost
1034%attr(755,root,root) %{_datadir}/%{name}/distributions/redhat/initpre
1035%attr(755,root,root) %{_datadir}/%{name}/distributions/redhat/rc.sysinit
0e0c7ff7
ER
1036
1037%files -n vserver-distro-suse
1038%defattr(644,root,root,755)
1039%dir %{_sysconfdir}/vservers/.distributions/suse*
1040%dir %{_sysconfdir}/vservers/.distributions/suse*/apt
1041%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/suse*/apt/sources.list
1f4eb45e 1042%{_datadir}/%{name}/distributions/suse*
217d218f
AM
1043
1044%files -n vserver-distro-scientificlinux
1045%defattr(644,root,root,755)
1f4eb45e
AM
1046%dir %{_datadir}/%{name}/distributions/sl6
1047%attr(755,root,root) %{_datadir}/%{name}/distributions/sl6/initpost
1048%attr(755,root,root) %{_datadir}/%{name}/distributions/sl6/initpre
1049%{_datadir}/%{name}/distributions/sl6/pkgs
1050%{_datadir}/%{name}/distributions/sl6/yum
1051%{_datadir}/%{name}/distributions/sl6/yum.repos.d
1e07a54b 1052
1053%files -n vserver-distro-tld
1054%defattr(644,root,root,755)
1f4eb45e
AM
1055%dir %{_datadir}/%{name}/distributions/tld
1056%attr(755,root,root) %{_datadir}/%{name}/distributions/tld/initpost
1057%{_datadir}/%{name}/distributions/tld/pkgs
1058%{_datadir}/%{name}/distributions/tld/rpm
1e07a54b 1059%dir %{_sysconfdir}/vservers/.distributions/tld
1060%dir %{_sysconfdir}/vservers/.distributions/tld/poldek
1061%dir %{_sysconfdir}/vservers/.distributions/tld/poldek/repos.d
1062%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/tld/poldek/repos.d/*.conf
This page took 0.699021 seconds and 4 git commands to generate.