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 - First cut at a spec file for the hotplug scripts. - added patch to usb.rc to allow chkconfig to install and remove it.