summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-07 05:15:02 (GMT)
committerAnas Nashif <anas.nashif@intel.com>2012-11-07 05:15:02 (GMT)
commitd74c26d6a7ee2317c0be7e0603653ad0e45affa6 (patch)
treea0e5a5eb7325d42b9d9ceeb31a12a8601fdf3c74
parent46f77ab436a73361e7d37f69bb77e6753b407a2f (diff)
downloadxf86-input-evdev-d74c26d6a7ee2317c0be7e0603653ad0e45affa6.zip
xf86-input-evdev-d74c26d6a7ee2317c0be7e0603653ad0e45affa6.tar.gz
xf86-input-evdev-d74c26d6a7ee2317c0be7e0603653ad0e45affa6.tar.bz2
-rw-r--r--packaging/evdev.conf45
-rw-r--r--packaging/xf86-input-evdev.spec72
2 files changed, 117 insertions, 0 deletions
diff --git a/packaging/evdev.conf b/packaging/evdev.conf
new file mode 100644
index 0000000..13c884e
--- /dev/null
+++ b/packaging/evdev.conf
@@ -0,0 +1,45 @@
+# 10-evdev.conf
+# Catch-all evdev loader for udev-based systems
+# We don't simply match on any device since that also adds accelerometers
+# and other devices that we don't really want to use.
+# The list below matches everything but joysticks.
+
+Section "InputClass"
+ Identifier "evdev pointer catchall"
+ MatchIsPointer "on"
+ MatchDevicePath "/dev/input/event*"
+ Driver "evdev"
+ Option "Protocol" "Auto" # Auto, ImPS/2 ('man mousedrv')
+ Option "ZAxisMapping" "4 5"
+ Option "AccelerationProfile" "-1" # man xorg.conf
+EndSection
+
+Section "InputClass"
+ Identifier "evdev keyboard catchall"
+ MatchIsKeyboard "on"
+ MatchDevicePath "/dev/input/event*"
+ Driver "evdev"
+ Option "Autorepeat" "250 30"
+ Option "XkbOptions" "terminate:ctrl_alt_bksp"
+EndSection
+
+Section "InputClass"
+ Identifier "evdev touchpad catchall"
+ MatchIsTouchpad "on"
+ MatchDevicePath "/dev/input/event*"
+ Driver "evdev"
+EndSection
+
+Section "InputClass"
+ Identifier "evdev tablet catchall"
+ MatchIsTablet "on"
+ MatchDevicePath "/dev/input/event*"
+ Driver "evdev"
+EndSection
+
+Section "InputClass"
+ Identifier "evdev touchscreen catchall"
+ MatchIsTouchscreen "on"
+ MatchDevicePath "/dev/input/event*"
+ Driver "evdev"
+EndSection
diff --git a/packaging/xf86-input-evdev.spec b/packaging/xf86-input-evdev.spec
new file mode 100644
index 0000000..3d19916
--- /dev/null
+++ b/packaging/xf86-input-evdev.spec
@@ -0,0 +1,72 @@
+Name: xf86-input-evdev
+Version: 2.7.3
+Release: 0
+License: MIT
+Summary: Generic Linux input driver for the Xorg X server
+Url: http://xorg.freedesktop.org/
+Group: System/X11/Servers/XF86_4
+Source0: http://xorg.freedesktop.org/releases/individual/driver/%{name}-%{version}.tar.bz2
+Source1: evdev.conf
+BuildRequires: pkg-config
+BuildRequires: pkgconfig(inputproto)
+BuildRequires: pkgconfig(libudev)
+BuildRequires: pkgconfig(mtdev)
+BuildRequires: pkgconfig(resourceproto)
+BuildRequires: pkgconfig(xorg-macros) >= 1.8
+BuildRequires: pkgconfig(xorg-server)
+BuildRequires: pkgconfig(xproto)
+Requires: udev
+
+%description
+evdev is an Xorg input driver for Linux's generic event devices. It
+therefore supports all input devices that the kernel knows about,
+including most mice, keyboards, tablets and touchscreens.
+
+%package devel
+Summary: Generic Linux input driver for the Xorg X server -- Development Files
+Group: Development/Libraries/X11
+Requires: %{name} = %{version}
+
+%description devel
+evdev is an Xorg input driver for Linux's generic event devices. It
+therefore supports all input devices that the kernel knows about,
+including most mice, keyboards, tablets and touchscreens.
+
+%prep
+%setup -q
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d
+install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/10-evdev.conf
+
+
+%remove_docs
+%post
+# re-plug the input devices
+udevadm trigger --subsystem-match=input --action=change
+exit 0
+
+%postun
+# re-plug the input devices
+udevadm trigger --subsystem-match=input --action=change
+exit 0
+
+%files
+%defattr(-,root,root)
+%doc COPYING
+%{_sysconfdir}/X11/xorg.conf.d/10-evdev.conf
+%dir %{_libdir}/xorg/modules/input
+%{_libdir}/xorg/modules/input/evdev_drv.so
+
+%files devel
+%defattr(-,root,root)
+%{_includedir}/xorg/evdev-properties.h
+%{_libdir}/pkgconfig/xorg-evdev.pc
+
+%changelog