Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 296637 | Differences between
and this patch

Collapse All | Expand All

(-)net-misc/dahdi/dahdi-2.2.0.2.ebuild (-1 / +19 lines)
Lines 19-25 Link Here
19
LICENSE="LGPL-2.1"
19
LICENSE="LGPL-2.1"
20
SLOT="0"
20
SLOT="0"
21
KEYWORDS="~amd64 ~x86"
21
KEYWORDS="~amd64 ~x86"
22
IUSE=""
22
IUSE="ecoslec"
23
23
24
DEPEND=""
24
DEPEND=""
25
RDEPEND=""
25
RDEPEND=""
Lines 51-56 Link Here
51
	# GCC 4.4 compatibility, the quick 'n dirty way
51
	# GCC 4.4 compatibility, the quick 'n dirty way
52
	# error: dereferencing pointer to incomplete type
52
	# error: dereferencing pointer to incomplete type
53
	epatch "${FILESDIR}"/${P}-gcc44-hack.patch
53
	epatch "${FILESDIR}"/${P}-gcc44-hack.patch
54
	if use ecoslec; then
55
		elog "Support for OSLEC echo canceller."
56
		epatch "${FILESDIR}"/dahdi_linux_extra.diff
57
		mkdir -p "${MY_P}/drivers/staging" || die "Error creating staging folder."
58
		cp -a "${KERNEL_DIR}/drivers/staging/echo" "${MY_P}/drivers/staging/" \
59
			|| die "Error copying staging/echo folder"
60
		sed -re 's,^#(obj-m \+= (dahdi_echocan_oslec.o|\.\./staging/echo/))$,\1,' -i "${MY_P}/drivers/dahdi/Kbuild" \
61
			|| die "Error enabling OSLEC"
62
	fi 
54
}
63
}
55
64
56
src_compile() {
65
src_compile() {
Lines 69-71 Link Here
69
	emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" install || die "Installation failed"
78
	emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" install || die "Installation failed"
70
	rm -rf "$D"/lib/modules/*/modules.*
79
	rm -rf "$D"/lib/modules/*/modules.*
71
}
80
}
81
82
pkg_postinst() {
83
	depmod || die "depmod failed" 
84
	if use ecoslec && linux-info_get_any_version && linux_config_src_exists; then
85
		CONFIG_CHECK="~ECHO"
86
		local ERROR_ECHO="You need CONFIG_ECHO enabled in your kernel sources in order to use oslec support."
87
		check_extra_config
88
	fi
89
}

Return to bug 296637