--- pcmciautils-010.orig/udev/60-pcmcia.rules.static +++ pcmciautils-010/udev/60-pcmcia.rules.static @@ -9,7 +9,7 @@ # instead of the manufactor, card or product ID. Then the # matching is done in userspace. ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="*", \ - RUN+="/sbin/pcmcia-check-broken-cis" + RUN+="/lib/udev/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. @@ -24,4 +24,4 @@ # if this is a PCMCIA socket which needs a resource database, # pcmcia-socket-startup sets it up -#SUBSYSTEM="pcmcia_socket" RUN+="/sbin/pcmcia-socket-startup" +#SUBSYSTEM="pcmcia_socket" RUN+="/lib/udev/pcmcia-socket-startup" --- pcmciautils-010.orig/udev/60-pcmcia.rules +++ pcmciautils-010/udev/60-pcmcia.rules @@ -9,7 +9,7 @@ # instead of the manufactor, card or product ID. Then the # matching is done in userspace. ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="*", \ - RUN+="/sbin/pcmcia-check-broken-cis" + RUN+="/lib/udev/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. @@ -24,4 +24,4 @@ # if this is a PCMCIA socket which needs a resource database, # pcmcia-socket-startup sets it up -SUBSYSTEM="pcmcia_socket" RUN+="/sbin/pcmcia-socket-startup" +SUBSYSTEM="pcmcia_socket" RUN+="/lib/udev/pcmcia-socket-startup" --- pcmciautils-010.orig/debian/copyright +++ pcmciautils-010/debian/copyright @@ -0,0 +1,30 @@ +Colin Watson packaged pcmciautils on +Sun, 20 Nov 2005 23:24:16 +0000. + +It was downloaded from: + http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html + +Upstream Author: Dominik Brodowski + +Copyright and licence: + + Copyright (C) 1999 David A. Hinds + Copyright (C) 2002-2003 Mike Gleason, NcFTP Software + Copyright (C) 2003,2004 Greg Kroah-Hartman + Copyright (C) 2004-2005 Dominik Brodowski + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +On Debian/Ubuntu systems, the complete text of the GNU General Public +License can be found in `/usr/share/common-licenses/GPL'. --- pcmciautils-010.orig/debian/rules +++ pcmciautils-010/debian/rules @@ -0,0 +1,42 @@ +#! /usr/bin/make -f + +tmp := $(CURDIR)/debian/pcmciautils + +build: + dh_testdir + $(MAKE) UDEV=true + +clean: + dh_testdir + $(MAKE) clean UDEV=true + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install UDEV=true DESTDIR=$(tmp) \ + pcmciaconfdir=\$${prefix}/usr/share/pcmciautils + mv $(tmp)/etc/udev/rules.d/60-pcmcia.rules $(tmp)/etc/udev/pcmcia.rules + mv $(tmp)/sbin/pcmcia-* $(tmp)/lib/udev/ + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installchangelogs + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: + +binary: binary-arch binary-indep + +.PHONY: build clean install binary-arch binary-indep binary --- pcmciautils-010.orig/debian/changelog +++ pcmciautils-010/debian/changelog @@ -0,0 +1,7 @@ +pcmciautils (010-0ubuntu1) dapper; urgency=low + + * Initial release, configured only with udev support. + * Move udev rules to position 85. + * Move udev helpers to /lib/udev. + + -- Colin Watson Mon, 21 Nov 2005 08:42:49 +0000 --- pcmciautils-010.orig/debian/control +++ pcmciautils-010/debian/control @@ -0,0 +1,21 @@ +Source: pcmciautils +Section: admin +Priority: extra +Maintainer: Colin Watson +Standards-Version: 3.6.2 +Build-Depends: debhelper (>= 4), libsysfs-dev (>= 1.3.0), flex, bison + +Package: pcmciautils +Architecture: any +Depends: udev, module-init-tools (>= 3.2-pre4), ${shlibs:Depends} +Suggests: wireless-tools +Description: PCMCIA utilities for Linux 2.6 + This package provides PCMCIA initialisation tools for Linux 2.6.13-rc1 or + later, replacing the old pcmcia-cs tools used with earlier kernel versions. + PCMCIA cards are commonly used in laptops to provide expanded capabilities + such as network connections, modems, increased memory, etc. + . + To use PCMCIA you need to have kernel modules available to support it. + These are included in the stock Debian 2.6 kernel packages. + . + The wireless-tools package is required by many wireless network adapters. --- pcmciautils-010.orig/debian/postinst +++ pcmciautils-010/debian/postinst @@ -0,0 +1,18 @@ +#! /bin/sh +set -e + +case $1 in + configure) + if dpkg --compare-versions "$2" lt-nl 0; then + ln -s ../pcmcia.rules /etc/udev/85-pcmcia.rules + fi + # TODO: clone pcmcia-cs config.opts logic? + if [ ! -f /etc/pcmcia/config.opts ]; then + cp -a /usr/share/pcmciautils/config.opts /etc/pcmcia/ + fi + ;; +esac + +#DEBHELPER# + +exit 0 --- pcmciautils-010.orig/debian/compat +++ pcmciautils-010/debian/compat @@ -0,0 +1 @@ +4 --- pcmciautils-010.orig/debian/dirs +++ pcmciautils-010/debian/dirs @@ -0,0 +1 @@ +lib/udev --- pcmciautils-010.orig/debian/postrm +++ pcmciautils-010/debian/postrm @@ -0,0 +1,12 @@ +#! /bin/sh +set -e + +case $1 in + purge) + rm -f /etc/udev/rules.d/85-pcmcia.rules + ;; +esac + +#DEBHELPER# + +exit 0