blob: cf16f675460b30da0f690e7dafbf4f221f89bfce (
plain)
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/speedtouch/speedtouch-1.2_beta2.ebuild,v 1.4 2004/06/09 20:59:14 agriffis Exp $
inherit flag-o-matic
filter-flags -mpowerpc-gfxopt -mpowerpc-gpopt
MY_P=${P/_/-}
S=${WORKDIR}/${MY_P}
DESCRIPTION="GPL Driver for the Alcatel Speedtouch USB under *nix"
HOMEPAGE="http://speedtouch.sf.net/"
SRC_URI="mirror://sourceforge/speedtouch/${MY_P}.tar.bz2"
IUSE="static debug"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc alpha hppa amd64"
DEPEND=""
RDEPEND=">=net-dialup/ppp-2.4.1"
src_unpack() {
unpack ${A}
cd ${S}
sed 's/^C$/#&/' < configure > configure.new
mv -f configure.new configure && chmod u+x configure
}
src_compile() {
local myconf
use debug && myconf="--enable-debug"
use static && myconf="${myconf} --enable-static"
econf --enable-syslog \
${myconf} || die "./configure failed"
#sed '90,104d' < Makefile > Makefile.new
#mv --force Makefile.new Makefile
emake || die "make failed"
}
src_install () {
einstall || die
echo $(find ${D}/usr/share/doc/speedtouch/ -type f) | xargs dodoc
rm -rf ${D}/usr/share/doc/speedtouch/
dodoc AUTHORS COPYING ChangeLog INSTALL TODO VERSION
# rm -r ${D}/etc/init.d/speedtouch
exeinto /etc/init.d ; newexe ${FILESDIR}/speedtouch.rc6 speedtouch
insinto /etc/conf.d ; newins ${FILESDIR}/speedtouch.confd speedtouch
insopts -m 600 ; insinto /etc/ppp/peers ; doins ${FILESDIR}/adsl.sample
}
pkg_postinst() {
echo ""
ewarn "Make sure you have kernel support for USB, HDCL and PPP"
ewarn "NB: kernels >= 2.4.18 include the hdlc patch"
echo ""
ewarn "Read and subscribe vendor's licence to download the microcode"
ewarn "You can get it from: "
ewarn " 1) vendor's site: http://www.speedtouchdsl.com/dvrreg_lx.htm"
ewarn " 2) a windows system: c:\windows\system\alcaudsl.sys"
ewarn " 3) the CD provided: X:\Driver\alcaudsl.sys"
ewarn "Then you should set its path in the /etc/conf.d/speedtouch file"
ewarn "edit and rename 'adsl.sample' to 'adsl' in /etc/ppp/peers/adsl and"
ewarn "bring up your adsl line using the /etc/init.d/speedtouch script"
echo ""
einfo "More info in the documentation in /usr/share/doc/${P}"
echo ""
}
|