diff options
author | Alin Năstac <mrness@gentoo.org> | 2009-08-22 06:56:13 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2009-08-22 06:56:13 +0000 |
commit | 159f791a00b0b6352e58c4878a8e33a02132be24 (patch) | |
tree | e750d8cc3563d3a5a9c5610025a01db5145f4457 /net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild | |
parent | Add Ikanos license, needed by net-dialup/ueagle4-atm. (diff) | |
download | gentoo-2-159f791a00b0b6352e58c4878a8e33a02132be24.tar.gz gentoo-2-159f791a00b0b6352e58c4878a8e33a02132be24.tar.bz2 gentoo-2-159f791a00b0b6352e58c4878a8e33a02132be24.zip |
Initial import from bug 278265.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild')
-rw-r--r-- | net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild b/net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild new file mode 100644 index 000000000000..6f6566ff6a11 --- /dev/null +++ b/net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild,v 1.1 2009/08/22 06:56:12 mrness Exp $ + +EAPI="2" + +inherit eutils linux-info + +DESCRIPTION="Firmware and configuration instructions for Eagle USB E4 ADSL Modem driver" +HOMEPAGE="https://gna.org/projects/ueagleatm/" +SRC_URI="http://eagle-usb.org/ueagle-atm/non-free/ueagle4-data-${PV}.tar.gz" + +LICENSE="Ikanos" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="net-dialup/ppp" + +S="${WORKDIR}/ueagle4-data-${PV}" + +pkg_setup() { + linux-info_pkg_setup + + if kernel_is lt 2 6 16 ; then + eerror "The kernel-space driver exists only in kernels >= 2.6.16." + eerror "Please emerge net-dialup/eagle-usb instead or upgrade the kernel." + die "Unsupported kernel version" + fi + + if ! has_version '>=sys-apps/baselayout-1.12.0' ; then + ewarn "The best way of using this driver is through the PPP net module of the" + ewarn " >=sys-apps/baselayout-1.12.0" + ewarn "which is also the only documented mode of using ${PN} driver." + ewarn "Please install baselayout-1.12.0 or else you will be on your own!" + fi +} + +src_install() { + # Copy to the firmware directory + insinto /lib/firmware/ueagle-atm + doins * || die "doins firmware failed" + + # Documentation necessary to complete the setup + dodoc "${FILESDIR}/README" || die "dodoc failed" +} + +pkg_postinst() { + # Check kernel configuration + local CONFIG_CHECK="~FW_LOADER ~NET ~PACKET ~ATM ~NETDEVICES ~USB_DEVICEFS ~USB_ATM ~USB_UEAGLEATM \ + ~PPP ~PPPOATM ~PPPOE ~ATM_BR2684" + local WARNING_PPPOATM="CONFIG_PPPOATM:\t is not set (required for PPPoA links)" + local WARNING_PPPOE="CONFIG_PPPOE:\t is not set (required for PPPoE links)" + local WARNING_ATM_BR2684="CONFIG_ATM_BR2684:\t is not set (required for PPPoE links)" + check_extra_config + echo + + # Check user-space for PPPoA support + if ! built_with_use net-dialup/ppp atm ; then + ewarn "Run the following command if connecting via PPPoA protocol:" + ewarn " euse -E atm && emerge net-dialup/ppp" + echo + fi + # Check user-space for PPPoE support + if ! has_version net-misc/br2684ctl ; then + ewarn "Run the following command if connecting via PPPoE protocol:" + ewarn " emerge net-misc/br2684ctl" + echo + fi + + ewarn "To complete the installation, you must read the documentation in" + ewarn " ${ROOT}usr/share/doc/${PF}" +} |