linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Love <rml@ximian.com>
To: linux-hotplug@vger.kernel.org
Subject: [patch] install initscript in udev rpm
Date: Tue, 16 Dec 2003 17:03:07 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-107159425223379@msgid-missing> (raw)

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

             reply	other threads:[~2003-12-16 17:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-16 17:03 Rob Love [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-12-16 17:11 [patch] install initscript in udev rpm 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-hotplug-107159425223379@msgid-missing \
    --to=rml@ximian.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).