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

P="eciadsl-usermode-0.9"
DESCRIPTION="Driver for various ADSL modems"
HOMEPAGE="http://eciadsl.flashtux.org"
SRC_URI="http://eciadsl.flashtux.org/download/${P}.tar.gz"
LICENSE="GPL-1"
SLOT="0"
KEYWORDS="x86"
IUSE="tcltk"
DEPEND=">=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 eciconf.sh (graphical, requires TCL/TK) or eciconftxt.sh"
	echo "Paquetage installé avec succés vous devriez maintenant executer eciconf.sh (qui requiert TCL/TK) ou eciconftxt.sh"
}