[packages/xboxdrv] blacklist the 'xpad' kernel module
jajcus
jajcus at pld-linux.org
Mon Mar 9 13:51:10 CET 2015
commit 99c7febb1a4d5bef71fed54fce18cf279ba724ad
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Mon Mar 9 13:50:16 2015 +0100
blacklist the 'xpad' kernel module
We don't want it auto-loaded when a pad is connected.
xboxdrv.blacklist.conf | 1 +
xboxdrv.spec | 5 ++++-
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/xboxdrv.spec b/xboxdrv.spec
index 4b4e1f9..16bb1a9 100644
--- a/xboxdrv.spec
+++ b/xboxdrv.spec
@@ -9,6 +9,7 @@ Source0: http://pingus.seul.org/~grumbel/xboxdrv/%{name}-linux-%{version}.tar.bz
Source1: %{name}.service
Source2: %{name}.init
Source3: %{name}.sysconfig
+Source4: %{name}.blacklist.conf
URL: http://pingus.seul.org/~grumbel/xboxdrv/
BuildRequires: rpmbuild(macros) >= 1.228
Requires(post,preun): /sbin/chkconfig
@@ -52,7 +53,7 @@ works for you there is no need to try this driver.
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{systemdunitdir}} \
- $RPM_BUILD_ROOT{/etc/sysconfig,/etc/rc.d/init.d}
+ $RPM_BUILD_ROOT{/etc/sysconfig,/etc/rc.d/init.d,/etc/modprobe.d}
install xboxdrv $RPM_BUILD_ROOT%{_bindir}
install xboxdrvctl $RPM_BUILD_ROOT%{_bindir}
@@ -62,6 +63,7 @@ install doc/xboxdrv.1 $RPM_BUILD_ROOT%{_mandir}/man1
install %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/xboxdrv.service
install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/xboxdrv
install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/xboxdrv
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/modprobe.d/xboxdrv.blacklist.conf
%clean
rm -rf $RPM_BUILD_ROOT
@@ -89,6 +91,7 @@ fi
%attr(754,root,root) /etc/rc.d/init.d/xboxdrv
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xboxdrv
%{systemdunitdir}/xboxdrv.service
+%config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/xboxdrv.blacklist.conf
%attr(755,root,root) %{_bindir}/xboxdrv
%attr(755,root,root) %{_bindir}/xboxdrvctl
%{_mandir}/man1/xboxdrv.1*
diff --git a/xboxdrv.blacklist.conf b/xboxdrv.blacklist.conf
new file mode 100644
index 0000000..76f498f
--- /dev/null
+++ b/xboxdrv.blacklist.conf
@@ -0,0 +1 @@
+blacklist xpad
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xboxdrv.git/commitdiff/99c7febb1a4d5bef71fed54fce18cf279ba724ad
More information about the pld-cvs-commit
mailing list