diff --git a/70-wacom.rules b/70-wacom.rules index 2b32b12..add1c8b 100644 --- a/70-wacom.rules +++ b/70-wacom.rules @@ -9,7 +9,7 @@ SUBSYSTEM=="tty|pnp", SUBSYSTEMS=="pnp", ATTRS{id}=="WACf*", ENV{ID_MODEL}="Seri SUBSYSTEM=="tty|pnp", SUBSYSTEMS=="pnp", ATTRS{id}=="FUJ*", ENV{ID_MODEL}="Serial Wacom Tablet $attr{id}", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", ENV{NAME}="Serial Wacom Tablet $attr{id}" # inputattach -SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf*", RUN+="/usr/sbin/modprobe wacom_w8001", RUN+="/usr/sbin/inputattach --daemon -w8001 /dev/%k" +SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf*", RUN{builtin}="kmod load wacom_w8001", TAG+="systemd", ENV{SYSTEMD_WANTS}+="wacom-inputattach@%k.service" LABEL="wacom_end" diff --git a/wacom-inputattach@.service b/wacom-inputattach@.service new file mode 100644 index 0000000..eab8e69 --- /dev/null +++ b/wacom-inputattach@.service @@ -0,0 +1,7 @@ +[Unit] +Description="inputattach for Wacom ISDv4-compatible serial devices" + +[Service] +Type=simple +ExecStart=/usr/bin/inputattach -w8001 /dev/%I + diff --git a/xorg-x11-drv-wacom.spec b/xorg-x11-drv-wacom.spec index 9b2f11a..caf148f 100644 --- a/xorg-x11-drv-wacom.spec +++ b/xorg-x11-drv-wacom.spec @@ -9,7 +9,7 @@ Summary: Xorg X11 wacom input driver Name: xorg-x11-drv-wacom Version: 0.23.0 -Release: 4%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} +Release: 5%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} URL: http://www.x.org License: GPLv2+ Group: User Interface/X Hardware Support @@ -22,6 +22,7 @@ Source2: commitid Source0: http://prdownloads.sourceforge.net/linuxwacom/xf86-input-wacom-%{version}.tar.bz2 %endif Source3: 70-wacom.rules +Source4: wacom-inputattach@.service ExcludeArch: s390 s390x @@ -29,7 +30,7 @@ BuildRequires: xorg-x11-server-devel >= 1.10.99.902 BuildRequires: xorg-x11-util-macros >= 1.3.0 BuildRequires: libX11-devel libXi-devel libXrandr-devel libXinerama-devel BuildRequires: autoconf automake libtool -BuildRequires: systemd-devel +BuildRequires: systemd systemd-devel Requires: Xorg %(xserver-sdk-abi-requires ansic) Requires: Xorg %(xserver-sdk-abi-requires xinput) @@ -59,6 +60,8 @@ find $RPM_BUILD_ROOT -regex ".*\.la$" | xargs rm -f -- install -d $RPM_BUILD_ROOT%{_prefix}/lib/udev/rules.d install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_prefix}/lib/udev/rules.d/70-wacom.rules +install -d $RPM_BUILD_ROOT%{_unitdir} +install -m 0644 %{SOURCE4} $RPM_BUILD_ROOT%{_unitdir}/wacom-inputattach@.service %clean rm -rf $RPM_BUILD_ROOT @@ -76,6 +79,7 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/X11/xorg.conf.d/50-wacom.conf %{_bindir}/xsetwacom %{_prefix}/lib/udev/rules.d/70-wacom.rules +%{_unitdir}/wacom-inputattach@.service %package devel Summary: Xorg X11 wacom input driver development package @@ -98,6 +102,9 @@ X.Org X11 wacom input driver development files. %{_bindir}/isdv4-serial-debugger %changelog +* Mon Dec 09 2013 Peter Hutterer 0.23.0-5 +- Use systemd for starting inputattach + * Wed Nov 20 2013 Adam Jackson - 0.23.0-4 - 1.15RC2 ABI rebuild