/[gentoo-x86]/net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild
Gentoo

Contents of /net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jun 16 14:12:40 2012 UTC (11 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +4 -4 lines
Update PPPoE instructions.

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-dialup/ueagle4-atm/ueagle4-atm-1.0.ebuild,v 1.2 2011/06/15 21:50:44 flameeyes Exp $
4
5 EAPI="2"
6
7 inherit eutils linux-info
8
9 DESCRIPTION="Firmware and configuration instructions for Eagle USB E4 ADSL Modem driver"
10 HOMEPAGE="https://gna.org/projects/ueagleatm/"
11 SRC_URI="http://eagle-usb.org/ueagle-atm/non-free/ueagle4-data-${PV}.tar.gz"
12
13 LICENSE="Ikanos"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 DEPEND=""
19 RDEPEND="net-dialup/ppp
20 !sys-kernel/linux-firmware"
21
22 S="${WORKDIR}/ueagle4-data-${PV}"
23
24 pkg_setup() {
25 linux-info_pkg_setup
26
27 if kernel_is lt 2 6 16 ; then
28 eerror "The kernel-space driver exists only in kernels >= 2.6.16."
29 eerror "Please emerge net-dialup/eagle-usb instead or upgrade the kernel."
30 die "Unsupported kernel version"
31 fi
32
33 if ! has_version '>=sys-apps/baselayout-1.12.0' ; then
34 ewarn "The best way of using this driver is through the PPP net module of the"
35 ewarn " >=sys-apps/baselayout-1.12.0"
36 ewarn "which is also the only documented mode of using ${PN} driver."
37 ewarn "Please install baselayout-1.12.0 or else you will be on your own!"
38 fi
39 }
40
41 src_install() {
42 # Copy to the firmware directory
43 insinto /lib/firmware/ueagle-atm
44 doins * || die "doins firmware failed"
45
46 # Documentation necessary to complete the setup
47 dodoc "${FILESDIR}/README" || die "dodoc failed"
48 }
49
50 pkg_postinst() {
51 # Check kernel configuration
52 local CONFIG_CHECK="~FW_LOADER ~NET ~PACKET ~ATM ~NETDEVICES ~USB_DEVICEFS ~USB_ATM ~USB_UEAGLEATM \
53 ~PPP ~PPPOATM ~PPPOE ~ATM_BR2684"
54 local WARNING_PPPOATM="CONFIG_PPPOATM:\t is not set (required for PPPoA links)"
55 local WARNING_PPPOE="CONFIG_PPPOE:\t is not set (required for PPPoE links)"
56 local WARNING_ATM_BR2684="CONFIG_ATM_BR2684:\t is not set (required for PPPoE links)"
57 check_extra_config
58 echo
59
60 # Check user-space for PPPoA support
61 if ! built_with_use net-dialup/ppp atm ; then
62 ewarn "Run the following command if connecting via PPPoA protocol:"
63 ewarn " euse -E atm && emerge net-dialup/ppp"
64 echo
65 fi
66 # Check user-space for PPPoE support
67 if ! has_version >=net-dialup/linux-atm-2.5.0 ; then
68 ewarn "Run the following command if connecting via PPPoE protocol:"
69 ewarn " emerge net-dialup/linux-atm"
70 echo
71 fi
72
73 ewarn "To complete the installation, you must read the documentation in"
74 ewarn " ${ROOT}usr/share/doc/${PF}"
75 }

  ViewVC Help
Powered by ViewVC 1.1.13