~ubuntu-branches/debian/squeeze/ndiswrapper/squeeze

« back to all changes in this revision

Viewing changes to debian/ndiswrapper

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode, Kel Modderman, Julian Andres Klode
  • Date: 2008-07-14 21:56:42 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080714215642-e3l2gjhq31gkmdfj
Tags: 1.53-1
[ Kel Modderman ]
* New upstream release. (Closes: #484019)
* Include driver/*.sh in debianized ndiswrapper module tarball.
* The distclean Makefile target no longer exists, use clean instead.
* No longer need to define KSRC in debian/rules/modules, upstream Makefile
  requires only the KBUILD variable.
* Major behaviour change in ndiswrapper-common wrappers for loadndisdriver
  and ndiswrapper utils:
  - check required utils_version attribute of currently installed
    ndiswrapper kernel module, use this version instead of latest version if
    called interactively
  - fallback to detection of latest API version when the information cannot
    be determined from the kernel module (not yet installed)
* Remove dilinger from Uploaders as per his request.
* Remove commented out quilt related code from debian/rules.

[ Julian Andres Klode ]
* debian/control{,.modules.in}:
  - Make me the new maintainer and move Kel to uploaders
  - Add Dm-Upload-Allowed
  - Remove VCS-* fields first, until the new repository has been created
  - Add information to description that pre-compiled modules may be available
  - Update the Standards Version to 3.8.0
* debian/copyright: Follow machine-interpretable copyright
* debian/patches/modules-build.diff: build correctly if only the modules
  target is built or in parallel (LP: #241547) (backported from SVN, r2670)
* Build-Depend on quilt and add README.source

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
# Find the most suitable version of ndiswrapper-utils to use:
 
4
# - first check what API is required by currently installed kernel module
 
5
# - fallback to detection of latest utility version
 
6
utils_version() {
 
7
        UTILS_VERSION=$(/sbin/modinfo -F parm ndiswrapper 2>/dev/null | \
 
8
                        sed -n 's/^utils_version:.*([^:]\+: \([0-9\.]\+\))$/\1/p')
 
9
 
 
10
        if [ "${UTILS_VERSION}" ]; then
 
11
                echo ${1}-${UTILS_VERSION}
 
12
        else
 
13
                for file in ${1}-[\.0-9][\.0-9]*; do
 
14
                        [ -x "${file}" ] && echo ${file}
 
15
                done | sort -n -t - -k 2 | tail -1
 
16
        fi
 
17
}
 
18
 
 
19
NDISWRAPPER=$(utils_version /usr/sbin/ndiswrapper)
 
20
if [ -x "${NDISWRAPPER}" ]; then
 
21
        exec ${NDISWRAPPER} "${@}"
 
22
fi
 
23
 
 
24
if [ "${NDISWRAPPER}" ]; then
 
25
        echo "Error: ndiswrapper-utils-${NDISWRAPPER##*-} not installed!" 1>&2
 
26
else
 
27
        echo "Error: unable to find a version of ndiswrapper!" 1>&2
 
28
fi
 
29
 
 
30
exit 1