ChangeLog

# ChangeLog for net-dialup/speedtouch-usb
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/speedtouch-usb/ChangeLog,v 1.7 2006/09/23 16:09:15 mrness Exp $

23 Sep 2006; Alin Nastac files/README,
speedtouch-usb-3.0.1.2-r2.ebuild:
Modify PPPoA chapter of the documentation (#144194). Stable on x86.

16 Aug 2006; Luis Medinas
speedtouch-usb-3.0.1.2-r2.ebuild:
Added ~amd64 keyword.

*speedtouch-usb-3.0.1.2-r2 (23 May 2006)

23 May 2006; Alin Nastac files/README,
-speedtouch-usb-3.0.1.2-r1.ebuild, +speedtouch-usb-3.0.1.2-r2.ebuild:
Keep up with baselayout-1.12.0 development. Improve post-install messages,
based on new features available in linux-info.eclass.

*speedtouch-usb-3.0.1.2-r1 (17 Apr 2006)

17 Apr 2006; Alin Nastac files/README,
-speedtouch-usb-3.0.1.2.ebuild, +speedtouch-usb-3.0.1.2-r1.ebuild:
Add noauth to recommended pppd_ppp0 parameters. Fix PPPoE setup documentation.
Thanks to Smok , PPPoE configuration has been tested.

09 Apr 2006; Alin Nastac files/README:
Documentation update (#129232).

19 Mar 2006; Alin Nastac files/README,
-files/speedtch.usermap, speedtouch-usb-3.0.1.2.ebuild:
Remove hotplug from dependencies and update the README file,
thanks to Paul Bredbury (#110665).

*speedtouch-usb-3.0.1.2 (18 Mar 2006)

18 Mar 2006; Alin Nastac +files/README,
+files/speedtch.usermap, +metadata.xml, +speedtouch-usb-3.0.1.2.ebuild:
Initial import from bug #110665. Credits goes to Paul Bredbury
.

Manifest

AUX README 9566 RMD160 b910c9bc1d0ad6cf116e6bf47371ee03d2cb8213 SHA1 e9d815990ee39b0ec4fe245d60d9186ac0c7a8e3 SHA256 10293a7eff2b0b282385178f2c77b858d8060345bcd319063befe61ba6969930
DIST SpeedTouch330_firmware_3012.zip 769125 RMD160 5d7dea06a6752f44ad2fa030943a3978f5080152 SHA1 4fd2eefda958fd34ab4df43cffdda4e7757fbd34 SHA256 1f4ef294f9ac52fc01781f0bba15ab1e686f692dac11ecdcbfedfbf580b19afc
EBUILD speedtouch-usb-3.0.1.2-r2.ebuild 3583 RMD160 e639188d921a266f353310d8e3a50b50970b0c24 SHA1 9856a1b2ef8e21e25d3ed0f8b69b6ec1e1685a00 SHA256 b5c6b438b49cff03590768986336775213343b482bacdad7d580fc3662980279
MISC ChangeLog 1734 RMD160 9b48449fc4c4de457ed02153f8f219bfefb9b181 SHA1 7ac81257d78dfc0b5c8ddd3bbd9580f488b1d928 SHA256 d24ea788e9a7072a2a4570b9e396f97335ec25d16a206e46592bb6dc6a9f5515
MISC metadata.xml 301 RMD160 13b610fb2a56fb6bef5ff0fe554dea26816ce157 SHA1 cc7dcfba207028e879eb29723b28c19ccfd70149 SHA256 52673ff9f00f87d8032e30cf646f08401ecf3750c36502e9563ca862d312da0c

files

metadata.xml




net-dialup
Firmware and configuration instructions for the kernel-space driver for Alcatel SpeedTouch USB modems.

speedtouch-usb-3.0.1.2-r2.ebuild

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/speedtouch-usb/speedtouch-usb-3.0.1.2-r2.ebuild,v 1.5 2006/09/24 07:41:10 mrness Exp $

inherit eutils linux-info

DESCRIPTION="Firmware and configuration instructions for the kernel-space driver for Alcatel SpeedTouch USB modems"
HOMEPAGE="http://www.speedtouch.com/"
SRC_URI="http://www.speedtouch.com/download/drivers/USB/SpeedTouch330_firmware_${PV//./}.zip"

# Taken from http://www.speedtouch.com/driver_upgrade_lx_3.0.1.2.htm
LICENSE="SpeedTouch-USB-Firmware"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE=""

RDEPEND=">=net-dialup/ppp-2.4.3-r11
>=sys-fs/udev-086
!net-dialup/speedtouch"
DEPEND="${RDEPEND}
app-arch/unzip"

S="${WORKDIR}"

pkg_setup() {
linux-info_pkg_setup

if kernel_is lt 2 6 10 ; then
eerror "The kernel-space driver exists only in kernels >= 2.6.10."
eerror "Please emerge net-dialup/speedtouch instead or upgrade the kernel."
die "Unsupported kernel version"
fi
}

src_install() {
local FILE_VER="${PV#*.}"
FILE_VER="${PV%%.*}.${FILE_VER//./}" # {major_ver}.{minor_digits}

# Extract the "stage 1" portion of the firmware
dd if=KQD6_${FILE_VER} of=speedtch-1.bin.2 \
ibs=1 obs=991 count=991 skip=36 &> /dev/null \
|| die "Extraction of stage 1 firmware (step 1) failed"

dd if=ZZZL_${FILE_VER} of=speedtch-1.bin.4 \
ibs=1 obs=935 count=935 skip=32 &> /dev/null \
|| die "Extraction of stage 1 firmware (step 2) failed"

# Extract the "stage 2" portion of the firmware
dd if=KQD6_${FILE_VER} of=speedtch-2.bin.2 \
ibs=1 obs=762650 count=762650 skip=1027 &> /dev/null \
|| die "Extraction of stage 2 firmware (step 1) failed"

dd if=ZZZL_${FILE_VER} of=speedtch-2.bin.4 \
ibs=1 obs=775545 count=775545 skip=967 &> /dev/null \
|| die "Extraction of stage 2 firmware (step 2) failed"

# Copy to the firmware directory
insinto /lib/firmware
insopts -m 600
doins speedtch-{1,2}.bin.{2,4} || die "doins firmware failed"

# Symlinks for other revisions of the modem
cd "${D}/lib/firmware"
for n in 1 2 ; do
for rev in 0 1 ; do
ln -sfn speedtch-${n}.bin.2 speedtch-${n}.bin.${rev}
done
# Seems like a reasonable guess, for revision 3
ln -sfn speedtch-${stub}${n}.bin.4 speedtch-${n}.bin.3
done

# Documentation necessary to complete the setup
dodoc "${FILESDIR}/README" || die "dodoc failed"
}

pkg_postinst() {
[[ -e /etc/hotplug/usb.usermap ]] && egrep -q " 0x06[bB]9 +0x4061 " /etc/hotplug/usb.usermap && \
ewarn "Please remove the SpeedTouch line from /etc/hotplug/usb.usermap"

# Check kernel configuration
local CONFIG_CHECK="~FW_LOADER ~NET ~PACKET ~ATM ~NETDEVICES ~USB_DEVICEFS ~USB_ATM ~USB_SPEEDTOUCH \
~PPP ~PPPOATM ~PPPOE ~ATM_BR2684"
local WARNING_PPPOATM="CONFIG_PPPOATM:\t is not set (required for PPPoA links)"
local WARNING_PPPOE="CONFIG_PPPOE:\t is not set (required for PPPoE links)"
local WARNING_ATM_BR2684="CONFIG_ATM_BR2684:\t is not set (required for PPPoE links)"
check_extra_config
echo

# Check user-space for PPPoA support
if ! built_with_use net-dialup/ppp atm ; then
ewarn "Run the following command if connecting via PPPoA protocol:"
ewarn " euse -E atm && emerge net-dialup/ppp"
echo
fi
# Check user-space for PPPoE support
if ! has_version net-misc/br2684ctl ; then
ewarn "Run the following command if connecting via PPPoE protocol:"
ewarn " emerge net-misc/br2684ctl"
echo
fi

ewarn "To complete the installation, you must read the documentation in"
ewarn " ${ROOT}usr/share/doc/${PF}"
}