%__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
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
%files lib -f %name-lib.list
+%files sysv -f %name-sysv.list
+
%files core -f %name-core.list
%defattr(-,root,root,-)
%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