added formerly missing 'v_gated' registration
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 24 Mar 2004 01:05:13 +0000 (01:05 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 24 Mar 2004 01:05:13 +0000 (01:05 +0000)
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

util-vserver/util-vserver.spec.in

index e08f899..13d1499 100644 (file)
@@ -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