1 |
mrness 09/08/23 06:59:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: speedtouch-usb-3.0.1.2-r3.ebuild |
5 |
Removed: speedtouch-usb-3.0.1.2-r2.ebuild |
6 |
Log: |
7 |
Migrate to EAPI 2. Cleanup dependencies. Update README with changes occured in baselayout-2. |
8 |
(Portage version: 2.1.6.13/cvs/Linux x86_64, RepoMan options: --force) |
9 |
|
10 |
Revision Changes Path |
11 |
1.8 net-dialup/speedtouch-usb/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/speedtouch-usb/ChangeLog?rev=1.8&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/speedtouch-usb/ChangeLog?rev=1.8&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/speedtouch-usb/ChangeLog?r1=1.7&r2=1.8 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-dialup/speedtouch-usb/ChangeLog,v |
20 |
retrieving revision 1.7 |
21 |
retrieving revision 1.8 |
22 |
diff -u -r1.7 -r1.8 |
23 |
--- ChangeLog 23 Sep 2006 16:09:15 -0000 1.7 |
24 |
+++ ChangeLog 23 Aug 2009 06:59:41 -0000 1.8 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-dialup/speedtouch-usb |
27 |
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/speedtouch-usb/ChangeLog,v 1.7 2006/09/23 16:09:15 mrness Exp $ |
29 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/speedtouch-usb/ChangeLog,v 1.8 2009/08/23 06:59:41 mrness Exp $ |
31 |
+ |
32 |
+*speedtouch-usb-3.0.1.2-r3 (23 Aug 2009) |
33 |
+ |
34 |
+ 23 Aug 2009; Alin Năstac <mrness@g.o> files/README, |
35 |
+ -speedtouch-usb-3.0.1.2-r2.ebuild, +speedtouch-usb-3.0.1.2-r3.ebuild: |
36 |
+ Migrate to EAPI 2. Cleanup dependencies. Update README with changes occured |
37 |
+ in baselayout-2. |
38 |
|
39 |
23 Sep 2006; Alin Nastac <mrness@g.o> files/README, |
40 |
speedtouch-usb-3.0.1.2-r2.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-dialup/speedtouch-usb/speedtouch-usb-3.0.1.2-r3.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/speedtouch-usb/speedtouch-usb-3.0.1.2-r3.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/speedtouch-usb/speedtouch-usb-3.0.1.2-r3.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: speedtouch-usb-3.0.1.2-r3.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2009 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-dialup/speedtouch-usb/speedtouch-usb-3.0.1.2-r3.ebuild,v 1.1 2009/08/23 06:59:41 mrness Exp $ |
54 |
|
55 |
inherit eutils linux-info |
56 |
|
57 |
DESCRIPTION="Firmware and configuration instructions for the kernel-space driver for Alcatel SpeedTouch USB modems" |
58 |
HOMEPAGE="http://www.speedtouch.com/" |
59 |
SRC_URI="http://www.speedtouch.com/download/drivers/USB/SpeedTouch330_firmware_${PV//./}.zip" |
60 |
|
61 |
# Taken from http://www.speedtouch.com/driver_upgrade_lx_3.0.1.2.htm |
62 |
LICENSE="SpeedTouch-USB-Firmware" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 x86" |
65 |
IUSE="" |
66 |
|
67 |
RDEPEND="net-dialup/ppp" |
68 |
DEPEND="app-arch/unzip" |
69 |
|
70 |
S="${WORKDIR}" |
71 |
|
72 |
pkg_setup() { |
73 |
linux-info_pkg_setup |
74 |
|
75 |
if kernel_is lt 2 6 10 ; then |
76 |
eerror "The kernel-space driver exists only in kernels >= 2.6.10." |
77 |
eerror "Please upgrade the kernel." |
78 |
die "Unsupported kernel version" |
79 |
fi |
80 |
} |
81 |
|
82 |
src_install() { |
83 |
local FILE_VER="${PV#*.}" |
84 |
FILE_VER="${PV%%.*}.${FILE_VER//./}" # {major_ver}.{minor_digits} |
85 |
|
86 |
# Extract the "stage 1" portion of the firmware |
87 |
dd if=KQD6_${FILE_VER} of=speedtch-1.bin.2 \ |
88 |
ibs=1 obs=991 count=991 skip=36 &> /dev/null \ |
89 |
|| die "Extraction of stage 1 firmware (step 1) failed" |
90 |
|
91 |
dd if=ZZZL_${FILE_VER} of=speedtch-1.bin.4 \ |
92 |
ibs=1 obs=935 count=935 skip=32 &> /dev/null \ |
93 |
|| die "Extraction of stage 1 firmware (step 2) failed" |
94 |
|
95 |
# Extract the "stage 2" portion of the firmware |
96 |
dd if=KQD6_${FILE_VER} of=speedtch-2.bin.2 \ |
97 |
ibs=1 obs=762650 count=762650 skip=1027 &> /dev/null \ |
98 |
|| die "Extraction of stage 2 firmware (step 1) failed" |
99 |
|
100 |
dd if=ZZZL_${FILE_VER} of=speedtch-2.bin.4 \ |
101 |
ibs=1 obs=775545 count=775545 skip=967 &> /dev/null \ |
102 |
|| die "Extraction of stage 2 firmware (step 2) failed" |
103 |
|
104 |
# Copy to the firmware directory |
105 |
insinto /lib/firmware |
106 |
insopts -m 600 |
107 |
doins speedtch-{1,2}.bin.{2,4} || die "doins firmware failed" |
108 |
|
109 |
# Symlinks for other revisions of the modem |
110 |
cd "${D}/lib/firmware" |
111 |
for n in 1 2 ; do |
112 |
for rev in 0 1 ; do |
113 |
ln -sfn speedtch-${n}.bin.2 speedtch-${n}.bin.${rev} |
114 |
done |
115 |
# Seems like a reasonable guess, for revision 3 |
116 |
ln -sfn speedtch-${stub}${n}.bin.4 speedtch-${n}.bin.3 |
117 |
done |
118 |
|
119 |
# Documentation necessary to complete the setup |
120 |
dodoc "${FILESDIR}/README" || die "dodoc failed" |
121 |
} |
122 |
|
123 |
pkg_postinst() { |
124 |
[[ -e /etc/hotplug/usb.usermap ]] && egrep -q " 0x06[bB]9 +0x4061 " /etc/hotplug/usb.usermap && \ |
125 |
ewarn "Please remove the SpeedTouch line from /etc/hotplug/usb.usermap" |
126 |
|
127 |
# Check kernel configuration |
128 |
local CONFIG_CHECK="~FW_LOADER ~NET ~PACKET ~ATM ~NETDEVICES ~USB_DEVICEFS ~USB_ATM ~USB_SPEEDTOUCH \ |
129 |
~PPP ~PPPOATM ~PPPOE ~ATM_BR2684" |
130 |
local WARNING_PPPOATM="CONFIG_PPPOATM:\t is not set (required for PPPoA links)" |
131 |
local WARNING_PPPOE="CONFIG_PPPOE:\t is not set (required for PPPoE links)" |
132 |
local WARNING_ATM_BR2684="CONFIG_ATM_BR2684:\t is not set (required for PPPoE links)" |
133 |
check_extra_config |
134 |
echo |
135 |
|
136 |
# Check user-space for PPPoA support |
137 |
if ! built_with_use net-dialup/ppp atm ; then |
138 |
ewarn "Run the following command if connecting via PPPoA protocol:" |
139 |
ewarn " euse -E atm && emerge net-dialup/ppp" |
140 |
echo |
141 |
fi |
142 |
# Check user-space for PPPoE support |
143 |
if ! has_version net-misc/br2684ctl ; then |
144 |
ewarn "Run the following command if connecting via PPPoE protocol:" |
145 |
ewarn " emerge net-misc/br2684ctl" |
146 |
echo |
147 |
fi |
148 |
|
149 |
ewarn "To complete the installation, you must read the documentation in" |
150 |
ewarn " ${ROOT}usr/share/doc/${PF}" |
151 |
} |