]> git.pld-linux.org Git - packages/util-vserver.git/blobdiff - util-vserver.spec
- -build R: e2fsprogs due chattr requirement
[packages/util-vserver.git] / util-vserver.spec
index 6ae851a8231c99c53f119dfc6ccbd33a991f5448..f9f0cf9fd3d409f170d796d1f1caa41d9f50b864 100644 (file)
@@ -1,3 +1,5 @@
+# TODO
+# - somewhy empty /var/cache/vservers is needed when building pld vserver
 #
 # m68k and mips are the only not supported archs
 #
 Summary:       Linux virtual server utilities
 Summary(pl):   Narzêdzia dla linuksowych serwerów wirtualnych
 Name:          util-vserver
-Version:       0.30.209
-Release:       0.1
+Version:       0.30.210
+Release:       4
 License:       GPL
 Group:         Applications/System
 Source0:       http://www.13thfloor.at/~ensc/util-vserver/files/alpha/%{name}-%{version}.tar.bz2
-# Source0-md5: 674b122824292c20d3c53245b91f6088
+# Source0-md5: 1e8fff7cb6246d21ed029f082123019b
 Source1:       vprocunhide.init
 Source2:       vservers.init
 Source3:       vservers-legacy.init
 Source4:       rebootmgr.init
 Source5:       vservers.sysconfig
 Source6:       vservers-legacy.sysconfig
-# A bit of documentation explaining package menagement
+Source7:       vrootdevices.init
+Source8:       vrootdevices.sysconfig
+# A bit of documentation explaining package management
 # http://www.paul.sladen.org/vserver/archives/200505/0078.html
-Source7:       %{name}-pkgmgmt.txt
+Source9:       %{name}-pkgmgmt.txt
+Source10:      %{name}-initpost.sh
 Patch0:                %{name}-vsysvwrapper.patch
 Patch1:                %{name}-pld.patch
-Patch2:                %{name}-build-poldek.patch
+Patch2:                %{name}-vrpm.patch
 Patch3:                %{name}-include.patch
 Patch4:                %{name}-m4-diet.patch
 Patch5:                %{name}-cpuset.patch
@@ -49,17 +54,18 @@ BuildRequires:      libxslt-progs
 BuildRequires: tetex-format-pdflatex
 BuildRequires: tetex-makeindex
 # To be removed when tetex-format-pdflatex, tetex-pdftex...
-BuildRequires: tetex-fonts-jknappen
-BuildRequires: tetex-metafont
-BuildRequires: ghostscript
 # ...and graphviz packages get fixed
+BuildRequires: ghostscript
 BuildRequires: ghostscript-fonts-std
+BuildRequires: tetex-fonts-jknappen
+BuildRequires: tetex-metafont
 %{?with_xalan:BuildRequires:   xalan-j}
 %endif
-Requires:      rc-scripts
-Requires:      util-linux
 Requires(post,preun):  /sbin/chkconfig
 Requires:      %{name}-lib = %{version}-%{release}
+Requires:      issue
+Requires:      rc-scripts
+Requires:      util-linux
 Obsoletes:     util-vserver-core
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -129,7 +135,7 @@ Group:              Libraries
 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
+pith 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
@@ -149,8 +155,9 @@ podpakiety util-vserver.
 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}
+Requires:      e2fsprogs
+Conflicts:     poldek < 0.18.8-10
 
 %description build
 util-vserver provides the components and a framework to setup virtual
@@ -328,7 +335,7 @@ NIE INSTALUJ tego pakietu na zwyk
 %patch6 -p1
 %patch7 -p1
 
-install %{SOURCE7} package-menagament.txt
+install %{SOURCE9} package-management.txt
 
 cp -a compat.h vserver-compat.h
 
@@ -342,6 +349,7 @@ CFLAGS="%{rpmcflags} -D__GLIBC__"
 %configure \
        --with-initrddir=/etc/rc.d/init.d \
        --enable-release \
+       --enable-apis=NOLEGACY \
        %{?with_dietlibc:--enable-dietlibc} \
        %{!?with_dietlibc:--disable-dietlibc} \
        MKTEMP=/bin/mktemp \
@@ -397,13 +405,20 @@ sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE5} > \
 
 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
 
+install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vrootdevices
+install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/vrootdevices
+install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/initpost
+
 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
+sed -i 's/^glibc$/glibc64/' $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/pkgs/01
+sed -i 's/glibc\-\[0\-9\]\*\.rpm/glibc64\-\[0\-9\]\*\.rpm/' $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/rpmlist.d/00.lst
 %endif
 
+# baggins check this: needed but seems unused
+install -d $RPM_BUILD_ROOT/var/cache/vservers
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -414,25 +429,33 @@ rm -rf $RPM_BUILD_ROOT
 %postun        lib -p /sbin/ldconfig
 
 %post init
-/sbin/chkconfig --add vservers-default
+/sbin/chkconfig --add vrootdevices
 /sbin/chkconfig --add vprocunhide
+/sbin/chkconfig --add vservers
+if [ ! -f /var/lock/subsys/vrootdevices ]; then
+       echo "Type \"/etc/rc.d/init.d/vrootdevices start\" to assign virtual root devices" 1>&2
+fi
 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
+if [ ! -f /var/lock/subsys/vservers ]; then
+       echo "Type \"/etc/rc.d/init.d/vservers start\" to start vservers" 1>&2
 fi
 
 %preun init
 if [ "$1" = "0" ]; then
+       if [ -r /var/lock/subsys/vservers ]; then
+               /etc/rc.d/init.d/vservers stop >&2
+       fi
        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
+       if [ -r /var/lock/subsys/vrootdevices ]; then
+               /etc/rc.d/init.d/vrootdevices stop >&2
        fi
+       /sbin/chkconfig --del vservers
        /sbin/chkconfig --del vprocunhide
-       /sbin/chkconfig --del vservers-default
+       /sbin/chkconfig --del vrootdevices
 fi
 
 %post legacy
@@ -457,6 +480,11 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del vservers-legacy
 fi
 
+%triggerpostun build -- %{name}-build < 0.30.209-2.1
+if [ -f /etc/vservers/.distributions/pld2.0/poldek/poldek.conf.rpmsave ]; then
+       mv -f /etc/vservers/.distributions/{pld2.0,pld-ac}/poldek/poldek.conf.rpmsave
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt
@@ -536,6 +564,7 @@ fi
 %dir %{_localstatedir}/run/vservers
 %dir %{_localstatedir}/run/vservers.rev
 %dir %{_localstatedir}/run/vshelper
+%dir /var/cache/vservers
 
 %files devel
 %defattr(644,root,root,755)
@@ -556,22 +585,23 @@ fi
 %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
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vrootdevices
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers
 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
-%attr(754,root,root) /etc/rc.d/init.d/vservers-default
+%attr(754,root,root) /etc/rc.d/init.d/vrootdevices
+%attr(754,root,root) /etc/rc.d/init.d/vservers
 
 %files build
 %defattr(644,root,root,755)
-%doc contrib/yum*.patch package-menagament.txt
+%doc contrib/yum*.patch package-management.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
+%dir %{_sysconfdir}/vservers/.distributions/pld-ac
+%dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/*.conf
 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
 %dir %{_libdir}/%{name}/distributions
 %attr(-, root, root) %{_libdir}/%{name}/distributions/defaults
This page took 0.125476 seconds and 4 git commands to generate.