Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 200454 Details for
Bug 270283
net-misc/dahdi-tools-2.1.0.2 build fails with newer linux-headers due to ifreq rename
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dahdi-2.2 ebuild
dahdi-2.2.0.2.ebuild (text/plain), 3.87 KB, created by
Csaba Tóth
on 2009-08-07 00:40:10 UTC
(
hide
)
Description:
dahdi-2.2 ebuild
Filename:
MIME Type:
Creator:
Csaba Tóth
Created:
2009-08-07 00:40:10 UTC
Size:
3.87 KB
patch
obsolete
># Copyright 1999-2008 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit linux-mod eutils flag-o-matic > >HPEC_VERSION="10.04.001" > >MY_P="${P/dahdi/dahdi-linux}" >MY_P="${MY_P/_/-}" >MY_S="${WORKDIR}/${MY_P}" > >DESCRIPTION="Kernel modules for Digium compatible hardware (formerly known as Zaptel)." >HOMEPAGE="http://www.asterisk.org" >SRC_URI="mirror://asterisk/dahdi-linux/releases/${MY_P}.tar.gz >mirror://asterisk/firmware/releases/dahdi-fw-oct6114-064-1.05.01.tar.gz >mirror://asterisk/firmware/releases/dahdi-fw-oct6114-128-1.05.01.tar.gz >mirror://asterisk/firmware/releases/dahdi-fw-tc400m-MR6.12.tar.gz >mirror://asterisk/firmware/releases/dahdi-fw-vpmadt032-1.07.tar.gz" > >LICENSE="LGPL-2.1" >SLOT="0" >KEYWORDS="~amd64 ~x86" >IUSE="echpec keepsrc" > >DEPEND="" >RDEPEND="" > >QA_EXECSTACK="opt/bin/dahdihpec_register opt/bin/dahdihpec_enable" > >hpec_detect() { > if [ "$(tc-arch)" == "x86" ]; then > HPEC_ARCH="32" > HPEC_CPU="i386" > return > fi > if [ "$(tc-arch)" == "amd64" ]; then > HPEC_ARCH="64" > HPEC_CPU="opteron" > if grep -q "GenuineIntel" /proc/cpuinfo; then HPEC_CPU="nocona"; fi > return > fi > die "HPEC is not available for your architecture, please remove the 'echpec' USE flag and retry." >} > >src_unpack() { > unpack ${A} > > # fix udev rules to work with both asterisk and callweaver > sed -i 's/GROUP="asterisk"/GROUP="dialout"/' "${MY_S}"/build_tools/genudevrules > > # copy the firmware files to the correct location > for file in ${A} ; do > cp "${DISTDIR}"/${file} "${MY_P}"/drivers/dahdi/firmware/ > done > cp *.bin "${MY_P}"/drivers/dahdi/firmware/ > > cd "${MY_P}" > epatch "${FILESDIR}"/dahdi-2.2.0-install.patch > > # prepare hpec > if use echpec; then > elog "Support for commercial HPEC echo canceller." > hpec_detect > cd "${MY_S}"/drivers/dahdi/hpec > wget -O hpec.tgz \ > "http://downloads.digium.com/pub/telephony/hpec/${HPEC_ARCH}-bit/hpec-${HPEC_VERSION}-${HPEC_CPU}.tar.gz" \ > || die "HPEC download failed" > tar xzf hpec.tgz > fi >} > >src_compile() { > cd "${MY_P}" > unset ARCH > emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" modules || die "failed to build module" > > # download hpec utils > if use echpec; then > cd "${S}" > wget -O dahdihpec_register "http://downloads.digium.com/pub/register/x86-${HPEC_ARCH}/register" > wget -O dahdihpec_enable "http://downloads.digium.com/pub/telephony/hpec/${HPEC_ARCH}-bit/dahdihpec_enable" > fi >} > >src_install() { > cd "${MY_P}" > > # setup directory structure so udev rules get installed > mkdir -p "${D}"/etc/udev/rules.d > > einfo "Installing kernel module" > emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" install || die "failed to install module" > rm -rf "$D"/lib/modules/*/modules.* > > # install hpec utils > if use echpec; then > cd "${S}" > diropts -o root -g root -m 0744 > dodir /opt/bin > insinto /opt/bin > insopts -o root -g root -m 0700 > doins dahdihpec_register || die "installing dahdihpec_register failed" > doins dahdihpec_enable || die "installing dahdihpec_enable failed" > fi > > # some people like to keep the sources around for custom patching > # copy the whole source tree to /usr/src/dahdi-${PVF} and run make clean there > if use keepsrc > then > einfo "keepsrc useflag enabled, copying source..." > dodir /usr/src > > cp -dPR "${MY_S}" "${D}"/usr/src/${P} || die "copying source tree failed" > > einfo "Source files have been saved to ${ROOT}usr/src/${P}" > fi >} > >src_postinst() { > # instructions for hpec > if use echpec; then > elog "HPEC is a commercial echo canceller. If you have purchased telephony" > elog "hardware from Digium, you might be eligible for a free HPEC license:" > elog "http://www.digium.com/en/products/software/hpec.php" > elog "" > elog "HPEC has to be registered once with 'dahdihpec_register' and then enabled" > elog "with 'dahdihpec_enable' every time the DAHDI drivers are loaded. The DAHDI" > elog "init script does so implicitly." > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 270283
:
191722
|
200449
|
200450
|
200452
|
200453
| 200454