Install udev and console permission rules for visor module (#280251)

This commit is contained in:
alexlan 2007-11-29 10:44:24 +00:00
parent 7fe393455e
commit 5bcc6a05b4
3 changed files with 23 additions and 4 deletions

2
60-pilot.perms Normal file
View File

@ -0,0 +1,2 @@
<ttyUSB>=/dev/ttyUSB*
<console> 0660 <ttyUSB> 0660 root.uucp

1
60-pilot.rules Normal file
View File

@ -0,0 +1 @@
BUS=="usb", SYSFS{product}=="Palm Handheld*|Handspring*",KERNEL=="ttyUSB[13579]", SYMLINK="pilot", GROUP="uucp", MODE="0660"

View File

@ -3,14 +3,17 @@
Name: pilot-link Name: pilot-link
Version: 0.12.2 Version: 0.12.2
Release: 8%{?dist} Release: 9%{?dist}
Epoch: 2 Epoch: 2
License: GPLv2 and GPLv2+ and LGPLv2+ and TCL License: GPLv2 and GPLv2+ and LGPLv2+ and TCL
Group: Applications/Communications Group: Applications/Communications
Summary: File transfer utilities between Linux and PalmPilots Summary: File transfer utilities between Linux and PalmPilots
URL: http://www.pilot-link.org/ URL: http://www.pilot-link.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 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 ExcludeArch: s390 s390x
#Patch1: pilot-link-0.11.0-perlmd5.patch # May be still applied #Patch1: pilot-link-0.11.0-perlmd5.patch # May be still applied
#Patch2: pilot-link-0.11.0-perlpollute.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 # remove broken prog
rm -f %{buildroot}%{_bindir}/pilot-prc 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 %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
@ -146,6 +157,8 @@ rm -rf %{buildroot}
%{_bindir}/* %{_bindir}/*
%{_datadir}/pilot-link %{_datadir}/pilot-link
%{_mandir}/man?/* %{_mandir}/man?/*
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
%config(noreplace) %{_sysconfdir}/security/console.perms.d/*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
@ -156,13 +169,16 @@ rm -rf %{buildroot}
%{_datadir}/aclocal/*.m4 %{_datadir}/aclocal/*.m4
%changelog %changelog
* Tue Nov 27 2007 Alex Lancaster <alexlan@fedoraproject.org> - 2:0.12.2-9
- Install udev and console permission rules for visor module (#280251)
* Fri Nov 23 2007 Ivana Varekova <varekova@redhat.com> - 2:0.12.2-8 * Fri Nov 23 2007 Ivana Varekova <varekova@redhat.com> - 2:0.12.2-8
- add SonyClie NR70 patch (#372821) - add SonyClie NR70 patch (#372821)
* Mon Nov 12 2007 Alex Lancaster <alexl@users.sourceforge.net> - 2:0.12.2-7 * Mon Nov 12 2007 Alex Lancaster <alexlan@fedoraproject.org> - 2:0.12.2-7
- Perl bindings need to be compiled after libpisock is installed - Perl bindings need to be compiled after libpisock is installed
* Mon Nov 12 2007 Alex Lancaster <alexl@users.sourceforge.net> - 2:0.12.2-6 * Mon Nov 12 2007 Alex Lancaster <alexlan@fedoraproject.org> - 2:0.12.2-6
- Enable Perl bindings - Enable Perl bindings
- Include important docs such as README.usb - Include important docs such as README.usb