From 5bcc6a05b42096b3af3291dfcf5d4dd8cd83ba2d Mon Sep 17 00:00:00 2001 From: alexlan Date: Thu, 29 Nov 2007 10:44:24 +0000 Subject: [PATCH] Install udev and console permission rules for visor module (#280251) --- 60-pilot.perms | 2 ++ 60-pilot.rules | 1 + pilot-link.spec | 24 ++++++++++++++++++++---- 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 60-pilot.perms create mode 100644 60-pilot.rules diff --git a/60-pilot.perms b/60-pilot.perms new file mode 100644 index 0000000..30cbd6b --- /dev/null +++ b/60-pilot.perms @@ -0,0 +1,2 @@ +=/dev/ttyUSB* + 0660 0660 root.uucp diff --git a/60-pilot.rules b/60-pilot.rules new file mode 100644 index 0000000..291d0ce --- /dev/null +++ b/60-pilot.rules @@ -0,0 +1 @@ +BUS=="usb", SYSFS{product}=="Palm Handheld*|Handspring*",KERNEL=="ttyUSB[13579]", SYMLINK="pilot", GROUP="uucp", MODE="0660" diff --git a/pilot-link.spec b/pilot-link.spec index b0a7825..d3a2a46 100644 --- a/pilot-link.spec +++ b/pilot-link.spec @@ -3,14 +3,17 @@ Name: pilot-link Version: 0.12.2 -Release: 8%{?dist} +Release: 9%{?dist} Epoch: 2 License: GPLv2 and GPLv2+ and LGPLv2+ and TCL Group: Applications/Communications Summary: File transfer utilities between Linux and PalmPilots URL: http://www.pilot-link.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Source: pilot-link-%{version}.tar.bz2 +Source0: pilot-link-%{version}.tar.bz2 +Source1: 60-pilot.rules +Source2: 60-pilot.perms + ExcludeArch: s390 s390x #Patch1: pilot-link-0.11.0-perlmd5.patch # May be still applied #Patch2: pilot-link-0.11.0-perlpollute.patch # May be still applied @@ -128,6 +131,14 @@ rm -f %{buildroot}%{_libdir}/*.la # remove broken prog rm -f %{buildroot}%{_bindir}/pilot-prc +# Install udev rules file. +mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d +install -p -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/udev/rules.d/60-pilot.rules + +# Install device permissions +mkdir -p %{buildroot}%{_sysconfdir}/security/console.perms.d/ +install -p -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/security/console.perms.d/60-pilot.perms + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -146,6 +157,8 @@ rm -rf %{buildroot} %{_bindir}/* %{_datadir}/pilot-link %{_mandir}/man?/* +%config(noreplace) %{_sysconfdir}/udev/rules.d/* +%config(noreplace) %{_sysconfdir}/security/console.perms.d/* %files devel %defattr(-,root,root) @@ -156,13 +169,16 @@ rm -rf %{buildroot} %{_datadir}/aclocal/*.m4 %changelog +* Tue Nov 27 2007 Alex Lancaster - 2:0.12.2-9 +- Install udev and console permission rules for visor module (#280251) + * Fri Nov 23 2007 Ivana Varekova - 2:0.12.2-8 - add SonyClie NR70 patch (#372821) -* Mon Nov 12 2007 Alex Lancaster - 2:0.12.2-7 +* Mon Nov 12 2007 Alex Lancaster - 2:0.12.2-7 - Perl bindings need to be compiled after libpisock is installed -* Mon Nov 12 2007 Alex Lancaster - 2:0.12.2-6 +* Mon Nov 12 2007 Alex Lancaster - 2:0.12.2-6 - Enable Perl bindings - Include important docs such as README.usb