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

Contents of /net-misc/dahdi/dahdi-2.10.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Jan 16 09:49:36 2015 UTC (5 years, 2 months ago) by ago
Branch: MAIN
Changes since 1.1: +3 -3 lines
Stable for amd64, wrt bug #533104

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="amd64", signed Manifest commit with key 7194459F)

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

  ViewVC Help
Powered by ViewVC 1.1.20