X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Futil-vserver.spec.in;h=23becca5fd693c999567d858f29bfe96da9c8096;hb=60ca70b0f3bf35f560a3d18d1b81cad6a7ed68b1;hp=9b37aa2194067ce8a44124aaa0805a01f4e72af7;hpb=86a4fe51a1bc8d8d179186e42073b76196b7bbe9;p=util-vserver.git diff --git a/util-vserver/util-vserver.spec.in b/util-vserver/util-vserver.spec.in index 9b37aa2..23becca 100644 --- a/util-vserver/util-vserver.spec.in +++ b/util-vserver/util-vserver.spec.in @@ -4,6 +4,7 @@ %define confdefaultdir %confdir/.defaults %define pkglibdir %_libdir/%name %define __chattr /usr/bin/chattr +%define chkconfig /sbin/chkconfig Summary: Linux virtual server utilities Name: @PACKAGE@ @@ -18,11 +19,13 @@ BuildRoot: %_tmppath/%name-%version-%release-root Requires: init(@PACKAGE@) Requires: %name-core = %epoch:%version-%release Requires: %name-lib = %epoch:%version-%release +Requires: make Provides: vserver = %epoch:%version-%release Obsoletes: vserver < %epoch:%version BuildRequires: mount vconfig gawk iproute BuildRequires: gcc-c++ wget BuildRequires: e2fsprogs-devel +BuildRequires: doxygen tetex-latex libxslt Requires(post): %__chattr %{!?_without_dietlibc:BuildRequires: dietlibc >= 0:0.22} @@ -46,6 +49,7 @@ Group: System Environment/Base Provides: init(@PACKAGE@) Requires: %name = %epoch:%version-%release Requires: initscripts +Requires(pre,postun): %_initrddir %package legacy Summary: Legacy utilities for util-vserver @@ -83,7 +87,9 @@ set_ipv4root system call. %build %configure --with-initrddir=%_initrddir --enable-release \ %{?_without_dietlibc:--disable-dietlibc} -%__make %{?_smp_mflags} + +%__make %{?_smp_mflags} all +%__make %{?_smp_mflags} doc %install @@ -112,26 +118,31 @@ f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s /var/run/vservers %define v_services httpd named portmap sendmail smb sshd xinetd %post sysv -/sbin/chkconfig --add vservers -/sbin/chkconfig --add rebootmgr +%chkconfig --add vservers +%chkconfig --add rebootmgr +%chkconfig --add vprocunhide for i in %v_services; do - /sbin/chkconfig --add v_$i + %chkconfig --add v_$i done %preun sysv test "$1" != 0 || for i in %v_services; do - /sbin/chkconfig --del v_$i + %chkconfig --del v_$i done -test "$1" != 0 || %{_initrddir}/rebootmgr stop &>/dev/null || : -test "$1" != 0 || /sbin/chkconfig --del rebootmgr -test "$1" != 0 || /sbin/chkconfig --del vservers +test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || : +test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || : + +test "$1" != 0 || %chkconfig --del vprocunhide +test "$1" != 0 || %chkconfig --del rebootmgr +test "$1" != 0 || %chkconfig --del vservers %postun sysv -test "$1" = 0 || %{_initrddir}/rebootmgr condrestart >/dev/null || : +test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || : +test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || : %post lib -p /sbin/ldconfig @@ -142,6 +153,7 @@ test "$1" = 0 || %{_initrddir}/rebootmgr condrestart >/dev/null || : %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog NEWS README THANKS %doc doc/FAQ.txt +%doc doc/*.html doc/*.css %dir %pkglibdir %dir %confdefaultdir %dir %confdefaultdir/init @@ -187,8 +199,15 @@ test "$1" = 0 || %{_initrddir}/rebootmgr condrestart >/dev/null || : %files devel -f %name-devel.list %defattr(-,root,root,-) +%doc lib/apidoc/latex/refman.pdf +%doc lib/apidoc/html %changelog +* Sat Mar 6 2004 Enrico Scholz - 0:0.29.198-0 +- added vprocunhide-service support +- added doxygen support +- updated Requires: + * Wed Oct 1 2003 Enrico Scholz - 0:0.23.5-0 - Initial build.