Line 3
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/dahdi-2.2.0.2.ebuild,v 1.1 2009/10/22 18:19:35 chainsaw Exp $ |
3 |
# $Header: $ |
4 |
-- |
|
|
Line 7
Link Here
|
7 |
MY_P="${P/dahdi/dahdi-linux}" |
7 |
MY_PN="${PN/dahdi/dahdi-linux}" |
8 |
-- |
8 |
MY_P="${MY_PN}-${PV/_/-}" |
Line 13
Link Here
|
13 |
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.17.0.tar.gz |
14 |
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.22.0.tar.gz |
14 |
-- |
|
|
Line 22
Link Here
|
22 |
IUSE="" |
23 |
IUSE="ecoslec" |
23 |
-- |
|
|
Line 41
Link Here
|
|
|
42 |
epatch "${FILESDIR}"/${P}-parallel-make.patch |
43 |
epatch "${FILESDIR}"/${P}-linux-2.6.33.patch |
Lines 42-43
Link Here
|
42 |
# https://issues.asterisk.org/view.php?id=15747 |
|
|
43 |
epatch "${FILESDIR}"/${P}-net-device-ops.patch |
Lines 45-46
Link Here
|
45 |
# If you want TASK_INTERRUPTIBLE you need <linux/sched.h>, hmmkay? |
46 |
if use ecoslec; then |
46 |
epatch "${FILESDIR}"/${P}-includes.patch |
47 |
elog "Support for OSLEC echo canceller." |
47 |
-- |
48 |
# epatch "${FILESDIR}"/dahdi_linux_extra.diff |
|
|
49 |
mkdir -p "${MY_P}/drivers/staging" || die "Error creating staging folder." |
50 |
cp -a "${KERNEL_DIR}/drivers/staging/echo" "${MY_P}/drivers/staging/" \ |
51 |
|| die "Error copying staging/echo folder" |
52 |
sed -re 's,^#(obj-m \+= (dahdi_echocan_oslec.o|\.\./staging/echo/))$,\1,' -i "${MY_P}/drivers/dahdi/Kbuild" \ |
53 |
|| die "Error enabling OSLEC" |
54 |
fi |
Lines 48-53
Link Here
|
48 |
# https://issues.asterisk.org/view.php?id=16114 |
|
|
49 |
epatch "${FILESDIR}"/${P}-driver_data-2.6.32.patch |
50 |
|
51 |
# GCC 4.4 compatibility, the quick 'n dirty way |
52 |
# error: dereferencing pointer to incomplete type |
53 |
epatch "${FILESDIR}"/${P}-gcc44-hack.patch |
Line 72
Link Here
|
|
|
74 |
|
75 |
pkg_postinst() { |
76 |
depmod || die "depmod failed" |
77 |
if use ecoslec && linux-info_get_any_version && linux_config_src_exists; then |
78 |
CONFIG_CHECK="~ECHO" |
79 |
local ERROR_ECHO="You need CONFIG_ECHO enabled in your kernel sources in order to use oslec support." |
80 |
check_extra_config |
81 |
fi |
82 |
} |