ChangeLog

# ChangeLog for net-dialup/bewan-adsl
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/bewan-adsl/ChangeLog,v 1.21 2007/05/02 00:14:10 genone Exp $

02 May 2007; Marius Mauch bewan-adsl-0.9.3-r2.ebuild:
Replacing einfo with elog

13 Apr 2007; Alin Năstac bewan-adsl-0.9.3-r2.ebuild:
Die in pkg_setup if kernel version is 2.6.20 or above (#174013).

25 Feb 2007; ChangeLog:
use KV_DIR only after linux-mod_pkg_setup, bug 168051

15 Jan 2007; Alin Năstac bewan-adsl-0.9.3-r2.ebuild:
Add informational messages in postinst function, thanks to Sebastián
González (#160611).

20 Dec 2006; Alin Năstac bewan-adsl-0.9.3-r2.ebuild:
Make kernel patch future-proof (bug #156783 comment #11).

05 Dec 2006; Alin Năstac
-files/bewan-adsl-0.9.3-kernel-2.6.18.patch,
-files/bewan-adsl-0.9.3-no-strip.patch, -files/bewan-adsl-0.9.3-smp.patch,
bewan-adsl-0.9.3-r2.ebuild:
Fix broken compilation against kernel 2.6.19 (#157230). Move patches to
distfiles mirrors.

18 Nov 2006; Alin Nastac
-files/bewan-adsl-0.9.3-kernel-2.6.17.patch, -bewan-adsl-0.9.3-r1.ebuild:
Remove old revision.

20 Oct 2006; Alin Nastac bewan-adsl-0.9.3-r2.ebuild:
Stable on x86.

*bewan-adsl-0.9.3-r2 (04 Oct 2006)

04 Oct 2006; Alin Nastac
+files/bewan-adsl-0.9.3-kernel-2.6.18.patch, +bewan-adsl-0.9.3-r2.ebuild:
Fix compilation errors when build against kernel 2.6.18 (#149792).

26 Sep 2006; Alin Nastac
+files/bewan-adsl-0.9.3-kernel-2.6.17.patch,
+files/bewan-adsl-0.9.3-no-strip.patch, bewan-adsl-0.9.3-r1.ebuild:
Adapt kernel modules to the changes occured in 2.6.17 (#149143). Avoid
pre-stripped binaries QA warning.

15 Aug 2006; Alin Nastac bewan-adsl-0.9.3-r1.ebuild:
Remove abused doc USE flag. Add 3 local USE flags which enables workarounds
and optimizations, thanks to Sebastián González (#142401).

14 May 2006; Alin Nastac
-files/bewan-adsl-kill-timeout.patch, metadata.xml,
-bewan-adsl-0.8.7.ebuild, -bewan-adsl-0.9.0.ebuild,
-bewan-adsl-0.9.3.ebuild:
Remove old versions.

12 Mar 2006; Alin Nastac bewan-adsl-0.9.3-r1.ebuild:
Stable on x86.

*bewan-adsl-0.9.3-r1 (12 Feb 2006)

12 Feb 2006; Alin Nastac
+files/bewan-adsl-0.9.3-smp.patch, +bewan-adsl-0.9.3-r1.ebuild:
Fix "unresolved symbol set_cpus_allowed" on SMP kernels (#122103),
thanks to Joe Stroller .

*bewan-adsl-0.9.3 (08 Feb 2006)

08 Feb 2006; Alin Nastac +bewan-adsl-0.9.3.ebuild:
Version bump that fixes incompatibilities with kernels >= 2.6.14 (#122103).

*bewan-adsl-0.9.0 (25 Feb 2005)

25 Feb 2005; Alin Nastac +bewan-adsl-0.9.0.ebuild:
Version bump.

14 Dec 2004; Alin Nastac
+files/bewan-adsl-kill-timeout.patch, bewan-adsl-0.8.7.ebuild:
Replace kernel-mod inheritance with linux-mod and solve compilation problems
for kernel versions >= 2.6.9. See bug #74397.

05 Dec 2004; Alin Nastac bewan-adsl-0.8.7.ebuild:
Replace kernel-mod eclass with linux-info.

28 Oct 2004; Daniel Black bewan-adsl-0.8.7.ebuild:
eclass kmod -> kernel-mod thanks to Stefan Schweizer in
bug #68447

*bewan-adsl-0.8.7 (27 Sep 2004)

27 Sep 2004; Daniel Black +bewan-adsl-0.8.7.ebuild
+metadata.xml:
Initial ebuild thanks to Alin Nastac in bug #3578

Manifest

DIST A1012-A1006-A904-A888-A983-0.9.3.tgz 1176291 RMD160 50cd3201b05e931e541bd9a2dc4711c1ac044ec8 SHA1 977172f517e850f19029e3c6a0da07a7ca1e8269 SHA256 48a789f7ef026248a4a666ff5da952ef458d1a1ae7a7bc162a6d01e0ac38a954
DIST bewan-adsl-0.9.3-patches-20061220.tar.gz 5098 RMD160 9f2f5b23439e544fa38b7e262a6ee75fc4353734 SHA1 a59292fc6d4c671a8c265033070b6f8f1e3ac243 SHA256 3b635749422c144234f7799b8c1398e344c8c1580b1fc061be7f27bb9cb843b2
EBUILD bewan-adsl-0.9.3-r2.ebuild 3513 RMD160 5218f4ad0367d7306e4d20d601f6e1f3cc039f41 SHA1 fa4351e1d24fe287bb429579f5702cd02746f876 SHA256 fc9c4fd27f099567e5c77975e6d1222b1611717e130c78cc72e71d7d30025468
MISC ChangeLog 3772 RMD160 bab63088d12c1179f612c5b531655a1b73dc0259 SHA1 30ec713e094e41025c100b1b5dc17a955403b64e SHA256 900c505eeeb27d01710b53484b92774a8191877223f2590815518d199b9860e7
MISC metadata.xml 244 RMD160 d019a30c66a0973b91a78b298ead869bc95e116e SHA1 8c372c5959e7fdbd256a2d3f33a2cc6b410d9fc5 SHA256 8442a611ecdc33f97baafbc1bab688260b422f67f2bdef929279263ecb2e61b6

bewan-adsl-0.9.3-r2.ebuild

# Copyright 1999-2007 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.9.3-r2.ebuild,v 1.9 2007/06/26 02:22:12 mr_bones_ Exp $

inherit eutils linux-mod

DESCRIPTION="Bewan ADSL PCI&USB st driver"
SRC_URI="http://www.bewan.com/bewan/drivers/A1012-A1006-A904-A888-A983-${PV}.tgz
mirror://gentoo/${P}-patches-20061220.tar.gz"
HOMEPAGE="http://www.bewan.com/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="usb pcitimer slowpcibridge kt400"

DEPEND="virtual/linux-sources"
RDEPEND=""

S="${WORKDIR}/unicorn"

PCI_S="${S}/unicorn_pci"
USB_S="${S}/unicorn_usb"
BUILD_TARGETS="modules"
CONFIG_CHECK="ATM"
ATM_ERROR="This driver requires you to build your kernel with support for Asynchronous Transfer Mode (ATM)"

pkg_setup() {
if kernel_is ge 2 6 20 ; then
eerror "This driver is not compatible with kernel versions >= 2.6.20 and it cannot be fixed"
eerror "by anyone else than Bewan (see Gentoo bug #174013)."
eerror "As a Bewan customer, you should ask them to fix the problem."

die "Incompatible kernel version."
fi

MODULE_NAMES="unicorn_pci_atm(extra:${PCI_S}) unicorn_pci_eth(extra:${PCI_S})"
use usb && MODULE_NAMES="${MODULE_NAMES} unicorn_usb_atm(extra:${USB_S}) unicorn_usb_eth(extra:${USB_S})"

linux-mod_pkg_setup
BUILD_PARAMS="KERNEL_SOURCES=${KV_DIR} KVERS=${KV_FULL}"
}

src_unpack() {
unpack ${A}

cd "${S}"
# Fix "unresolved symbol set_cpus_allowed" on SMP kernels (#122103)
# Upstream consider actual version to be thread safe
epatch "${WORKDIR}/patches/${P}-smp.patch"

local f
for f in msw/*.cpp amu/*.cpp ; do
mv ${f} ${f%pp}
done
epatch "${WORKDIR}/patches/${P}-kernel-changes.patch"
epatch "${WORKDIR}/patches/${P}-no-strip.patch"

# Declare desired COPTIONS in the Makefile for the PCI module
use kt400 && sed -i 's/^\(COPTIONS *= *\)/\1 -DKT400/g' "${PCI_S}/Makefile"
use pcitimer && sed -i 's/^\(COPTIONS *= *\)/\1 -DUSE_HW_TIMER/g' "${PCI_S}/Makefile"
use slowpcibridge && sed -i 's/^\(COPTIONS *= *\)/\1 -DPCI_BRIDGE_WORKAROUND/g' "${PCI_S}/Makefile"

# 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

einfo "Building tools"
cd "${S}/tools"
emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
cd "${S}/unicorntest"
emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"

linux-mod_src_compile
}

src_install() {
linux-mod_src_install

# Install tools
cd "${S}"
dodir /usr/bin
cd "${S}/tools" && einstall DESTDIR="${D}" prefix=/usr || \
die "Cannot install tools"
cd "${S}/unicorntest" && einstall DESTDIR="${D}" prefix=/usr || \
die "Cannot install unicorntest"
doman "${S}/Documentation/unicorntest.8"

# Install documentation
cd "${S}"
dodoc README
docinto RFCs
dodoc RFCs/*
docinto scripts
dodoc scripts/*
}

pkg_postinst() {
elog "The following modules are available:"
elog " $(echo $MODULE_NAMES | sed s/\([^\)]*\)//g)"
elog
ewarn "You might need to use hotplug's blacklisting mechanism in order to prevent the"
ewarn "loading of an incorrect module at boot time, e.g. in case unicorn_pci_eth is"
ewarn "automatically loaded but you happen to need unicorn_pci_atm instead. List the"
ewarn "unwanted module in /etc/hotplug/blacklist. You might also need to blacklist it"
ewarn "in modprobe, see modprobe.conf(5)."
ewarn
linux-mod_pkg_postinst
}

metadata.xml




net-dialup
Driver for BeWAN ADSL PCI&USB st.