summaryrefslogtreecommitdiff
path: root/udev.spec
diff options
context:
space:
mode:
authoreike-hotplug@sf-tec.de <eike-hotplug@sf-tec.de>2004-01-10 01:19:57 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:15 -0700
commite64280b8b30569ad6029e48f23d290e06a28d7ed (patch)
tree1fa2a1d2793bef21623825d5fed79e7ee71fdd1a /udev.spec
parent40041ff4f1153360409ae88f0c0168ad2ee4d224 (diff)
[PATCH] LSB init script and other stuff
I had too much time during the holidays, so I played a bit with udev. The changes are like last time mostly on the init stuff. I'm sending you this as a great diff which is just for comments. What it does: -fix a typo in Makefile -use only one "grep -v" instead of many -don't include BK-Files into release (shrinks the stuff to 30%!) -add a new init script which is LSB compliant -add some flags to choose which one to use -use /etc/udev/udev.conf in Redhat init script as the source for the udev directory. If this is not done then the init script may create a directory which udev itself isn't using (I changed /udev to /Udev to avoid collisions with /usr and ran into this) -first check for sysfs_dir before creating udev_root (maybe someone else has already fixed this, I saw this discussion on lkml)
Diffstat (limited to 'udev.spec')
-rw-r--r--udev.spec12
1 files changed, 11 insertions, 1 deletions
diff --git a/udev.spec b/udev.spec
index 9e301deb7c..4056025df8 100644
--- a/udev.spec
+++ b/udev.spec
@@ -16,6 +16,11 @@
# 1 - debugging enabled
%define debug 0
+# if we want to use the LSB version of the init script or the Redhat one
+# 0 - use Redhat version: etc/init.d/udev
+# 1 - use LSB version: etc/init.d/udev.init.LSB
+%define lsb 0
+
Summary: A userspace implementation of devfs
Name: udev
Version: 012_bk
@@ -52,6 +57,9 @@ make DESTDIR=$RPM_BUILD_ROOT install \
%if %{dbus}
USE_DBUS=true
%endif
+%if %{lsb}
+ USE_LSB=true
+%endif
%post
/sbin/chkconfig --add udev
@@ -81,6 +89,9 @@ rm -rf $RPM_BUILD_ROOT
%attr(0644,root,root) %{_mandir}/man8/udev.8*
%changelog
+* Mon Jan 05 2004 Rolf Eike Beer <eike-hotplug@sf-tec.de>
+- add defines to choose the init script (Redhat or LSB)
+
* Tue Dec 16 2003 Robert Love <rml@ximian.com>
- install the initscript and run chkconfig on it
@@ -96,4 +107,3 @@ rm -rf $RPM_BUILD_ROOT
* Mon Jul 28 2003 Paul Mundt <lethal@linux-sh.org>
- Initial spec file for udev-0.2.
-