chiark / gitweb /
[PATCH] install initscript in udev rpm
authorrml@ximian.com <rml@ximian.com>
Wed, 17 Dec 2003 07:30:15 +0000 (23:30 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:08 +0000 (21:13 -0700)
Attached patch installs the initscript via 'make install' and adds it to
the RPM package.  The RPM script then runs chkconfig(8) to setup the
initscript to run at the appropriate runlevels.

Makefile
udev.spec

index bd9a9035eebb4a6ab6e6e9859d3d2ebcfea28e19..4a545db9c49492b84988aa65427d4a24f4ff4ffd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -297,6 +297,7 @@ uninstall: uninstall-dbus-policy
        - rm $(configdir)/udev.permissions
        - rm $(configdir)/udev.rules
        - rm $(configdir)/udev.conf
+       - rm $(initdir)/udev
        - rm $(mandir)/man8/udev.8
        - rm $(sbindir)/$(ROOT)
        - rmdir $(hotplugdir)
index bd455ef2b1c99b7b2771018fa2ab6a0ee3d0170b..516239bc6d4186cad2a2473f474d16b9aa637b9e 100644 (file)
--- a/udev.spec
+++ b/udev.spec
@@ -23,6 +23,9 @@ make CC="gcc $RPM_OPT_FLAGS"
 %install
 make DESTDIR=$RPM_BUILD_ROOT install
 
+%post
+/sbin/chkconfig --add udev
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -40,6 +43,9 @@ rm -rf $RPM_BUILD_ROOT
 %attr(0644,root,root) %{_mandir}/man8/udev.8*
 
 %changelog
+* Tue Dec 16 2003 Robert Love <rml@ximian.com>
+- install the initscript and run chkconfig on it
+
 * Tue Nov 2 2003 Greg Kroah-Hartman <greg@kroah.com>
 - changes due to config file name changes