summaryrefslogtreecommitdiff
path: root/udev.spec
diff options
context:
space:
mode:
authordhollis@davehollis.com <dhollis@davehollis.com>2003-12-17 08:35:00 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:09 -0700
commit1b1dbc47a3b1b227273c7ed5074a6376efc7526e (patch)
tree28c50a5a68b1cdf4f77420148638e0848bb2960a /udev.spec
parent4868e8fba7fda5074fc7d64f4f22236127afc3c8 (diff)
downloadsystemd-1b1dbc47a3b1b227273c7ed5074a6376efc7526e.tar.gz
[PATCH] mark config files as such in the rpm spec file
Got a nasty surprise after upgrading my RPM. The config files weren't marked as configs and were subsequently replaced! DOH! Fortunately, I didn't have much in there yet but that certainly isn't something others will like going forward. Attached is a simple patch to the spec file so they aren't replaced in the future. The config files included in the RPM should wind up as udev.conf.rpmnew, etc if they are different from what is installed.
Diffstat (limited to 'udev.spec')
-rw-r--r--udev.spec6
1 files changed, 3 insertions, 3 deletions
diff --git a/udev.spec b/udev.spec
index f8bde13171..2e5a472a52 100644
--- a/udev.spec
+++ b/udev.spec
@@ -40,9 +40,9 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) /sbin/udev
%attr(755,root,root) /udev/
%attr(755,root,root) /etc/udev/
-%attr(0644,root,root) /etc/udev/udev.conf
-%attr(0644,root,root) /etc/udev/udev.rules
-%attr(0644,root,root) /etc/udev/udev.permissions
+%config(noreplace) %attr(0644,root,root) /etc/udev/udev.conf
+%config(noreplace) %attr(0644,root,root) /etc/udev/udev.rules
+%config(noreplace) %attr(0644,root,root) /etc/udev/udev.permissions
%attr(-,root,root) /etc/hotplug.d/default/udev.hotplug
%attr(755,root,root) /etc/init.d/udev
%attr(0644,root,root) %{_mandir}/man8/udev.8*