# Copyright 2003 Antoine REVERSAT aka Crevetor
# Distributed under the terms of the GNU General Public License v2
# $Header: $

P="eciadsl-usermode-0.12"
DESCRIPTION="Driver for various ADSL modems"
HOMEPAGE="http://eciadsl.flashtux.org"
SRC_URI="http://eciadsl.flashtux.org/download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="tcltk"
DEPEND=">=net-dialup/ppp-2.4.1"
RDEPEND=""
S=${WORKDIR}/${P}

src_compile() {
	./configure || die "./configure failed"
	#emake || die "make failed"
	make || die
}

src_install() {
	make ROOT=${D} install || die "Install failed"
}
pkg_postinst() {
	echo "Package succesfully installed you should now run eciadsl-config-tk (graphical, requires TCL/TK) or eciadsl-config-text"
	echo "Paquetage installé avec succès vous devriez maintenant executer eciadsl-config-tk (qui requiert TCL/TK) ou eciadsl-config-text"
}
