Accepting request 170957 from home:elvigia:branches:Base:System
- Also, update modaliases. - Fix udev rules location and update them to use builtin module loading features. OBS-URL: https://build.opensuse.org/request/show/170957 OBS-URL: https://build.opensuse.org/package/show/Base:System/mpt-firmware?expand=0&rev=8
This commit is contained in:
parent
0c880c5edd
commit
a2e951cb95
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 15 22:57:38 UTC 2013 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- Also, update modaliases.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 14 20:40:56 UTC 2013 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- Fix udev rules location and update them to use builtin
|
||||||
|
module loading features.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Feb 2 23:00:15 UTC 2013 - crrodriguez@opensuse.org
|
Sat Feb 2 23:00:15 UTC 2013 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@ License: GPL-2.0+
|
|||||||
Group: Hardware/Other
|
Group: Hardware/Other
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: pkgconfig(udev) > 176
|
||||||
Requires: modutils
|
Requires: modutils
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -46,17 +48,17 @@ Supplements: modalias(pci:v00001000d00000050sv*sd*bc*sc*i*)
|
|||||||
Supplements: modalias(pci:v00001000d00000054sv*sd*bc*sc*i*)
|
Supplements: modalias(pci:v00001000d00000054sv*sd*bc*sc*i*)
|
||||||
Supplements: modalias(pci:v00001000d00000056sv*sd*bc*sc*i*)
|
Supplements: modalias(pci:v00001000d00000056sv*sd*bc*sc*i*)
|
||||||
Supplements: modalias(pci:v00001000d00000058sv*sd*bc*sc*i*)
|
Supplements: modalias(pci:v00001000d00000058sv*sd*bc*sc*i*)
|
||||||
|
Supplements: modalias(pci:v00001000d00000059sv*sd*bc*sc*i*)
|
||||||
Supplements: modalias(pci:v00001000d00000062sv*sd*bc*sc*i*)
|
Supplements: modalias(pci:v00001000d00000062sv*sd*bc*sc*i*)
|
||||||
# end of supplements list
|
# end of supplements list
|
||||||
|
%define _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# There is nothing to build
|
# There is nothing to build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
|
install -D -m644 %{S:0} %{buildroot}%{_udevrulesdir}/81-mptctl.rules
|
||||||
cp %{S:0} $RPM_BUILD_ROOT/etc/udev/rules.d/81-mptctl.rules
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains modprobe configuration files to autoload the
|
This package contains modprobe configuration files to autoload the
|
||||||
@ -81,8 +83,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir /etc/udev
|
%{_udevrulesdir}/81-mptctl.rules
|
||||||
%dir /etc/udev/rules.d
|
|
||||||
%config /etc/udev/rules.d/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Autoload mptctl module
|
# Autoload mptctl module
|
||||||
ACTION!="add", GOTO="mptctl_end"
|
ACTION!="add", GOTO="mptctl_end"
|
||||||
|
|
||||||
SUBSYSTEM=="pci", DRIVER=="mpt*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe mptctl"
|
SUBSYSTEM=="pci", DRIVER=="mpt*", ENV{MODALIAS}=="?*", RUN{builtin}="kmod load mptctl"
|
||||||
|
|
||||||
LABEL="mptctl_end"
|
LABEL="mptctl_end"
|
||||||
|
Loading…
Reference in New Issue
Block a user