/[gentoo-x86]/net-misc/dahdi/dahdi-2.5.0.2-r1.ebuild
Gentoo

Contents of /net-misc/dahdi/dahdi-2.5.0.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Feb 3 15:35:39 2012 UTC (7 years, 11 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old ebuilds now that stabling has been completed. Closes bug #401077 by Sergio Basurto.

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 chainsaw 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 chainsaw 1.3 # $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/dahdi-2.5.0.2-r1.ebuild,v 1.2 2011/10/31 14:34:14 flameeyes Exp $
4 chainsaw 1.1
5     EAPI=4
6    
7     inherit base linux-mod eutils flag-o-matic toolchain-funcs
8    
9     MY_P="${P/dahdi/dahdi-linux}"
10     S="${WORKDIR}/${MY_P}"
11    
12     DESCRIPTION="Kernel modules for Digium compatible hardware (formerly known as Zaptel)."
13     HOMEPAGE="http://www.asterisk.org"
14     SRC_URI="http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/${MY_P}.tar.gz
15     http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz
16     http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-vpmoct032-1.8.0.tar.gz
17     http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-064-1.05.01.tar.gz
18     http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-128-1.05.01.tar.gz
19     http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-tc400m-MR6.12.tar.gz
20     http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-hx8-2.06.tar.gz
21     mirror://gentoo/gentoo-dahdi-patchset-0.9.tar.bz2
22     http://www.junghanns.net/downloads/jnet-dahdi-drivers-1.0.13.tar.gz"
23    
24     LICENSE="LGPL-2.1"
25     SLOT="0"
26     KEYWORDS="~amd64 ~x86"
27     IUSE="flash"
28     RESTRICT="test"
29    
30     DEPEND=""
31     RDEPEND=""
32    
33     EPATCH_SUFFIX="diff"
34     PATCHES=( "${WORKDIR}/dahdi-patchset" )
35    
36     CONFIG_CHECK="MODULES CRC_CCITT"
37    
38     src_unpack() {
39     unpack ${A}
40     # Copy the firmware tarballs over, the makefile will try and download them otherwise
41     for file in ${A} ; do
42     cp "${DISTDIR}"/${file} "${MY_P}"/drivers/dahdi/firmware/
43     done
44     # But without the .bin's it'll still fall over and die, so copy those too.
45     cp *.bin "${MY_P}"/drivers/dahdi/firmware/
46     cp -p "${WORKDIR}"/jnet-dahdi-drivers-1.0.13/cwain/*.[ch] "${MY_P}"/drivers/dahdi/
47     cp -p "${WORKDIR}"/jnet-dahdi-drivers-1.0.13/qozap/*.[ch] "${MY_P}"/drivers/dahdi/
48     cp -p "${WORKDIR}"/jnet-dahdi-drivers-1.0.13/ztgsm/*.[ch] "${MY_P}"/drivers/dahdi/
49     }
50    
51     src_prepare() {
52     if use flash; then
53     sed -i -e "s:/\* #define FXSFLASH \*/:#define FXSFLASH:" include/dahdi/dahdi_config.h || die "Failed to define FXSFLASH"
54     sed -i -e "s:/\* #define SHORT_FLASH_TIME \*/:#define SHORT_FLASH_TIME:" include/dahdi/dahdi_config.h || die "Failed to define SHORT_FLASH_TIME"
55     fi
56     base_src_prepare
57     }
58    
59     src_compile() {
60     unset ARCH
61 flameeyes 1.2 emake CC=$(tc-getCC) LD=$(tc-getLD) KSRC="${KV_OUT_DIR}" DESTDIR="${D}" DAHDI_MODULES_EXTRA="cwain.o qozap.o ztgsm.o" all
62 chainsaw 1.1 }
63    
64     src_install() {
65     einfo "Installing kernel module"
66 flameeyes 1.2 emake KSRC="${KV_OUT_DIR}" DESTDIR="${D}" DAHDI_MODULES_EXTRA="cwain.o qozap.o ztgsm.o" install
67 chainsaw 1.1 rm -rf "$D"/lib/modules/*/modules.*
68     }

  ViewVC Help
Powered by ViewVC 1.1.20