linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: RPMs for hotplug scripts
Date: Tue, 16 Jan 2001 01:39:44 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-97960910425372@msgid-missing> (raw)

[-- Attachment #1: Type: text/plain, Size: 951 bytes --]

Hi,

I was working on a bunch of other rpm spec files today so thought I
would knock out one for the hotplug scripts.

Attached is a noarch package, a src.rpm package, a spec file, and a
small patch that I made to the usb.rc startup script (to allow it to be
inserted using the chkconfig utility).  I based this on the Jan 13,
2001 tarball that David made available.

Could people check this over to see if I messed anything up?

David, do you want to check the hotplug.spec file into cvs, or do you
want me to?  Does the patch look ok (with the exception of my horrible
english, bleah, what a bad cut and paste job...)

I built and kinda tested this on a RedHat 6.2, Immunix 6.2, RedHat 7.0,
and Immunix 7.0 distros.  I don't know if the startup script will work
with other distros, or if it will even play nice with RedHat (they start
up USB before the rc scripts get called.)

Hope this helps some people out.

greg k-h

-- 
greg@(kroah|wirex).com

[-- Attachment #2: hotplug-20010113-2.noarch.rpm --]
[-- Type: application/octet-stream, Size: 12284 bytes --]

[-- Attachment #3: hotplug-20010113-2.src.rpm --]
[-- Type: application/octet-stream, Size: 14658 bytes --]

[-- Attachment #4: hotplug.spec --]
[-- Type: text/plain, Size: 1304 bytes --]

Summary:		Linux Hotplug Scripts
Name:			hotplug
Version:		20010113
Release:		2
Group:			Applications/System
License:		GPL
Url:			http://linux-hotplug.sourceforge.net/
BuildArchitectures:	noarch
Source0:		%{name}-%{version}.tar.gz
BuildRoot:		/var/tmp/%{name}-root
Patch0:			hotplug-20010113_chkconfig.patch

%description
This package contains the scripts necessary for hotplug Linux support.

%prep
%setup -q
%patch0 -p1 -b .chkconfig

%build
rm -rf $RPM_BUILD_ROOT
# nothing to really do here right now	


%install
# build directories
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}/sbin
mkdir -p ${RPM_BUILD_ROOT}/etc/hotplug
mkdir -p ${RPM_BUILD_ROOT}/etc/rc.d/init.d

# install the main hotplug script
install -m 755 hotplug ${RPM_BUILD_ROOT}/sbin

# install the helper hotplug scripts
cp -a *.agent ${RPM_BUILD_ROOT}/etc/hotplug
cp -a *.functions ${RPM_BUILD_ROOT}/etc/hotplug

# install the usb startup script
cp -a usb.rc ${RPM_BUILD_ROOT}/etc/rc.d/init.d/usb


%files
%defattr(-,root,root)
/sbin/*
/etc/rc.d/init.d/usb
/etc/hotplug/*
%doc README


%post
chkconfig --add usb


%preun
chkconfig --del usb


%changelog
* Mon Jan 15 2001 Greg Kroah-Hartman <greg@kroah.com>
- First cut at a spec file for the hotplug scripts.
- added patch to usb.rc to allow chkconfig to install and remove it.


[-- Attachment #5: hotplug-20010113_chkconfig.patch --]
[-- Type: text/plain, Size: 526 bytes --]

diff -au hotplug-20010113/usb.rc hotplug-20010113-greg/usb.rc
--- hotplug-20010113/usb.rc	Mon Jan  8 13:22:40 2001
+++ hotplug-20010113-greg/usb.rc	Mon Jan 15 17:25:36 2001
@@ -16,6 +16,10 @@
 # link USB keyboard support into the kernel (USB core, UHCI/OHCI,
 # hid, input, keybdev; and likely mousedev) so the system console
 # can't be removed by accident.
+#
+# chkconfig: 2345 01 99
+# description: USB rc file. This rc script inserts brings the usb \
+#	       up and down safely.
 
 
 PATH=/sbin:/bin:/usr/sbin:/usr/bin

             reply	other threads:[~2001-01-16  1:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-16  1:39 Greg KH [this message]
2001-01-16 17:30 ` RPMs for hotplug scripts David Brownell
2001-01-16 19:11 ` Greg KH
2001-01-17 10:01 ` Chmouel Boudjnah

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-97960910425372@msgid-missing \
    --to=greg@kroah.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).