diff options
author | Alin Năstac <mrness@gentoo.org> | 2008-12-13 13:56:38 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2008-12-13 13:56:38 +0000 |
commit | 0c11e2403b285bcb51e3465caa9f118bb5f973bc (patch) | |
tree | b562dd9deb32d51c8ccc730d06c9e643fcfa16b8 /net-dialup | |
parent | expunge net-dialup/bewan-adsl (diff) | |
download | gentoo-2-0c11e2403b285bcb51e3465caa9f118bb5f973bc.tar.gz gentoo-2-0c11e2403b285bcb51e3465caa9f118bb5f973bc.tar.bz2 gentoo-2-0c11e2403b285bcb51e3465caa9f118bb5f973bc.zip |
expunge net-dialup/eagle-usb
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/eagle-usb/ChangeLog | 68 | ||||
-rw-r--r-- | net-dialup/eagle-usb/Manifest | 18 | ||||
-rw-r--r-- | net-dialup/eagle-usb/eagle-usb-2.3.3.ebuild | 89 | ||||
-rw-r--r-- | net-dialup/eagle-usb/files/confd | 34 | ||||
-rw-r--r-- | net-dialup/eagle-usb/files/dsl.peer | 15 | ||||
-rw-r--r-- | net-dialup/eagle-usb/files/eagle-usb-2.3.3-kernel-2.6.14.patch | 33 | ||||
-rw-r--r-- | net-dialup/eagle-usb/files/initd | 325 | ||||
-rw-r--r-- | net-dialup/eagle-usb/metadata.xml | 6 |
8 files changed, 0 insertions, 588 deletions
diff --git a/net-dialup/eagle-usb/ChangeLog b/net-dialup/eagle-usb/ChangeLog deleted file mode 100644 index 9c0e5b284ed3..000000000000 --- a/net-dialup/eagle-usb/ChangeLog +++ /dev/null @@ -1,68 +0,0 @@ -# ChangeLog for net-dialup/eagle-usb -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/eagle-usb/ChangeLog,v 1.13 2008/06/04 18:32:10 flameeyes Exp $ - - 04 Jun 2008; Diego Pettenò <flameeyes@gentoo.org> eagle-usb-2.3.3.ebuild: - Use eautoreconf, not the bootstrap script. - - 28 Oct 2007; Christian Heim <phreak@gentoo.org> eagle-usb-2.3.3.ebuild: - Include virtual/logger in RDEPEND, as the initscript already specifies 'need - logger'. - - 02 May 2007; Marius Mauch <genone@gentoo.org> eagle-usb-2.3.3.ebuild: - Replacing einfo with ewarn/eerror - - 25 Feb 2007; <genstef@gentoo.org> eagle-usb-2.3.3.ebuild: - use KV_DIR only after linux-mod_pkg_setup, bug 168051 - - 30 Apr 2006; Alin Nastac <mrness@gentoo.org> - -files/eagle-usb-2.3.2-kernel-2.6.14.patch, -eagle-usb-2.3.2.ebuild, - eagle-usb-2.3.3.ebuild: - Advise users with kernel >= 2.6.16 to use the driver available in their - kernel and instruct them to install net-dialup/ueagle-atm instead. - - 26 Mar 2006; Alin Nastac <mrness@gentoo.org> eagle-usb-2.3.2.ebuild, - eagle-usb-2.3.3.ebuild: - Bail out in pkg_setup if kernel version is >=2.6.16. This kernel version - contains a driver for eagle-usb ADSL modems (#127528). - -*eagle-usb-2.3.3 (12 Mar 2006) - - 12 Mar 2006; Alin Nastac <mrness@gentoo.org> - -files/eagle-usb-2.3.1-kernel-2.6.14.patch, - +files/eagle-usb-2.3.3-kernel-2.6.14.patch, -eagle-usb-2.3.1-r1.ebuild, - eagle-usb-2.3.2.ebuild, +eagle-usb-2.3.3.ebuild: - Remove old version. Quote strings containing env vars. Version bump. - -*eagle-usb-2.3.2 (14 Dec 2005) - - 14 Dec 2005; Alin Nastac <mrness@gentoo.org> - +files/eagle-usb-2.3.2-kernel-2.6.14.patch, files/confd, files/initd, - -eagle-usb-2.1.1.ebuild, -eagle-usb-2.3.1.ebuild, +eagle-usb-2.3.2.ebuild: - Remove obsolete versions. Correct DSP variable in /etc/conf.d/eagle-usb and - create /dev/ppp device in /etc/init.d/eagle-usb (#97248). Version bump - (#115179). - -*eagle-usb-2.3.1-r1 (04 Nov 2005) - - 04 Nov 2005; Alin Nastac <mrness@gentoo.org> - +files/eagle-usb-2.3.1-kernel-2.6.14.patch, +eagle-usb-2.3.1-r1.ebuild: - Add patch for fixing compilation issues on kernels >= 2.6.14 (#111396). - -*eagle-usb-2.3.1 (03 May 2005) - - 03 May 2005; Alin Nastac <mrness@gentoo.org> +eagle-usb-2.3.1.ebuild: - Version bump (#91221) - - 03 Mar 2005; Karol Wojtaszek <sekretarz@gentoo.org> - eagle-usb-2.1.1.ebuild: - Added ~amd64, bug #83408 - -*eagle-usb-2.1.1 (25 Feb 2005) - - 25 Feb 2005; Alin Nastac <mrness@gentoo.org> +metadata.xml, +files/confd, - +files/dsl.peer, +files/initd, +eagle-usb-2.1.1.ebuild: - Initial import from bug 82480, thanks to genstef and Daniel Plaza - <daniel@dilmun.ls.fi.upm.es>. Thanks to Frederick Ros aka Sleeper - <sl33p3r@free.fr> for the original ebuild, great work! - diff --git a/net-dialup/eagle-usb/Manifest b/net-dialup/eagle-usb/Manifest deleted file mode 100644 index dcf4f6a0b5c5..000000000000 --- a/net-dialup/eagle-usb/Manifest +++ /dev/null @@ -1,18 +0,0 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -AUX confd 807 RMD160 de37eb8b72129771b2ffa33b5d400fabd4f3a7a1 SHA1 bec5a1ea7795731ba324d93467d21bdadf1e161c SHA256 9dcf8ea9ff9d4ad2f4b11c83e2a8e08f8e7c151573147c1d267c3b6248bd9e90 -AUX dsl.peer 185 RMD160 a198080c4c9d9ef0544c31be3221cf07967d7eca SHA1 33161d8656a89519179967f3bdfb64499f494ef0 SHA256 f56d323d32184e3c14a89be71f0d0393dd34ff7d58bf3f6c7966637fdb381ff8 -AUX eagle-usb-2.3.3-kernel-2.6.14.patch 1181 RMD160 99fe6b852b74303cae792b2418ed6c23b3ddf590 SHA1 48fcbd07a21eeb440f8fabc614ac6a52aa11575d SHA256 c2818d7f386fabbd0c4bd420cb290511520e759019b190fdd04d185bc77075e3 -AUX initd 9368 RMD160 7cf7bd4f5abd332e65a134b9669086ec8f453cf8 SHA1 f334bcc45038569eb0a1581bf91cbb1c633d964b SHA256 a4390b5dd3c448c40c6714dc0fad95571ff76ac8ede0c366ca03b0429e4c97e5 -DIST eagle-usb-2.3.3.tar.bz2 932829 RMD160 5c57fb5b9bc4d0c2a9674cfb5b4cd061c57eb862 SHA1 ec69ce55ec3d23ab702d03d2a4d151e8639f9975 SHA256 6fe48387a1c718499e3e27e6ffc9feee143da32e8aeb55c777aec3a255f85b71 -EBUILD eagle-usb-2.3.3.ebuild 2909 RMD160 7e2715469c6a40bfd3802962407812b39b071684 SHA1 987fe2b37d336abf5563ceceea38ca2af724af72 SHA256 2d9fabf90de4d443306b0f6a1866ef3b1622c79c3aad5243a938da7c8e7d4fc0 -MISC ChangeLog 2792 RMD160 fd3719668d566eeb4552c7b9729447334d5f3455 SHA1 fe872849884909e8abcb392defbd5f828276c030 SHA256 4f77dabc55ca751629490527f0bd81649468171b8e9743c08dcf62791c0fb848 -MISC metadata.xml 246 RMD160 b65516c3aefd819cf354a54d5b24ab49b0105658 SHA1 66b80379094d3bff01c3ace37a70f472564994c7 SHA256 f5f3920866bdd78b1c0020fed7e9c3fd9f98a58c5740a436431b12da8e1c58ec ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.9 (GNU/Linux) - -iEYEARECAAYFAkhG37EACgkQAiZjviIA2Xg9PQCePyVJY+XlmjedS8Es9yYerlBy -CSAAoOKXkXur3S/+mI9whvtj6lLnv76t -=Gn3x ------END PGP SIGNATURE----- diff --git a/net-dialup/eagle-usb/eagle-usb-2.3.3.ebuild b/net-dialup/eagle-usb/eagle-usb-2.3.3.ebuild deleted file mode 100644 index fb39d045ff77..000000000000 --- a/net-dialup/eagle-usb/eagle-usb-2.3.3.ebuild +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/eagle-usb/eagle-usb-2.3.3.ebuild,v 1.7 2008/06/04 18:32:10 flameeyes Exp $ - -inherit linux-mod eutils autotools - -DESCRIPTION="GPL Driver for Eagle Chipset powered ADSL modem" -SRC_URI="http://baud123.free.fr/eagle-usb/${PN}-${PV%.*}/${P}.tar.bz2" -HOMEPAGE="http://www.eagle-usb.org/" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="net-dialup/ppp - !net-dialup/ueagle-atm - virtual/logger" - -MODULE_NAMES="${PN}(net:${S}/driver)" -CONFIG_CHECK="!IPV6 USB" -BUILD_TARGETS=" " - -pkg_setup() { - if kernel_is ge 2 6 16; then - eerror "This driver should be used only with kernel versions less than 2.6.16." - eerror "Please install and use the driver included in your kernel instead." - eerror - eerror "The kernel option that enables the driver is CONFIG_USB_UEAGLEATM." - eerror "You should also install firmware files available through net-dialup/ueagle-atm." - die "unsupported kernel version" - fi - linux-mod_pkg_setup - BUILD_PARAMS="KERNELSRC='${KV_DIR}'" -} - -src_unpack() { - unpack ${A} - - epatch "${FILESDIR}/${P}-kernel-2.6.14.patch" - eautoreconf -} - -src_compile() { - CONFIG_FILES=Makefile.common econf --with-kernel-src="${KV_DIR}" || die "econf failed" - for i in pppoa utils/scripts utils/eagleconnect; do - emake -C ${i} || die "emake ${i} failed" - done - - linux-mod_src_compile -} - -src_install() { - linux-mod_src_install - - for i in driver/firmware driver/user pppoa utils/scripts utils/eagleconnect; do - make DESTDIR="${D}" -C ${i} install || die "make ${i} install failed" - done - - doman doc/man/* - dodoc README ChangeLog - - newinitd "${FILESDIR}/initd" "${PN}" - newconfd "${FILESDIR}/confd" "${PN}" - insopts -m 600 ; insinto /etc/ppp/peers ; doins "${FILESDIR}/dsl.peer" -} - -pkg_postinst() { - linux-mod_pkg_postinst - - ewarn "Please set METHOD in /etc/conf.d/${PN} to the needed value:" - ewarn "dhcpip:" - ewarn " Make sure you have dhcpcd emerged." - ewarn "staticip:" - ewarn " Set your static IP in /etc/conf.d/eagle-adsl" - ewarn "dhcpip && staticip: You can use the following to set up the eagle conf-files:" - ewarn 'sed -i -e "s/Encapsulation *= *[0-9]\+/Encapsulation=00000004/" /etc/eagle-usb/eagle-usb.conf' - ewarn 'sed -i -e "s/VCI *= *[0-9]\+/VCI=00000024/" /etc/eagle-usb/eagle-usb.conf' - ewarn "pppoa:" - ewarn " Make sure you have kernel support for HDCL and PPP" - ewarn " Edit /etc/ppp/peers/dsl.peer to insert your username as" - ewarn " well as /etc/ppp/chap-secrets and /etc/ppp/pap-secrets" - ewarn - ewarn " dsl.peer contains the \"usepeerdns\" option so, you" - ewarn " should consider making a symlink named /etc/resolv.conf" - ewarn " and pointing to /etc/ppp/resolv.conf:" - ewarn "rm /etc/resolv.conf" - ewarn "ln -s /etc/ppp/resolv.conf /etc/resolv.conf" -} diff --git a/net-dialup/eagle-usb/files/confd b/net-dialup/eagle-usb/files/confd deleted file mode 100644 index e26f872d1397..000000000000 --- a/net-dialup/eagle-usb/files/confd +++ /dev/null @@ -1,34 +0,0 @@ -# Config file for the eagle-adsl ebuild - -# Set the options path -OPTIONS="/etc/eagle-usb/eagle-usb.conf" - -# Set DSP code path -DSP="/usr/share/eagle-usb/dsp" - -# Set default synchro timeout in seconds -SYNCHRO_TIMEOUT=120 - -# Set the peer filename -# This should be in /etc/ppp/peers/ -PEER="dsl.peer" - -# Method: dhcpip, staticip or pppoa -METHOD=dhcpip - -# Static IP stuff : IP, Gateway, Netmask -#STATIC_IP="192.168.1.1" -#STATIC_GW="192.168.1.254" -#STATIC_NM="255.255.255.0" - -LINKNAME=eagle - -# setting DEBUG to YES or yes will cause some extra output to the log and to stderr -# recommended for diagnosing problems. You might also want to use PPPDOPTIONS below... -DEBUG=no - -# PPPDOPTS for any extra options for pppd. e.g.: -# PPPDOPTS='debug ' - -# DHCPCDOPTS for any extra options for dhcpcd. e.g.: -# DHCPCDOPTS="-R" diff --git a/net-dialup/eagle-usb/files/dsl.peer b/net-dialup/eagle-usb/files/dsl.peer deleted file mode 100644 index 05346b7a3354..000000000000 --- a/net-dialup/eagle-usb/files/dsl.peer +++ /dev/null @@ -1,15 +0,0 @@ -pty "/usr/sbin/pppoa -I ${EAGLE_IF}" -user "your_login_here" -mru 1496 -mtu 1496 -noipdefault -defaultroute -usepeerdns -noauth -persist -nobsdcomp -nodeflate -nopcomp -novj -novjccomp -noaccomp -am diff --git a/net-dialup/eagle-usb/files/eagle-usb-2.3.3-kernel-2.6.14.patch b/net-dialup/eagle-usb/files/eagle-usb-2.3.3-kernel-2.6.14.patch deleted file mode 100644 index 313933fd2534..000000000000 --- a/net-dialup/eagle-usb/files/eagle-usb-2.3.3-kernel-2.6.14.patch +++ /dev/null @@ -1,33 +0,0 @@ -diff -Nru eagle-usb-2.3.3.orig/driver/eu_eth.c eagle-usb-2.3.3/driver/eu_eth.c ---- eagle-usb-2.3.3.orig/driver/eu_eth.c 2005-01-17 22:54:42.000000000 +0200 -+++ eagle-usb-2.3.3/driver/eu_eth.c 2005-12-14 19:43:29.953273250 +0200 -@@ -495,11 +495,16 @@ - * netif_wakequeue: - */ - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) - ins->urb_write->transfer_flags |= URB_ASYNC_UNLINK; - usb_unlink_urb(ins->urb_write); - - ins->urb_oam_write->transfer_flags |= URB_ASYNC_UNLINK; - usb_unlink_urb(ins->urb_oam_write); -+#else -+ USB_KILL_URB(ins->urb_write); -+ USB_KILL_URB(ins->urb_oam_write); -+#endif - - /* We must reset the transaction time to keep the watchdog quiet: */ - dev->trans_start = jiffies; -diff -Nru eagle-usb-2.3.3.orig/driver/Pipes.c eagle-usb-2.3.3/driver/Pipes.c ---- eagle-usb-2.3.3.orig/driver/Pipes.c 2005-01-17 22:54:42.000000000 +0200 -+++ eagle-usb-2.3.3/driver/Pipes.c 2005-12-14 19:43:29.953273250 +0200 -@@ -919,7 +919,9 @@ - * -EINVAL. - */ - urb->status = 0; -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) - urb->transfer_flags &= ~URB_ASYNC_UNLINK; -+#endif - } - else - { diff --git a/net-dialup/eagle-usb/files/initd b/net-dialup/eagle-usb/files/initd deleted file mode 100644 index 7ed5be356cfa..000000000000 --- a/net-dialup/eagle-usb/files/initd +++ /dev/null @@ -1,325 +0,0 @@ -#!/sbin/runscript -# Charlie's modified version /etc/init.d/eagle-usb -# should allow to have other ppp links up at the same time. -# should have got rid of the race condition which seemed to show when -# doing a restart - -PPP=$(which pppd 2>/dev/null) -EAGLECTRL=$(which eaglectrl 2>/dev/null) -UMOUNT=$(which umount 2>/dev/null) -IFCONFIG=$(which ifconfig 2>/dev/null) -GREP=$(which grep 2>/dev/null) -LSMOD=$(which lsmod 2>/dev/null) -MAX_LOOP=160 -EAGLESTAT=$(which eaglestat 2>/dev/null) -DHCPCD=$(which dhcpcd 2>/dev/null) -ROUTE=$(which route 2>/dev/null) -LOGGER=$(which logger 2>/dev/null) - -LINKPIDFILE="/var/run/ppp-$LINKNAME.pid" -# pipe output to $LOGGERCMD to either get it to go to logger or to /dev/null -LOGGERCMD="cat" -case "$DEBUG" in - YES|yes) - [ -x ${LOGGER} ] && LOGGERCMD="${LOGGER} -t eagle-usb" - ;; -esac - -check_pre_run () { - # Check module is loaded - (${LSMOD} | ${GREP} -q 'eagle.usb'); eend $? "Module eagle-usb is not loaded." || return 1 - - # Check for eaglectrl - [ -x ${EAGLECTRL} ] ; eend $? "Cannot find eaglectrl" || return 1 - - # And showstat - [ -x ${EAGLESTAT} ] ; eend $? "Cannot find eaglestat" || return 1 - - # And METHOD - [ "${METHOD:-set}" != set ] ; eend $? "Please define METHOD in /etc/conf.d/eagle-usb" || return 1 - - # And options - [ "${OPTIONS:-set}" != set ] ; eend $? "Please define OPTIONS in /etc/conf.d/eagle-usb" || return 1 - [ -f ${OPTIONS} ] ; eend $? "Can't find OPTIONS file ${OPTIONS}" || return 1 - - # And DSP - [ "${DSP:-set}" != set ] ; eend $? "Please define DSP in /etc/conf.d/eagle-usb" || return 1 - [ -a ${DSP} ] ; eend $? "Can't find DSP file ${DSP}" || return 1 - - # And synchro timeout - [ "${SYNCHRO_TIMEOUT:-set}" != set ] ; eend $? "Please define SYNCHRO_TIMEOUT in /etc/conf.d/eagle-usb" || return 1 - - # And linkname - [ "${LINKNAME:-set}" != set ] ; eend $? "Please define LINKNAME=\"eagle\" in /etc/conf.d/eagle-usb" || return 1 - - # Check usbdevfs is up and running ?should we eend if mount fails? - ( ${MOUNT} | ${GREP} -q usbdevfs) || ${MOUNT} none /proc/bus/usb -t usbdevfs >/dev/null 2>&1 - - return 0 -} - - -check_ppp () { - - # Check for PPP - [ ! -z ${PPP} ] ; eend $? "failed to find ppp" || return 1 - - # Check for /dev/ppp - modprobe pppoe-generic &> /dev/null - [ -c /dev/ppp ] || mknod /dev/ppp c 108 0 || eend $? "Failed to create device /dev/ppp" || return 1 - - # Check for PEER file - [ "${PEER:-set}" != set ] ; eend $? "Please define \$PEER in /etc/conf.d/eagle-usb" || return 1 - [ -f /etc/ppp/peers/${PEER} ] ; eend $? "Failed to find peer ${PEER} configuration" || return 1 - - # Check for IFCONFIG - [ -x ${IFCONFIG} ]; eend $? "Failed to find 'ifconfig'" || return 1 - -} - -check_dhcpcd () { - - # check for DHCPCD - [ ! -z ${DHCPCD} ] ; eend $? "failed to find dhcpcd" || return 1 - - # Check for IFCONFIG - [ -x ${IFCONFIG} ]; eend $? "Failed to find 'ifconfig'" || return 1 - - # Check for ROUTE - [ -x ${ROUTE} ]; eend $? "Failed to find 'route'" || return 1 - -} - -launch_pppd () { - local RETURNED=1 - local LOOP=0 - - echo "Starting Link $LINKNAME" | ${LOGGERCMD} > /dev/null - einfo "Launching PPP daemon ..." - - # Get interface name - export EAGLE_IF=`${EAGLECTRL} -i` - - # Set network interface - ${IFCONFIG} ${EAGLE_IF} 192.168.60.30 netmask 255.255.255.0 up - - # have to use a pidfile as well as exec, so we can use pppd for other things - # pppd will also give us a file containing both interface name and pid if we - # use the linkname option - start-stop-daemon --start --pidfile "$LINKPIDFILE" --exec ${PPP} call ${PEER} linkname $LINKNAME ${PPPDOPTS} | "$LOGGERCMD" >/dev/null 2>&1 - - # Wait for connection to be established - while [ ${RETURNED} -ne 0 ] && [ ${LOOP} -le ${MAX_LOOP} ] ; do - let LOOP=LOOP+1 - sleep 1 - #I'm not sure whether to do this every iteration, but it can't hurt... - find_eagle_pppif - TMP=$? - echo "Waiting for link $LINKNAME (${PPP_INTERFACE}) to start: $LOOP of $MAX_LOOP" | ${LOGGERCMD} > /dev/null - if [ $TMP -eq 0 ] ; then - # echo "Waiting for link $LINKNAME (${PPP_INTERFACE}) to start" - # shouldn't confuse ppp1 and ppp10 - ${IFCONFIG} | grep -q "${PPP_INTERFACE}[[:space:]]" - RETURNED=$? - fi - done - - if [ ${LOOP} -gt ${MAX_LOOP} ] && [ ${RETURNED} -ne 0 ] ; then - echo "Link $LINKNAME (${PPP_INTERFACE}) failed to start" | ${LOGGERCMD} > /dev/null - return 1 - else - echo "Link $LINKNAME (${PPP_INTERFACE}) started" | ${LOGGERCMD} > /dev/null - return 0 - fi -} - -stop_ppp () { - - local RETURNED=0 - local LOOP=0 - echo "Stopping Link $LINKNAME (${PPP_INTERFACE})" | ${LOGGERCMD} > /dev/null - find_eagle_pppif ; - - if [ -f $LINKPIDFILE ] - then - start-stop-daemon --stop --pidfile $LINKPIDFILE pppd - - # Wait for connection to go away - find_eagle_pppif ; - while [ ${RETURNED} -ne 1 ] && [ ${LOOP} -le ${MAX_LOOP} ] ; do - let LOOP=LOOP+3 - sleep 1 - echo "Waiting for link $LINKNAME (${PPP_INTERFACE}) to go away" | ${LOGGERCMD} > /dev/null - # could just use return value of find_eagle_pppif? - # but then would have to check whether the interface exists - # and delete the pidfile if it doesn't? but then would have - # a race condition? - ${IFCONFIG} | grep -q "${PPP_INTERFACE}[[:space:]]" - RETURNED=$? - done - - if [ ${LOOP} -gt ${MAX_LOOP} ] && [ ${RETURNED} -ne 1 ] ; then - echo "Link $LINKNAME (${PPP_INTERFACE}) failed to stop" | ${LOGGERCMD} > /dev/null - return 1 - else - echo "Link $LINKNAME (${PPP_INTERFACE}) stopped" | ${LOGGERCMD} > /dev/null - return 0 - fi - else - echo "File $LINKPIDFILE not found" | ${LOGGERCMD} > /dev/null - return 1 - fi -} - - -launch_dhcpcd () { - # Get interface - export EAGLE_IF=`${EAGLECTRL} -i` - - # Launch dhcpcd - start-stop-daemon --start --exec ${DHCPCD} -- ${DHCPCDOPTS} ${EAGLE_IF} >/dev/null 2>&1 - -} - - -stop_dhcpd () { - # Get interface - export EAGLE_IF=`${EAGLECTRL} -i` - - # Stop dhcpcd - start-stop-daemon --stop --quiet --pidfile /var/run/dhcpcd-${EAGLE_IF}.pid - - -} - -launch_static () { - local RETURNED=1 - local LOOP=0 - - einfo "Launching ADSL connexion..." - - # Get interface - export EAGLE_IF=`${EAGLECTRL} -i` - - # Set network interface - ebegin "Bringing interface WAN (usb modem) (${EAGLE_IF}) up: ${STATIC_IP}/${STATIC_NM}" - ${IFCONFIG} ${EAGLE_IF} ${STATIC_IP} netmask ${STATIC_NM} up - eend $? - - # Setting default gateway - ebegin " Setting default gateway:${STATIC_GW} via inteface ${EAGLE_IF}" - route add default gw ${STATIC_GW} - eend $? -} - -stop_static () { - # Get interface - export EAGLE_IF=`${EAGLECTRL} -i` - - # Bringing down interface - ebegin "Bringing down interface WAN (usb modem) ${EAGLE_IF}" - route del default - eend $? -} - - - -modem_is_operational () { - # To be operational, firmware should be loaded. This mean, /proc/driver/eagle-usb - # directory is not empty - if ls /proc/driver/eagle-usb/* 1>/dev/null 2>&1 - then - # Check "Modem is operational" - ${EAGLESTAT} | grep -q "Modem is operational" - else - return 1 - fi -} - -load_and_sync () { - # Load firmware /DSP/ etc only if the modem is not yet operational - if modem_is_operational - then - einfo "Modem already operational" - else - einfo "Loading firmware, DSP and trying to sync ..." - ${EAGLECTRL} -w -o${OPTIONS} -d${DSP} -s${SYNCHRO_TIMEOUT} | \ - ${LOGGERCMD} 1>/dev/null 2>&1 - fi - - return $? -} - -depend () { - need modules logger -} - - -find_eagle_pppif() -{ - # identify which ppp interface is using the eagle. - # returns zero for success, 1 if interface not found. - PPP_INTERFACE="" - # LINKPIDFILE is defined at top of script- "/var/run/ppp-${LINKNAME}.pid" - # ppp kindly gives us both the PID and the interface name in the file - if [ -r "$LINKPIDFILE" ] ; then - LINKPID=`grep -o -E '^[0-9]+' "${LINKPIDFILE}"` - PPP_INTERFACE=` grep -o -E '^ppp[0-9]+' "${LINKPIDFILE}"` - fi - if [ -z "$PPP_INTERFACE" ] ; then - return 1 ; - else - return 0 ; - fi -} - - -start () { - - ebegin "Starting eagle-usb ..." - - # Check everything needed is in place - check_pre_run ; eend $? "Pre-requesites check failed" || return 1 - - # Let's try to upload firmware/dsp and do synchro - load_and_sync ; eend $? "Failed to load or sync" || return 1 - - case "${METHOD}" in - "pppoa") - # launching ppp daemon - launch_pppd ; eend $? "Failed to start pppd daemon." || return 1 - ;; - "dhcpip") - # launching dhcpcd - launch_dhcpcd ; eend $? "Failed to start dhcpcd daemon." || return 1 - ;; - "staticip") - launch_static ; eend $? "Failed to start with static IP." || return 1 - ;; - esac - - # Cool .. we're plugged .. - return 0 -} - -stop () { - export EAGLE_IF=`${EAGLECTRL} -i` - - ebegin "Shutting down eagle-usb..." - - case "${METHOD}" in - "pppoa") - stop_ppp ; eend $? "Failed to stop 'pppd'" - ;; - "dhcpip") - stop_dhcpd ; eend $? "Failed to stop 'dhcpcd'" - ;; - "staticip") - stop_static ; eend $? "Failed to stop static IP." || return 1 - ;; - esac - - ${IFCONFIG} ${EAGLE_IF} down 1>/dev/null 2>&1 - - -} diff --git a/net-dialup/eagle-usb/metadata.xml b/net-dialup/eagle-usb/metadata.xml deleted file mode 100644 index ab386ea35cdd..000000000000 --- a/net-dialup/eagle-usb/metadata.xml +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<herd>net-dialup</herd> -<longdescription>GPL Driver for Eagle Chipset powered ADSL modem</longdescription> -</pkgmetadata> |