From b7723d61c0705ff64056a8b60083c494a7d7a477 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 08:27:26 +0100 Subject: [PATCH] automatic update by autodist [release 017-1mamba;Mon Jan 25 2010] --- README.md | 2 + pcmcia-utils-014_pcmcia_rules.patch | 27 ++++++++++ pcmcia-utils.spec | 78 +++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 pcmcia-utils-014_pcmcia_rules.patch create mode 100644 pcmcia-utils.spec diff --git a/README.md b/README.md index 5e845ac..d666c89 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # pcmcia-utils +PCMCIA utils contains the initialization tools necessary to allow the PCMCIA subsystem to behave (almost) as every other hotpluggable bus system. + diff --git a/pcmcia-utils-014_pcmcia_rules.patch b/pcmcia-utils-014_pcmcia_rules.patch new file mode 100644 index 0000000..b82ca94 --- /dev/null +++ b/pcmcia-utils-014_pcmcia_rules.patch @@ -0,0 +1,27 @@ +diff -ru pcmciautils-014/udev/rules-base pcmciautils-014-udevfix/udev/rules-base +--- pcmciautils-014/udev/rules-base 2006-06-01 11:07:52.000000000 +0200 ++++ pcmciautils-014-udevfix/udev/rules-base 2006-10-16 15:56:16.000000000 +0200 +@@ -3,12 +3,12 @@ + # are so broken that we need to read out random bytes of it + # instead of the manufactor, card or product ID. Then the + # matching is done in userspace. +-ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \ ++ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \ + RUN+="/sbin/pcmcia-check-broken-cis" + + # However, the "weak" matching by func_id is only allowed _after_ modprobe + # returns, so that "strong" matches have a higher priority. +-ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \ ++ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \ + RUN+="/bin/sh -c 'echo 1 > /sys/$devpath/allow_func_id_match'" + + # PCMCIA sockets: +diff -ru pcmciautils-014/udev/rules-modprobe pcmciautils-014-udevfix/udev/rules-modprobe +--- pcmciautils-014/udev/rules-modprobe 2006-06-01 11:07:52.000000000 +0200 ++++ pcmciautils-014-udevfix/udev/rules-modprobe 2006-10-16 15:57:45.000000000 +0200 +@@ -1,3 +1,3 @@ + # modprobe $modalias loads all possibly appropriate modules +-ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \ +- RUN+="/sbin/modprobe $modalias" ++ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \ ++ RUN+="/sbin/modprobe $env{MODALIAS}" diff --git a/pcmcia-utils.spec b/pcmcia-utils.spec new file mode 100644 index 0000000..bcd967b --- /dev/null +++ b/pcmcia-utils.spec @@ -0,0 +1,78 @@ +Name: pcmcia-utils +Version: 017 +Release: 1mamba +Summary: Initialization tools for PCMCIA subsystem +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html +Source: http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-%{version}.tar.gz +Patch: %{name}-014_pcmcia_rules.patch +License: GPL +Obsoletes: pcmcia-cs +Obsoletes: pcmcia-cs-xcardinfo +Provides: pcmcia-cs +Provides: pcmciautils = %{version}-%{release} +BuildRequires: libsysfs-devel +BuildRequires: flex >= 2.5.31 +BuildRequires: bison >= 2.1 +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +PCMCIA utils contains the initialization tools necessary to allow the PCMCIA subsystem to behave (almost) as every other hotpluggable bus system. + +%prep +%setup -q -n pcmciautils-%{version} +#% patch0 -p1 -b .pcmcia_rules + +%build +%make -j1 + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +/sbin/lspcmcia +/sbin/pccardctl +/lib/udev/pcmcia-check-broken-cis +/lib/udev/pcmcia-socket-startup +/lib/udev/rules.d/60-pcmcia.rules +%config %{_sysconfdir}/pcmcia/config.opts +%{_mandir}/man8/lspcmcia.* +%{_mandir}/man8/pccardctl.* +%doc COPYING doc/* + +%changelog +* Mon Jan 25 2010 Automatic Build System 017-1mamba +- automatic update by autodist + +* Wed Oct 21 2009 Automatic Build System 016-1mamba +- automatic update by autodist + +* Tue Dec 02 2008 Silvan Calarco 015-1mamba +- automatic update by autodist + +* Wed Jan 23 2008 Silvan Calarco 014-2mamba +- specfile updated +- changed maintainer + +* Mon Oct 16 2006 Davide Madrisan 014-1qilnx +- update to version 014 by autospec +- patched udev rules files to make them compatibile with latest udev versions + +* Thu Jan 19 2006 Davide Madrisan 012-2qilnx +- obsoletes pcmcia-cs-xcardinfo + +* Fri Jan 13 2006 Davide Madrisan 012-1qilnx +- update to version 012 by autospec +- build requires libsysfs-devel +- provides pcmciautils + +* Thu Nov 24 2005 Alessandro Ramazzina 010-1qilnx +- package created by autospec