From: Enrico Scholz Date: Wed, 24 Mar 2004 01:05:13 +0000 (+0000) Subject: added formerly missing 'v_gated' registration X-Git-Tag: VERSION_0_10~254 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70d26fe6c9450271dc9fbbb1a2ecc27a34863a73;p=util-vserver.git added formerly missing 'v_gated' registration updated -legacy subpackage and moved some initscripts into it git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1321 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/util-vserver.spec.in b/util-vserver/util-vserver.spec.in index e08f899..13d1499 100644 --- a/util-vserver/util-vserver.spec.in +++ b/util-vserver/util-vserver.spec.in @@ -116,10 +116,9 @@ f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s /var/run/vservers %__chattr +t /vservers || : -%define v_services httpd named portmap sendmail smb sshd xinetd +%define v_services httpd named portmap sendmail smb sshd xinetd gated %post sysv %chkconfig --add vservers-default -%chkconfig --add rebootmgr %chkconfig --add vprocunhide for i in %v_services; do @@ -133,22 +132,33 @@ test "$1" != 0 || for i in %v_services; do done 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-default %postun sysv test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || : -test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || : %post lib -p /sbin/ldconfig %postun lib -p /sbin/ldconfig +%post legacy +%chkconfig --add rebootmgr +%chkconfig --add vservers-legacy + +%preun legacy +test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || : + +test "$1" != 0 || %chkconfig --del rebootmgr +test "$1" != 0 || %chkconfig --del vservers-legacy + +%postun legacy +test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || : + + %files -f %name-base.list %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog NEWS README THANKS @@ -171,6 +181,8 @@ test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || : %files lib -f %name-lib.list +%files sysv -f %name-sysv.list + %files core -f %name-core.list %defattr(-,root,root,-) @@ -189,11 +201,6 @@ test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || : %files legacy -f %name-legacy.list %defattr(-,root,root,-) %dir %pkglibdir/legacy - - -%files sysv -f %name-sysv.list -%defattr(-,root,root,-) -%config %_initrddir/* %config(noreplace) %_sysconfdir/vservers.conf