Add init scripts
[zfs.git] / zfs.spec.in
index 4e1d4be..08ea483 100644 (file)
@@ -65,7 +65,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/*
 %{_libdir}/*
 %{_mandir}/man8/*
-/etc/*
+%{_sysconfdir}/init.d/*
+%{_sysconfdir}/udev/rules.d/*
+%{_sysconfdir}/zfs/*
+/sbin/*
 
 %files devel
 %defattr(-,root,root)
@@ -76,4 +79,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libexecdir}/@PACKAGE@/*
 
 %post
-%postun
+[ -x /sbin/chkconfig ] && /sbin/chkconfig --add zfs
+exit 0
+
+%preun
+[ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs
+exit 0