blob: ef699961969ce689d574afde8ccea6863e3fe73f (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
inherit eutils
MY_PN="eciadsl-usermode-${PV}"
DESCRIPTION="Driver for various ADSL modems. Also known as EciAdsl"
SRC_URI="http://eciadsl.flashtux.org/download/${MY_PN}.tar.gz"
HOMEPAGE="http://eciadsl.flashtux.org"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-amd64 x86"
IUSE="tk"
DEPEND="net-dialup/ppp"
RDEPEND="${DEPEND}
dev-lang/perl
tk? ( >=dev-lang/tk-8.3.4 )"
S="${WORKDIR}/${MY_PN}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-pagesize.patch
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
if ! use tk ; then
rm "${D}"/usr/bin/eciadsl-config-tk
fi
dodoc README* TROUBLESHOOTING* ChangeLog || die "failed to install documentation"
}
pkg_postinst() {
elog
elog "Package succesfully installed you should now run "
elog "eciconf.sh (graphical, requires TCL/TK) or eciconftxt.sh"
elog
elog "Paquetage installé avec succés vous devriez maintenant"
elog "executer eciconf.sh (qui requiert TCL/TK) ou eciconftxt.sh"
elog
}
|