1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
# $Id: /local/debian/dists/rt73/debian/packages 39 2007-10-18T20:21:13.038827Z dexter $
# If the debian/rules or debian/control file is missing, rebuild the file:
#
# $ yada rebuild control
# $ yada rebuild rules
%define yada_from_etch 0.52
Source: rt73
Section: contrib/net
Priority: extra
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.7.2
Upstream-Source: <URL:http://rt2x00.serialmonkey.com/wiki/index.php?title=Downloads>
Home-Page: <URL:http://rt2x00.serialmonkey.com/>
Description: RT73(RT2571W) Wireless Lan Linux Driver - kernel module sources
This is a linux device driver for Ralink RT73 a/b/g WLAN Card.
Copyright: GPL
RT2x00 SourceForge Project - http://rt2x00.serialmonkey.com
.
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; either version 2 of the License, or
(at your option) any later version.
.
Licensed under the GNU GPL
Original code supplied under license from RaLink Inc, 2004.
Build-Depends: yada (>= %{yada_from_etch})
Build: bash
rm -rf modules || true
mkdir -p modules/rt73
cp -a Module/* modules/rt73
chmod -x modules/rt73/*
mkdir -p modules/rt73/debian
sed 's/^rt73/rt73-source/' debian/changelog > modules/rt73/debian/changelog
cp -a debian/modules.packages modules/rt73/debian/packages
pushd modules/rt73
%{YADA_COMMAND} rebuild
debian/rules clean
popd
tar jcf rt73.tar.bz2 modules
eval pod2man $(grep '^# pod2man ' debian/scripts/update-rt73-firmware.sh | sed 's/^# pod2man //') \
debian/scripts/update-rt73-firmware.sh \
> debian/scripts/update-rt73-firmware.8
Clean: bash
rm -rf modules || true
rm -f rt73.tar.bz2 || true
rm -f debian/scripts/update-rt73-firmware.8
Package: rt73-source
Architecture: all
Depends: module-assistant, bzip2, yada (>= %{yada_from_etch})
Recommends: rt73-common
Description: RT73(RT2571W) Wireless Lan Linux Driver - kernel module sources
This package contains source to be used with the kernel-package tools.
Install: sh
yada install -src rt73.tar.bz2
yada symlink -into /usr/share/modass/overrides -as rt73 /usr/share/modass/packages/default.sh
yada install -doc -as changelog CHANGELOG
Package: rt73-common
Architecture: all
Depends: wget, unzip, []
Description: RT73(RT2571W) Wireless Lan Linux Driver - common files
This package contains the configuration file for the driver and
the update-rt73-firmware tool which downloads the firmware image file
from http://www.ralinktech.com/ralink/Home/Support/Linux.html page.
Install: sh
yada install -dir /etc/firmware /lib/firmware
yada install -sbin -script -as update-rt73-firmware debian/scripts/update-rt73-firmware.sh
yada install -man debian/scripts/update-rt73-firmware.8
yada install -conf -ucf -into /etc/modprobe.d -as rt73 debian/conf/rt73.modprobe
yada symlink -into /lib/firmware /etc/firmware/rt73.bin
yada install -doc -as README.Debian debian/README
yada install -doc README Module/iwpriv_usage.txt
yada install -doc -as changelog CHANGELOG
Postinst: sh
if [ "$1" = "configure" ]; then
if [ ! -f /lib/firmware/rt73.bin ] && [ ! -f /lib/firmware/`uname -r`/rt73.bin ]; then
echo "Warning: the rt73.ko driver is useless without rt73.bin firmware!"
echo "Please download the firmware with update-rt73-firmware command."
echo ""
fi
fi
Postrm: sh
if [ "$1" = "purge" ]; then
if [ -h /lib/firmware/rt73.bin ]; then
rm -f /lib/firmware/rt73.bin || true
fi
rm -f /etc/firmware/rt73.bin || true
rmdir --ignore-fail-on-non-empty --parents /etc/firmware || true
fi
|