SPECS: ipw3945.spec - add modprobe.d config file
wolvverine
wolvverine at pld-linux.org
Tue Aug 15 01:42:15 CEST 2006
Author: wolvverine Date: Mon Aug 14 23:42:15 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add modprobe.d config file
---- Files affected:
SPECS:
ipw3945.spec (1.9 -> 1.10)
---- Diffs:
================================================================
Index: SPECS/ipw3945.spec
diff -u SPECS/ipw3945.spec:1.9 SPECS/ipw3945.spec:1.10
--- SPECS/ipw3945.spec:1.9 Mon Aug 7 18:19:07 2006
+++ SPECS/ipw3945.spec Tue Aug 15 01:42:10 2006
@@ -1,11 +1,12 @@
# $Revision$, $Date$
-#
+#TODO
+# - add SOURCE1 to %{_sysconfdir}/modprobe.conf (%post?)
# Conditional build:
%bcond_without dist_kernel # allow non-distribution kernel
%bcond_without smp # don't build SMP module
%bcond_with verbose # verbose build (V=1)
#
-%define _rel 2
+%define _rel 3
%define _ieeever 1.1.14
%define _fwver 1.13
@@ -19,6 +20,7 @@
Group: Base/Kernel
Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tgz
# Source0-md5: 1f393d7a080879dba1a824dec251d71e
+Source1: %{name}-modprobe.conf
Patch0: %{name}-bashizm.patch
Patch1: %{name}-fix_undefined_symbols.patch
URL: http://ipw3945.sourceforge.net/
@@ -134,28 +136,17 @@
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc \
- $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{_kernel_ver}{,smp}
+ $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d
cd built
install %{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}/ipw3945.ko \
$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/ipw3945_current.ko
-echo "alias ipw3945 ipw3945_current
- install ipw3945 /sbin/modprobe --ignore-install ipw3945 ; sleep 0.5 ; \
- /sbin/ipw3945d-$(uname -r) --quiet
- remove ipw3945 /sbin/ipw3945d-$(uname -r) --kill ; \
- /sbin/modprobe -r --ignore-remove ipw3945" \
- >> $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{_kernel_ver}/ipw3945.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{name}.conf
%if %{with smp} && %{with dist_kernel}
install smp/ipw3945.ko \
$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/ipw3945_current.ko
-echo "alias ipw3945 ipw3945_current
- install ipw3945 /sbin/modprobe --ignore-install ipw3945 ; sleep 0.5 ; \
- /sbin/ipw3945d --quiet
- remove ipw3945 /sbin/ipw3945d --kill ; \
- /sbin/modprobe -r --ignore-remove ipw3945
-" \
- >> $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{_kernel_ver}smp/ipw3945.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{name}.conf
%endif
%clean
@@ -176,13 +167,13 @@
%files -n kernel%{_alt_kernel}-net-%{name}
%defattr(644,root,root,755)
/lib/modules/%{_kernel_ver}/misc/ipw3945*.ko*
-%{_sysconfdir}/modprobe.d/%{_kernel_ver}/ipw3945.conf
+%{_sysconfdir}/modprobe.d/ipw3945.conf
%if %{with smp} && %{with dist_kernel}
%files -n kernel%{_alt_kernel}-smp-net-%{name}
%defattr(644,root,root,755)
/lib/modules/%{_kernel_ver}smp/misc/ipw3945*.ko*
-%{_sysconfdir}/modprobe.d/%{_kernel_ver}smp/ipw3945.conf
+%{_sysconfdir}/modprobe.d/ipw3945.conf
%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -191,6 +182,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.10 2006/08/14 23:42:10 wolvverine
+- add modprobe.d config file
+
Revision 1.9 2006/08/07 16:19:07 qboosh
- tab
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/ipw3945.spec?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list