Mark zdev.conf as a config file
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 13 Jun 2012 19:58:27 +0000 (12:58 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 13 Jun 2012 20:02:43 +0000 (13:02 -0700)
Prevent 'rpm -Uvh *.rpm" from automatically replacing your vdev.conf
file by flagging it as a non replacable config file.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #486

zfs.spec.in

index 4b5b3ea..07b16e8 100644 (file)
@@ -74,17 +74,20 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-, root, root)
-%doc AUTHORS ChangeLog COPYING COPYRIGHT DISCLAIMER
-%doc OPENSOLARIS.LICENSE README.markdown ZFS.RELEASE
 %{_sbindir}/*
 %{_bindir}/*
 %{_libdir}/*
 %{_mandir}/man5/*
 %{_mandir}/man8/*
-%{_sysconfdir}/init.d/*
-%{_sysconfdir}/zfs/*
 %{_udevdir}/*
 
+%config %{_sysconfdir}/init.d/*
+%config %{_sysconfdir}/zfs/*
+%config(noreplace) %{_sysconfdir}/zfs/zdev.conf
+
+%doc AUTHORS ChangeLog COPYING COPYRIGHT DISCLAIMER
+%doc OPENSOLARIS.LICENSE README.markdown ZFS.RELEASE
+
 %files devel
 %defattr(-,root,root)
 %{_includedir}/*