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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Feb 3 15:35:38 2012 UTC (7 years, 10 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +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 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/dahdi-2.4.1-r1.ebuild,v 1.5 2011/09/12 13:59:35 flameeyes Exp $
4
5 EAPI=3
6
7 inherit base linux-mod eutils flag-o-matic
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-oct6114-064-1.05.01.tar.gz
17 http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-128-1.05.01.tar.gz
18 http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-tc400m-MR6.12.tar.gz
19 http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-hx8-2.06.tar.gz
20 mirror://gentoo/gentoo-dahdi-patchset-0.6.tar.bz2"
21
22 LICENSE="LGPL-2.1"
23 SLOT="0"
24 KEYWORDS="amd64 x86"
25 IUSE="flash"
26 RESTRICT="test"
27
28 DEPEND=""
29 RDEPEND=""
30
31 EPATCH_SUFFIX="diff"
32 PATCHES=( "${WORKDIR}/dahdi-patchset" )
33
34 CONFIG_CHECK="MODULES CRC_CCITT"
35
36 src_unpack() {
37 unpack ${A}
38 # Copy the firmware tarballs over, the makefile will try and download them otherwise
39 for file in ${A} ; do
40 cp "${DISTDIR}"/${file} "${MY_P}"/drivers/dahdi/firmware/
41 done
42 # But without the .bin's it'll still fall over and die, so copy those too.
43 cp *.bin "${MY_P}"/drivers/dahdi/firmware/
44 }
45
46 src_prepare() {
47 if use flash; then
48 sed -i -e "s:/\* #define FXSFLASH \*/:#define FXSFLASH:" include/dahdi/dahdi_config.h
49 sed -i -e "s:/\* #define SHORT_FLASH_TIME \*/:#define SHORT_FLASH_TIME:" include/dahdi/dahdi_config.h
50 fi
51 base_src_prepare
52 }
53
54 src_compile() {
55 unset ARCH
56 emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" all || die "Compilation failed"
57 }
58
59 src_install() {
60 einfo "Installing kernel module"
61 emake KSRC="${KERNEL_DIR}" DESTDIR="${D}" install || die "Installation failed"
62 rm -rf "$D"/lib/modules/*/modules.*
63 }

  ViewVC Help
Powered by ViewVC 1.1.20