]> git.pld-linux.org Git - packages/util-vserver.git/blobdiff - util-vserver.spec
outdated
[packages/util-vserver.git] / util-vserver.spec
index 6b22055f31c264c3e4c8c16dc7a6124254d4fb51..14e902a4cf658b7ef70bd6adc91e0cbd66fca7eb 100644 (file)
@@ -1,18 +1,71 @@
+#
+# m68k and mips are the only not supported archs
+#
+# Conditional build:
+%bcond_without dietlibc        # don't use dietlibc (ask for troubles)
+%bcond_without doc             # don't build documentation which needed LaTeX
+%bcond_with    xalan           # use the xalan xslt processor
+#
 Summary:       Linux virtual server utilities
+Summary(pl):   Narzêdzia dla linuksowych serwerów wirtualnych
 Name:          util-vserver
-Version:       0.24
-Release:       1
-Epoch:         0
+Version:       0.30.209
+Release:       0.1
 License:       GPL
-Group:         Base
+Group:         Applications/System
+Source0:       http://www.13thfloor.at/~ensc/util-vserver/files/alpha/%{name}-%{version}.tar.bz2
+# Source0-md5: 674b122824292c20d3c53245b91f6088
+Source1:       vprocunhide.init
+Source2:       vservers-default.init
+Source3:       vservers-legacy.init
+Source4:       rebootmgr.init
+Source5:       vservers-default.sysconfig
+Source6:       vservers-legacy.sysconfig
+# A bit of documentation explaining package menagement
+# http://www.paul.sladen.org/vserver/archives/200505/0078.html
+Source7:       %{name}-pkgmgmt.txt
+Patch0:                %{name}-vsysvwrapper.patch
+Patch1:                %{name}-pld.patch
+Patch2:                %{name}-build-poldek.patch
+Patch3:                %{name}-include.patch
+Patch4:                %{name}-m4-diet.patch
+Patch7:                %{name}-cpuset.patch
+Patch8:                %{name}-build-umask.patch
+Patch10:       %{name}-mounted.patch
+Patch11:       %{name}-utmpx.patch
 URL:           http://savannah.nongnu.org/projects/util-vserver/
-Source0:       http://savannah.nongnu.org/download/util-vserver/stable.pkg/%version/%name-%version.tar.bz2
-# Source0-md5: 625d6c9bc5a4d2e44eafdf0f619c2153
+BuildRequires: autoconf
+BuildRequires: automake >= 1.9
+BuildRequires: beecrypt-devel
+%{?with_dietlibc:BuildRequires:        dietlibc-static >= 2:0.29}
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 1.5.14
+%ifarch %{x8664}
+BuildRequires: sed >= 4.0
+%endif
+%if %{with doc}
+BuildRequires: doxygen
+BuildRequires: graphviz
+BuildRequires: libxslt-progs
+BuildRequires: tetex-format-pdflatex
+BuildRequires: tetex-makeindex
+%{?with_xalan:BuildRequires:   xalan-j}
+%endif
+Requires:      rc-scripts
+Requires:      util-linux
+Requires(post,preun):  /sbin/chkconfig
+Requires:      %{name}-lib = %{version}-%{release}
+Obsoletes:     util-vserver-core
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# for adapter
+%define                _usrbin         /usr/bin
+%define                _usrsbin        /usr/sbin
+%define                _usrlib         /usr/lib
+
 %description
 This package provides the components and a framework to setup virtual
-servers. A virtual server runs inside a linux server. It is
+servers. A virtual server runs inside a Linux server. It is
 nevertheless highly independent. As such, you can run various services
 with normal configuration. The various vservers can't interact with
 each other and can't interact with services in the main server.
@@ -20,59 +73,574 @@ each other and can't interact with services in the main server.
 This requires a special kernel supporting the new new_s_context and
 set_ipv4root system call.
 
+This package contains utilities which are required to communicate with
+the Linux-Vserver enabled kernel.
+
+%description -l pl
+Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
+serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
+jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
+ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
+w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
+
+Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
+new_s_context i set_ipv4root.
+
+Ten pakiet zawiera narzêdzia wymagane do komunikacji z j±drem z
+w³±czonym mechanizmem Linux-Vserver.
+
+%package devel
+Summary:       Development files for Linux vserver libraries
+Summary(pl):   Pliki programistyczne dla bibliotek linuksowego vserwera
+Group:         Development/Libraries
+Requires:      %{name}-lib = %{version}-%{release}
+
+%description devel
+This package contains the development files necessary for developing
+programs which use vserver library.
+
+%description devel -l pl
+Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
+programów u¿ywaj±cych biblioteki vserver.
+
+%package static
+Summary:       Static vserver library
+Summary(pl):   Biblioteka statyczna vservera
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+This package contains the static version of vserver library.
+
+%description static -l pl
+Ten pakiet zawiera statyczn± wersjê biblioteki vservera.
+
+%package lib
+Summary:       Dynamic libraries for util-vserver
+Summary(pl):   Biblioteki dynamiczne dla pakietu util-vserver
+Group:         Libraries
+
+%description lib
+util-vserver provides the components and a framework to setup virtual
+servers. A virtual server runs inside a linux server. It is
+nevertheless highly independent. As such, you can run various services
+with normal configuration. The various vservers can't interact with
+each other and can't interact with services in the main server.
+
+This package contains the shared libraries needed by all other
+'util-vserver' subpackages.
+
+%description lib -l pl
+util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
+serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
+jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
+ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
+w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
+
+Ten pakiet zawiera biblioteki wspó³dzielone wymagane przez wszystkie
+podpakiety util-vserver.
+
+%package build
+Summary:       Tools which can be used to build vservers
+Summary(pl):   Narzêdzia do budowania vserverów
+Group:         Applications/System
+Conflicts:     poldek < 0.18.8-10
+Requires:      %{name} = %{version}-%{release}
+
+%description build
+util-vserver provides the components and a framework to setup virtual
+servers. A virtual server runs inside a linux server. It is
+nevertheless highly independent. As such, you can run various services
+with normal configuration. The various vservers can't interact with
+each other and can't interact with services in the main server.
+
+This package contains utilities which assist in building Vservers.
+
+%description build -l pl
+util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
+serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
+jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
+ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
+w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
+
+Ten pakiet zawiera narzêdzia pomagaj±ce przy budowaniu Vserwerów.
+
+%package -n vserver-distro-fedora
+Summary:       VServer build templates for Fedora Core
+Summary(pl):   Szablony do tworzenia VServerów dla dystrybucji Fedora Core
+Group:         Applications/System
+Requires:      %{name} = %{version}-%{release}
+Requires:      binutils
+Requires:      e2fsprogs
+Requires:      rpm
+Requires:      tar
+Requires:      wget
+
+%description -n vserver-distro-fedora
+VServer build templates for Fedora Core 1,2,3,4.
+
+%description -n vserver-distro-fedora -l pl
+Szablony do tworzenia VServerów dla dystrybucji Fedora Core 1,2,3,4.
+
+%package -n vserver-distro-redhat
+Summary:       VServer build template for Red Hat Linux 9
+Summary(pl):   Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9
+Group:         Applications/System
+Requires:      %{name} = %{version}-%{release}
+Requires:      binutils
+Requires:      e2fsprogs
+Requires:      rpm
+Requires:      tar
+Requires:      wget
+
+%description -n vserver-distro-redhat
+VServer build template for RedHat Linux 9.
+
+%description -n vserver-distro-redhat -l pl
+Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9.
+
+%package -n vserver-distro-suse
+Summary:       VServer build template for SuSE 9.1
+Summary(pl):   Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1
+Group:         Applications/System
+Requires:      %{name} = %{version}-%{release}
+Requires:      binutils
+Requires:      e2fsprogs
+Requires:      rpm
+Requires:      tar
+Requires:      wget
+
+%description -n vserver-distro-suse
+VServer build template for SuSE Linux 9.1.
+
+%description -n vserver-distro-suse -l pl
+Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1.
+
+%package -n vserver-distro-centos
+Summary:       VServer build template for CentOS 4.2
+Summary(pl):   Szablon budowania VServera dla CentOS 4.2
+Group:         Applications/System
+Requires:      util-vserver-build
+Requires:      yum
+
+%description -n vserver-distro-centos
+VServer build template for CentOS 4.2.
+
+%description -n vserver-distro-centos -l pl
+Szablon budowania VServera dla CentOS 4.2.
+
+%package init
+Summary:       initscripts for vserver
+Summary(pl):   Skrypty inicjalizuj±ce dla vserwera
+Group:         Applications/System
+Requires(post,preun):  /sbin/chkconfig
+Requires:      %{name} = %{version}-%{release}
+Requires:      diffutils
+Requires:      make
+Requires:      rc-scripts
+
+%description init
+util-vserver provides the components and a framework to setup virtual
+servers. A virtual server runs inside a linux server. It is
+nevertheless highly independent. As such, you can run various services
+with normal configuration. The various vservers can't interact with
+each other and can't interact with services in the main server.
+
+This package contains the SysV initscripts which start and stop
+Vservers and related tools.
+
+%description init -l pl
+util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
+serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
+jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
+ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
+w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
+
+Ten pakiet zawiera skrypty inicjalizuj±ce SysV uruchamiaj±ce i
+zatrzymuj±ce Vserwery oraz powi±zane narzêdzia.
+
+%package legacy
+Summary:       Legacy utilities for util-vserver
+Summary(pl):   Stare narzêdzia dla util-vserver
+Group:         Applications/System
+Requires(post,preun):  /sbin/chkconfig
+Requires:      %{name} = %{version}-%{release}
+Requires:      rc-scripts
+
+%description legacy
+util-vserver provides the components and a framework to setup virtual
+servers. A virtual server runs inside a linux server. It is
+nevertheless highly independent. As such, you can run various services
+with normal configuration. The various vservers can't interact with
+each other and can't interact with services in the main server.
+
+This package contains the tools which are needed to work with Vservers
+having an old-style configuration.
+
+%description legacy -l pl
+util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
+serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
+jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
+ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
+w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
+
+Ten pakiet zawiera narzêdzia potrzebne do pracy z Vserwerami maj±cymi
+konfiguracjê w starym stylu.
+
+%package -n vserver-dev
+Summary:       /dev entries for systems in Vservers
+Summary(pl):   Pliki specjalne /dev/* dla systemów w Vserwerach
+Group:         Base
+Requires:      setup >= 2.4.1-2
+Provides:      dev = 2.9.0-19
+Provides:      devfs
+AutoReqProv:   no
+
+%description -n vserver-dev
+Unix and unix like systems (including Linux) use file system entries
+to represent devices attached to the machine. All of these entries are
+in the /dev tree (though they don't have to be), and this package
+contains only entries needed for a system running inside Vserver.
+
+DO NOT install this package for a normal system!
+
+%description -n vserver-dev -l pl
+Wszystkie systemy klasy unices, w tym Linux, u¿ywaj± plików do
+przedstawiania urz±dzeñ pod³±czonych do komputera. Wszystkie te pliki
+znajduj± siê zwykle w katalogu /dev. Pakiet ten wy³±cznie te pliki
+specjalne które s± potrzebne do uruchomienia systemu w Vserwerze.
+
+NIE INSTALUJ tego pakietu na zwyk³ym systemie!
+
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch7 -p1
+%patch8 -p1
+#%patch10 -p1
+%patch11 -p1
+
+install %{SOURCE7} package-menagament.txt
+
+cp -a compat.h vserver-compat.h
 
 %build
+%if %{with dietlibc}
+CFLAGS="%{rpmcflags} -D__GLIBC__"
+%endif
+%{__aclocal} -I m4
+%{__automake}
+%{__autoconf}
 %configure \
-       --with-kerneldir=%{_kernelsrcdir}
-%{__make}
+       --with-initrddir=/etc/rc.d/init.d \
+       --enable-release \
+       %{?with_dietlibc:--enable-dietlibc} \
+       %{!?with_dietlibc:--disable-dietlibc} \
+       MKTEMP=/bin/mktemp \
+       MOUNT=/bin/mount \
+       PS=/bin/ps \
+       UMOUNT=/bin/umount \
+       IP=/sbin/ip \
+       IPTABLES=%{_usrsbin}/iptables \
+       MODPROBE=/sbin/modprobe \
+       NAMEIF=/sbin/nameif \
+       RMMOD=/sbin/rmmod \
+       VCONFIG=/sbin/vconfig \
+       WGET=%{_usrbin}/wget \
 
+%{__make} all
+%{?with_doc:%{__make} doc}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d},/dev/pts}
 
-%{__make} install \
+%{__make} install install-distribution \
        DESTDIR=$RPM_BUILD_ROOT
 
+cp -a vserver-compat.h $RPM_BUILD_ROOT%{_includedir}
+
+chmod -R +rX $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/*
+
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/vservices
+install -d $RPM_BUILD_ROOT/vservers/.pkg
+ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase
+ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev
+
+for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
+       s=`basename $i | sed s/v_//`
+       cat >$RPM_BUILD_ROOT%{_sysconfdir}/vservices/$s << EOF
+# IP addresses/interfaces to bound $s service to
+#IP=10.0.0.1
+#IP=eth0
+EOF
+done
+
+sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE1} > \
+       $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
+sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE2} > \
+       $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default
+sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE3} > \
+       $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
+sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE4} > \
+       $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
+
+install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/vservers-default
+install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
+
+ln -sf null $RPM_BUILD_ROOT/dev/initctl
+
+%ifarch %{x8664}
+sed -i 's/^glibc$/glibc64/' $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld2.0/pkgs/01
+sed -i 's/glibc\-\[0\-9\]\*\.rpm/glibc64\-\[0\-9\]\*\.rpm/' $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld2.0/rpmlist.d/00.lst
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%define v_services     httpd named portmap sendmail smb sshd xinetd
 %post
-/sbin/chkconfig --add vservers
-/sbin/chkconfig --add rebootmgr
+%{_sbindir}/setattr --barrier /vservers || :
 
-for i in %v_services; do
-       /sbin/chkconfig --add v_$i
-done
+%post  lib -p /sbin/ldconfig
+%postun        lib -p /sbin/ldconfig
 
+%post init
+/sbin/chkconfig --add vservers-default
+/sbin/chkconfig --add vprocunhide
+if [ ! -f /var/lock/subsys/vprocunhide ]; then
+       echo "Type \"/etc/rc.d/init.d/vprocunhide start\" to set /proc visibility for vservers" 1>&2
+fi
+if [ ! -f /var/lock/subsys/vservers-default ]; then
+       echo "Type \"/etc/rc.d/init.d/vservers-default start\" to start default vservers" 1>&2
+fi
 
-%preun
-test "$1" != 0 || for i in %v_services; do
-       /sbin/chkconfig --del v_$i
-done
+%preun init
+if [ "$1" = "0" ]; then
+       if [ -r /var/lock/subsys/vprocunhide ]; then
+               /etc/rc.d/init.d/vprocunhide stop >&2
+       fi
+       if [ -r /var/lock/subsys/vservers-default ]; then
+               /etc/rc.d/init.d/vservers-default stop >&2
+       fi
+       /sbin/chkconfig --del vprocunhide
+       /sbin/chkconfig --del vservers-default
+fi
 
-test "$1" != 0 || %{_initrddir}/rebootmgr stop &>/dev/null || :
-test "$1" != 0 || /sbin/chkconfig --del rebootmgr
-test "$1" != 0 || /sbin/chkconfig --del vservers
+%post legacy
+/sbin/chkconfig --add rebootmgr
+/sbin/chkconfig --add vservers-legacy
+if [ ! -f /var/lock/subsys/rebootmgr ] ; then
+       echo "Type \"/etc/rc.d/init.d/rebootmgr start\" to start reboot manager for legacy vservers" 1>&2
+fi
+if [ ! -f /var/lock/subsys/vservers-legacy ] ; then
+       echo "Type \"/etc/rc.d/init.d/vservers-legacy start\" to start legacy vservers" 1>&2
+fi
 
+%preun legacy
+if [ "$1" = "0" ]; then
+       if [ -r /var/lock/subsys/rebootmgr ] ; then
+               /etc/rc.d/init.d/rebootmgr stop >&2
+       fi
+       if [ -r /var/lock/subsys/vservers-legacy ] ; then
+               /etc/rc.d/init.d/vservers-legacy stop >&2
+       fi
+       /sbin/chkconfig --del rebootmgr
+       /sbin/chkconfig --del vservers-legacy
+fi
 
-%postun
-test "$1" = 0  || %{_initrddir}/rebootmgr condrestart >/dev/null || :
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt
+%{?with_doc:%doc doc/*.html}
+%dir %{_sysconfdir}/vservers
+%dir %{_sysconfdir}/vservers/.defaults
+%dir %{_sysconfdir}/vservers/.defaults/apps
+%dir %{_sysconfdir}/vservers/.defaults/files
+%{_sysconfdir}/vservers/.defaults/vdirbase
+%{_sysconfdir}/vservers/.defaults/run.rev
+%{_sysconfdir}/vservers/vdirbase
+%{_sysconfdir}/vservers/run.rev
+/sbin/vshelper
+%attr(755,root,root) %{_sbindir}/chbind
+%attr(755,root,root) %{_sbindir}/chcontext
+%attr(755,root,root) %{_sbindir}/chxid
+%attr(755,root,root) %{_sbindir}/exec-cd
+%attr(755,root,root) %{_sbindir}/lsxid
+%attr(755,root,root) %{_sbindir}/reducecap
+%attr(755,root,root) %{_sbindir}/setattr
+%attr(755,root,root) %{_sbindir}/showattr
+%attr(755,root,root) %{_sbindir}/vattribute
+%attr(755,root,root) %{_sbindir}/vcontext
+%attr(755,root,root) %{_sbindir}/vdlimit
+%attr(755,root,root) %{_sbindir}/vnamespace
+%attr(755,root,root) %{_sbindir}/vkill
+%attr(755,root,root) %{_sbindir}/vlimit
+%attr(755,root,root) %{_sbindir}/vdu
+%attr(755,root,root) %{_sbindir}/vps
+%attr(755,root,root) %{_sbindir}/vpstree
+%attr(755,root,root) %{_sbindir}/vrsetup
+%attr(755,root,root) %{_sbindir}/vsched
+%attr(755,root,root) %{_sbindir}/vserver
+%attr(755,root,root) %{_sbindir}/vserver-info
+%attr(755,root,root) %{_sbindir}/vserver-stat
+%attr(755,root,root) %{_sbindir}/vsomething
+%attr(755,root,root) %{_sbindir}/vtop
+%attr(755,root,root) %{_sbindir}/vuname
+%attr(755,root,root) %{_sbindir}/vwait
+%dir %{_libdir}/%{name}
+%dir %{_libdir}/%{name}/defaults
+%{_libdir}/%{name}/FEATURES.txt
+%{_libdir}/%{name}/util-vserver-vars
+%{_libdir}/%{name}/defaults/*
+%attr(755,root,root) %{_libdir}/%{name}/capchroot
+%attr(755,root,root) %{_libdir}/%{name}/chain-echo
+%attr(755,root,root) %{_libdir}/%{name}/check-unixfile
+%attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
+%attr(755,root,root) %{_libdir}/%{name}/chroot-sh
+%attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
+%attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
+%attr(755,root,root) %{_libdir}/%{name}/filetime
+%{_libdir}/%{name}/functions
+%attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
+%attr(755,root,root) %{_libdir}/%{name}/lockfile
+%attr(755,root,root) %{_libdir}/%{name}/mask2prefix
+%attr(755,root,root) %{_libdir}/%{name}/readlink
+%attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
+%attr(755,root,root) %{_libdir}/%{name}/secure-mount
+%attr(755,root,root) %{_libdir}/%{name}/sigexec
+%attr(755,root,root) %{_libdir}/%{name}/start-vservers
+%attr(755,root,root) %{_libdir}/%{name}/vprocunhide
+%{_libdir}/%{name}/vserver.*
+%attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
+%attr(755,root,root) %{_libdir}/%{name}/vshelper
+%attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
+%{_mandir}/man8/chbind.8*
+%{_mandir}/man8/chcontext.8*
+%{_mandir}/man8/reducecap.8*
+%{_mandir}/man8/vps.8*
+%{_mandir}/man8/vpstree.8*
+%{_mandir}/man8/vserver-stat.8*
+%{_mandir}/man8/vserver.8*
+%{_mandir}/man8/vtop.8*
+%attr(000,root,root) %dir /vservers
+%attr(755,root,root) %dir /vservers/.pkg
+%dir %{_localstatedir}/run/vservers
+%dir %{_localstatedir}/run/vservers.rev
+%dir %{_localstatedir}/run/vshelper
 
+%files devel
+%defattr(644,root,root,755)
+%{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html}
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
+%{_includedir}/vserver*.h
+%{_pkgconfigdir}/*.pc
 
-%files
+%files static
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING ChangeLog NEWS README THANKS
-%doc doc/FAQ.txt
-%{_sbindir}/*
-%{_libdir}/%name
-%{_includedir}/vserver.h
 %{_libdir}/libvserver.a
-%{_mandir}/man8/*
-/etc/rc.d/init.d/*
-%config(noreplace) %{_sysconfdir}/vservers.conf
-%attr(0,root,root) %dir /vservers
-%exclude %_sbindir/newvserver
-%exclude %_mandir/man8/newvserver*
+
+%files lib
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+
+%files init
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-default
+%attr(754,root,root) /etc/rc.d/init.d/vprocunhide
+%attr(754,root,root) /etc/rc.d/init.d/vservers-default
+
+%files build
+%defattr(644,root,root,755)
+%doc contrib/yum*.patch package-menagament.txt
+%dir %{_sysconfdir}/vservers/.defaults/apps/vunify
+%dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
+%dir %{_sysconfdir}/vservers/.distributions
+%dir %{_sysconfdir}/vservers/.distributions/.common
+%dir %{_sysconfdir}/vservers/.distributions/.common/pubkeys
+%dir %{_sysconfdir}/vservers/.distributions/pld2.0
+%dir %{_sysconfdir}/vservers/.distributions/pld2.0/poldek
+%{_sysconfdir}/vservers/.distributions/pld1.99
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld2.0/poldek/poldek.conf
+%attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
+%dir %{_libdir}/%{name}/distributions
+%attr(-, root, root) %{_libdir}/%{name}/distributions/defaults
+%attr(-, root, root) %{_libdir}/%{name}/distributions/pld*
+%attr(-, root, root) %{_libdir}/%{name}/distributions/template
+%attr(-, root, root) %{_libdir}/%{name}/distributions/redhat*
+%{_libdir}/%{name}/vserver-build.*
+%{_libdir}/%{name}/vserver-setup.functions
+%{_libdir}/%{name}/defaults/fstab
+%{_libdir}/%{name}/defaults/debootstrap.uri
+%{_libdir}/%{name}/defaults/vunify-exclude
+%attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
+%attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
+%attr(755,root,root) %{_libdir}/%{name}/vcopy
+%attr(755,root,root) %{_libdir}/%{name}/vhashify
+%attr(755,root,root) %{_libdir}/%{name}/vpkg
+%attr(755,root,root) %{_libdir}/%{name}/vpoldek-worker
+%attr(755,root,root) %{_libdir}/%{name}/vrpm-*
+%attr(755,root,root) %{_libdir}/%{name}/vserver-build
+%attr(755,root,root) %{_libdir}/%{name}/vunify
+%attr(755,root,root) %{_libdir}/%{name}/vyum-worker
+%attr(755,root,root) %{_sbindir}/vapt-get
+%attr(755,root,root) %{_sbindir}/vpoldek
+%attr(755,root,root) %{_sbindir}/vrpm
+%attr(755,root,root) %{_sbindir}/vyum
+
+%files -n vserver-distro-fedora
+%defattr(644,root,root,755)
+%dir %{_sysconfdir}/vservers/.distributions/fc*
+%dir %{_sysconfdir}/vservers/.distributions/fc*/apt
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/fc*/apt/sources.list
+%{_libdir}/%{name}/distributions/fc*
+
+%files -n vserver-distro-redhat
+%defattr(644,root,root,755)
+%dir %{_sysconfdir}/vservers/.distributions/rh*
+%dir %{_sysconfdir}/vservers/.distributions/rh*/apt
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/rh*/apt/sources.list
+%{_libdir}/%{name}/distributions/rh*
+
+%files -n vserver-distro-suse
+%defattr(644,root,root,755)
+%dir %{_sysconfdir}/vservers/.distributions/suse*
+%dir %{_sysconfdir}/vservers/.distributions/suse*/apt
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/suse*/apt/sources.list
+%{_libdir}/%{name}/distributions/suse*
+
+%files -n vserver-distro-centos
+%defattr(644,root,root,755)
+%{_libdir}/util-vserver/distributions/centos42
+
+%files legacy
+%defattr(644,root,root,755)
+%dir %{_sysconfdir}/vservices
+%{_sysconfdir}/vservices/*
+%dir %{_libdir}/%{name}/legacy
+%attr(755,root,root) %{_libdir}/%{name}/legacy/*
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
+%attr(754,root,root) /etc/rc.d/init.d/v_*
+%attr(754,root,root) /etc/rc.d/init.d/rebootmgr
+%attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
+%attr(755,root,root) %{_sbindir}/vserver-copy
+%{_mandir}/man8/distrib-info.8*
+%{_mandir}/man8/rebootmgr.8*
+%{_mandir}/man8/vserver-copy.8*
+
+%files -n vserver-dev
+%defattr(644,root,root,755)
+%dir /dev/pts
+%dev(c,1,7) %attr(666,root,root) /dev/full
+%dev(c,1,3) %attr(666,root,root) /dev/null
+%dev(c,5,2) %attr(666,root,root) /dev/ptmx
+%dev(c,1,8) %attr(644,root,root) /dev/random
+%dev(c,5,0) %attr(666,root,root) /dev/tty
+%dev(c,1,9) %attr(644,root,root) /dev/urandom
+%dev(c,1,5) %attr(666,root,root) /dev/zero
+/dev/initctl
This page took 0.272348 seconds and 4 git commands to generate.