linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RPMs for hotplug scripts
@ 2001-01-16  1:39 Greg KH
  2001-01-16 17:30 ` David Brownell
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Greg KH @ 2001-01-16  1:39 UTC (permalink / raw)
  To: linux-hotplug

[-- 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

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

end of thread, other threads:[~2001-01-17 10:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-16  1:39 RPMs for hotplug scripts Greg KH
2001-01-16 17:30 ` David Brownell
2001-01-16 19:11 ` Greg KH
2001-01-17 10:01 ` Chmouel Boudjnah

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).