SPECS: hotplug-ng.spec (NEW) - initial
charles
charles at pld-linux.org
Tue Oct 18 00:20:32 CEST 2005
Author: charles Date: Mon Oct 17 22:20:32 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial
---- Files affected:
SPECS:
hotplug-ng.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/hotplug-ng.spec
diff -u /dev/null SPECS/hotplug-ng.spec:1.1
--- /dev/null Tue Oct 18 00:20:32 2005
+++ SPECS/hotplug-ng.spec Tue Oct 18 00:20:26 2005
@@ -0,0 +1,72 @@
+# $Revision$, $Date$
+# TODO
+# - link with klibc + bcond
+#
+# Conditional build:
+%bcond_with verbose # verbose build (V=1)
+#
+Summary: hotplug-ng - /sbin/hotplug replacement and auto module loader in c
+Name: hotplug-ng
+Version: 002
+Release: 0.1
+License: GPL v2
+Group: Applications/System
+Source0: http://kernel.org/pub/linux/utils/kernel/hotplug/%{name}-%{version}.tar.bz2
+# Source0-md5: a302ec0a7110c4f598f655d877eb8875
+Patch0: %{name}-Makefile.patch
+Provides: hotplug = 2005
+Obsoletes: hotplug
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _sbindir /sbin
+
+%description
+hotplug-ng - a /sbin/hotplug replacement and auto module loader in c.
+It currently provides the following:
+- a /sbin/hotplug multiplexer. Works identical to the existing bash
+ /sbin/hotplug.
+- autoload programs for usb, scsi, and pci modules. These programs
+ determine what module needs to be loaded when the kernel emits a
+ hotplug event for these types of devices. This works just like the
+ existing linux-hotplug scripts, with a few exceptions.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make} \
+ CC="%{__cc}" \
+ HOSTCC="%{__cc}" \
+ DEBUG=%{!?debug:false}%{?debug:true} \
+ OPTIMIZATION="%{rpmcflags}" \
+ USE_LOG=true \
+ %{?with_verbose:V=1}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/hotplug.d/default
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README TODO
+%attr(755,root,root) %{_sbindir}/*
+%{_sysconfdir}/hotplug.d
+%{_mandir}/man8/*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2005/10/17 22:20:26 charles
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list