From: rml@ximian.com Date: Wed, 17 Dec 2003 07:30:15 +0000 (-0800) Subject: [PATCH] install initscript in udev rpm X-Git-Tag: 009~9 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=316c51507724406f2ded06d067f55e867df90b15 [PATCH] install initscript in udev rpm 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. --- diff --git a/Makefile b/Makefile index bd9a9035e..4a545db9c 100644 --- 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) diff --git a/udev.spec b/udev.spec index bd455ef2b..516239bc6 100644 --- 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 +- install the initscript and run chkconfig on it + * Tue Nov 2 2003 Greg Kroah-Hartman - changes due to config file name changes