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:
Marcus Meissner 2013-04-17 08:07:36 +00:00 committed by Git OBS Bridge
parent 0c880c5edd
commit a2e951cb95
3 changed files with 18 additions and 7 deletions

View File

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

View File

@ -22,6 +22,8 @@ License: GPL-2.0+
Group: Hardware/Other
Version: 1.0
Release: 0
BuildRequires: pkgconfig
BuildRequires: pkgconfig(udev) > 176
Requires: modutils
BuildArch: noarch
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:v00001000d00000056sv*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*)
# end of supplements list
%define _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d
%prep
%build
# There is nothing to build
%install
mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
cp %{S:0} $RPM_BUILD_ROOT/etc/udev/rules.d/81-mptctl.rules
install -D -m644 %{S:0} %{buildroot}%{_udevrulesdir}/81-mptctl.rules
%description
This package contains modprobe configuration files to autoload the
@ -81,8 +83,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir /etc/udev
%dir /etc/udev/rules.d
%config /etc/udev/rules.d/*
%{_udevrulesdir}/81-mptctl.rules
%changelog

View File

@ -1,6 +1,6 @@
# Autoload mptctl module
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"