linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] install initscript in udev rpm
@ 2003-12-16 17:03 Rob Love
  0 siblings, 0 replies; 10+ messages in thread
From: Rob Love @ 2003-12-16 17:03 UTC (permalink / raw)
  To: linux-hotplug

Hi, Greg.

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.

Por favor, please apply.

	Rob Love


 Makefile  |    4 ++++
 udev.spec |    7 +++++++
 2 files changed, 11 insertions(+)

diff -urN udev-008/Makefile udev/Makefile
--- udev-008/Makefile	2003-12-03 16:57:27.000000000 -0500
+++ udev/Makefile	2003-12-16 11:04:03.568185288 -0500
@@ -35,6 +35,7 @@
 mandir =	${prefix}/usr/share/man
 hotplugdir =	${etcdir}/hotplug.d/default
 configdir =	${etcdir}/udev/
+initdir =	${etcdir}/init.d/
 srcdir = .
 
 INSTALL = /usr/bin/install -c
@@ -229,11 +230,13 @@
 	$(INSTALL) -d $(DESTDIR)$(udevdir)
 	$(INSTALL) -d $(DESTDIR)$(configdir)
 	$(INSTALL) -d $(DESTDIR)$(hotplugdir)
+	$(INSTALL) -d $(DESTDIR)$(initdir)
 	$(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT)
 	$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
 	$(INSTALL_DATA) udev.conf $(DESTDIR)$(configdir)
 	$(INSTALL_DATA) udev.rules $(DESTDIR)$(configdir)
 	$(INSTALL_DATA) udev.permissions $(DESTDIR)$(configdir)
+	$(INSTALL_DATA) etc/init.d/udev $(DESTDIR)$(initdir)
 	- rm -f $(DESTDIR)$(hotplugdir)/udev.hotplug
 	- ln -s $(sbindir)/$(ROOT) $(DESTDIR)$(hotplugdir)/udev.hotplug
 
@@ -242,6 +245,7 @@
 	- 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 -urN udev-008/udev.spec udev/udev.spec
--- udev-008/udev.spec	2003-12-03 16:57:33.000000000 -0500
+++ udev/udev.spec	2003-12-16 11:25:06.850137240 -0500
@@ -23,6 +23,9 @@
 %install
 make DESTDIR=$RPM_BUILD_ROOT install
 
+%post
+/sbin/chkconfig --add udev
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -35,10 +38,14 @@
 %attr(0644,root,root) /etc/udev/udev.conf
 %attr(0644,root,root) /etc/udev/udev.rules
 %attr(0644,root,root) /etc/udev/udev.permissions
+%attr(0644,root,root) /etc/init.d/udev
 %attr(-,root,root) /etc/hotplug.d/default/udev.hotplug
 %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
 





-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [patch] install initscript in udev rpm
@ 2003-12-16 17:11 Marco d'Itri
  2003-12-16 17:23 ` Greg KH
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Marco d'Itri @ 2003-12-16 17:11 UTC (permalink / raw)
  To: linux-hotplug

On Dec 16, Rob Love <rml@ximian.com> wrote:

 >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.
The red hat script distributed by the udev package is very red hat
specific. Are you sure this is a good idea?

-- 
ciao, |
Marco | [3639 co/da5ds3kM86]


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-12-17 18:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-16 17:03 [patch] install initscript in udev rpm Rob Love
  -- strict thread matches above, loose matches on Subject: below --
2003-12-16 17:11 Marco d'Itri
2003-12-16 17:23 ` Greg KH
2003-12-16 17:31 ` Rob Love
2003-12-16 23:31 ` Greg KH
2003-12-17  0:13 ` Marco d'Itri
2003-12-17  1:01 ` Greg KH
2003-12-17  8:28 ` Marco d'Itri
2003-12-17 15:46 ` Rob Love
2003-12-17 18:11 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).