Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74397 - net-dialup/bewan-adsl conversion to linux-mod
Summary: net-dialup/bewan-adsl conversion to linux-mod
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High minor
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 74396
  Show dependency tree
 
Reported: 2004-12-14 09:21 UTC by Daniel Drake (RETIRED)
Modified: 2004-12-14 13:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
bewan-adsl-0.8.7.ebuild (bewan-adsl-0.8.7.ebuild,2.00 KB, text/plain)
2004-12-14 09:28 UTC, Daniel Drake (RETIRED)
Details
bewan-adsl-0.8.7.ebuild (attachment.cgi?id=45976,2.00 KB, text/plain)
2004-12-14 09:53 UTC, Daniel Drake (RETIRED)
Details
bewan-adsl-0.8.7.ebuild (attachment.cgi?id=45983&action=view,2.03 KB, text/plain)
2004-12-14 11:34 UTC, Daniel Drake (RETIRED)
Details
bewan-adsl-kill-timeout.patch (bewan-adsl-kill-timeout.patch,1.22 KB, patch)
2004-12-14 12:08 UTC, Daniel Drake (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Drake (RETIRED) gentoo-dev 2004-12-14 09:21:03 UTC
Please test and commit this if it meets your standards (or give me the OK to do so).
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2004-12-14 09:28:06 UTC
Created attachment 45976 [details]
bewan-adsl-0.8.7.ebuild
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2004-12-14 09:52:17 UTC
Comment on attachment 45976 [details]
bewan-adsl-0.8.7.ebuild

># Copyright 1999-2004 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: /var/cvsroot/gentoo-x86/net-dialup/bewan-adsl/bewan-adsl-0.8.7.ebuild,v 1.3 2004/12/05 21:17:16 mrness Exp $
>
>inherit eutils linux-mod
>
>DESCRIPTION="Bewan ADSL PCI&USB st driver"
>SRC_URI="http://www.bewan.com/bewan/drivers/bast-${PV}.tgz"
>HOMEPAGE="http://www.bewan.com/"
>LICENSE="GPL-2"
>SLOT="0"
>KEYWORDS="x86"
>IUSE="usb doc"
>DEPEND="virtual/linux-sources"
>
>S="${WORKDIR}/unicorn"
>PCI_S="${S}/unicorn_pci"
>USB_S="${S}/unicorn_usb"
>
>MODULE_NAMES="unicorn_pci_atm(${PCI_S}) unicorn_pci_eth(${PCI_S})"
>use usb && MODULE_NAMES="${MODULE_NAMES} unicorn_usb_atm(${USB_S})"
>BUILD_PARAMS="KERNEL_SOURCES=${KV_DIR} KVERS=${KV_FULL}"
>BUILD_TARGETS="modules"
>CONFIG_CHECK="ATM"
>ATM_ERROR="This driver requires you to build your kernel with support for Asynchronous Transfer Mode (ATM)"
>
>src_unpack() {
>	unpack ${A}
>
>	# Fix up broken Makefiles
>	convert_to_m ${PCI_S}/Makefile
>	use usb && convert_to_m ${USB_S}/Makefile
>}
>
>src_compile() {
>	einfo "Build common library"
>	cd ${S}/libm
>	emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die
>	unset ARCH #unset ARCH because interfere with 2.6 kernel makefiles
>
>	einfo "Building tools"
>	cd ${S}/tools
>	emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
>
>	linux-mod_src_compile
>}
>
>src_install() {
>	linux-mod_src_install
>
>	cd ${S}
>	#Install tools
>	dodir /usr/bin
>	cd ${S}/tools && einstall DESTDIR=${D} prefix=/usr || \
>		die "Cannot install tools"
>
>	if use doc; then
>		#Install documantation	
>		cd ${S}
>		dodoc README
>		docinto Documentation
>		dodoc Documentation/*
>		docinto RFCs
>		dodoc RFCs/*
>		docinto scripts
>		dodoc scripts/*
>	fi
>}
>
>pkg_postinst() {
>	einfo "To load the driver do 'modprobe unicorn_atm' and 'modprobe unicorn_pci' "
>	einfo "and then do what you want with it (configure your pppd)"
>	einfo "OR"
>	einfo "it's time to look at the README file, the scripts directory gives you"
>	einfo "two comprehensive ways to load the driver, configure pppd and launch it."
>
>	linux-mod_pkg_postinst
>}
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2004-12-14 09:53:40 UTC
Created attachment 45983 [details]
bewan-adsl-0.8.7.ebuild

that didn't work..heres a slightly fixed ebuild
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2004-12-14 11:34:23 UTC
Created attachment 45985 [details]
bewan-adsl-0.8.7.ebuild

I'll get it right this time :)
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2004-12-14 12:08:25 UTC
Created attachment 45987 [details, diff]
bewan-adsl-kill-timeout.patch

Buildfix for linux 2.6.9 and onwards but can safely be applied independent of
kernel version
Should be applied with epatch when USE=usb
Comment 6 Alin Năstac (RETIRED) gentoo-dev 2004-12-14 13:22:42 UTC
done, thanks!

Note: the old ebuild failed to compile with 2.6.9 kernel.