summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2012-04-25 13:41:33 +0000
committerTony Vroon <chainsaw@gentoo.org>2012-04-25 13:41:33 +0000
commitd49b0719ab3eb513c7b1f8918f6c2242f90eb191 (patch)
tree9c7f55fac062ee8110a2517326061e1bb1c36a2e /net-misc/dahdi
parentDepend on any version of python (diff)
downloadhistorical-d49b0719ab3eb513c7b1f8918f6c2242f90eb191.tar.gz
historical-d49b0719ab3eb513c7b1f8918f6c2242f90eb191.tar.bz2
historical-d49b0719ab3eb513c7b1f8918f6c2242f90eb191.zip
First attempt at packaging the 2.6 branch of DAHDI. Would not have been possible without the assistance of Oliver Jaksch, Jaco Kroon & Felix Tiede. Closes bug #403023.
Package-Manager: portage-2.1.10.57/cvs/Linux x86_64
Diffstat (limited to 'net-misc/dahdi')
-rw-r--r--net-misc/dahdi/ChangeLog9
-rw-r--r--net-misc/dahdi/Manifest19
-rw-r--r--net-misc/dahdi/dahdi-2.6.1.ebuild71
3 files changed, 97 insertions, 2 deletions
diff --git a/net-misc/dahdi/ChangeLog b/net-misc/dahdi/ChangeLog
index 5334ef3e845a..cf5b74e1c14e 100644
--- a/net-misc/dahdi/ChangeLog
+++ b/net-misc/dahdi/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-misc/dahdi
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/ChangeLog,v 1.40 2012/04/23 08:55:58 chainsaw Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/ChangeLog,v 1.41 2012/04/25 13:41:33 chainsaw Exp $
+
+*dahdi-2.6.1 (25 Apr 2012)
+
+ 25 Apr 2012; Tony Vroon <chainsaw@gentoo.org> +dahdi-2.6.1.ebuild:
+ First attempt at packaging the 2.6 branch of DAHDI. Would not have been
+ possible without the assistance of Oliver Jaksch, Jaco Kroon & Felix Tiede.
+ Closes bug #403023.
23 Apr 2012; Tony Vroon <chainsaw@gentoo.org> -dahdi-2.5.0.2-r2.ebuild,
dahdi-2.5.0.2-r4.ebuild:
diff --git a/net-misc/dahdi/Manifest b/net-misc/dahdi/Manifest
index 7e0ff88cb502..631b494342f1 100644
--- a/net-misc/dahdi/Manifest
+++ b/net-misc/dahdi/Manifest
@@ -1,12 +1,29 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
DIST dahdi-fw-hx8-2.06.tar.gz 29252 RMD160 b039d046a029dd9ed0dd32df4d8560809429d964 SHA1 56c59081b1bd29c97f352b62c9667c409ca99f69 SHA256 449ab3fd03d55d808e999efb7677cd04de202b92c9fcb039539a7e48a39a80f5
DIST dahdi-fw-oct6114-064-1.05.01.tar.gz 165869 RMD160 bef97e3741c4d5b21d1e728a08984dc1f0431eb0 SHA1 2fb8e5f4f7aedb285ffa21632efd45af877eacd4 SHA256 56bac1f2024c76ecf9b6f40992eeea29a1fbee676bb2a37a058179bacfbb1c91
DIST dahdi-fw-oct6114-128-1.05.01.tar.gz 165849 RMD160 3c31b6d4ab7d3455eda75e42f5447880ea491b71 SHA1 bcf07434f4589d07d9b5f67f7b3a8fb115aa9229 SHA256 e1146749d205c41603b9b76852c3f8104dac233d0025d700db24504d10c99775
+DIST dahdi-fw-oct6114-256-1.05.01.tar.gz 171685 RMD160 e7873dc99e9c4c35c0f68f967b1bc95127d55456 SHA1 eeeba6e932dca8b7edc89cb84332d5a15b662637 SHA256 5fe5036a2766cf0e8a968b0c58b700507d86e1cde9296ca437170cc626a9c79c
DIST dahdi-fw-tc400m-MR6.12.tar.gz 1750035 RMD160 8181ffd4bc861122c338e1eb2748e797210f3150 SHA1 9206abda4c9cf192e8cae7e707f2e4e65beb8f87 SHA256 11dd8d009809e41fc9a3a36766f59ff73d29075eede5b8724331d9a6e5259774
+DIST dahdi-fw-te820-1.76.tar.gz 54303 RMD160 484ddba78152bbb76065fe1adbab46ff1340f551 SHA1 24b686fb287614cc3c1a87e7c64ba9bbf675e126 SHA256 5b823e25828e2c1c6548886ad408b2e31dbc8cd17170c52592792d9c754a199c
DIST dahdi-fw-vpmoct032-1.11.0.tar.gz 443984 RMD160 a6fcd0fb100a2c4edc6c2e50ffa23824aa472cf5 SHA1 26ceb87ff86b79e34df70306c497e298bd794323 SHA256 ba050ccbdd31d8b2ac682ad559f2122250c75473c079ef082a758691db705064
+DIST dahdi-fw-vpmoct032-1.12.0.tar.gz 443985 RMD160 4f43c8f34fea274ec3c54095e2d42b21558cf06f SHA1 743a3356d5c3ba6dd5ad759550f598879049cd2e SHA256 6b199cf836f150f9cb35f763f0f502fb52cfa2724a449b500429c746973904ad
DIST dahdi-fwload-vpmadt032-1.25.0.tar.gz 149360 RMD160 03854bebe670501a15bd8d5691c71dbafd4cc7f7 SHA1 0615613f6179ef927d23ed23daeaf7a718490200 SHA256 3ff26cf80555fd7470b43a87c51d03c1db2a75abcd4561d79f69b6c48298e4a1
DIST dahdi-linux-2.5.0.2.tar.gz 1551069 RMD160 8560209487db5730d10324e8be56185277d99a82 SHA1 ba8a814129e0313c2df2386637b483e06bb180fd SHA256 833ca4230d409023a57b1297d23448df733b7704879e8cc9e5c425e77198130c
+DIST dahdi-linux-2.6.1.tar.gz 1731178 RMD160 cebb536ef5985f363f4b720572bd237be52196b1 SHA1 fe61ecaa671137bdb8b23bc770995bf260629fe6 SHA256 a53018a22091f0f1c61968d9252f11f54d05df6806692a2dc86075009772c2d0
DIST gentoo-dahdi-patchset-1.0.2.tar.bz2 105527 RMD160 1bd8eb2ef46fa592c00a5d76ffced088dde7d3e8 SHA1 04475114d8b11072be52efe14efd147fd46ad35f SHA256 2ab293f556e0e651e358149f074a8a9d6c173e05d55202c17035b0fabc585d9e
+DIST gentoo-dahdi-patchset-1.1.0.tar.bz2 104934 RMD160 1a2de0552d81ecd131471a6d45b2f599d00bda3d SHA1 ef5a0044c54417e49034d07c3da8e5fd143179d0 SHA256 a069cfe125818e03be13c1198dc25f5d2947c3c30e00dba30b4ff6e08c6008ce
DIST jnet-dahdi-drivers-1.0.13.tar.gz 63887 RMD160 195f3f101f8313e8eef0b25c0e6791ac47100618 SHA1 41ff15af95590023086ce66cd7ff2251522b4c3f SHA256 bdf451e610bb9ff966a3493cc9ac16e90be6a3c3df0d6806cb309998690a96e8
+DIST jnet-dahdi-drivers-1.0.14.tar.gz 64860 RMD160 fe9fa0da60690ee6ccc085a47045c8c0024018f9 SHA1 a350c0971fe209f8d491f3f9f9d14bb886fa34ca SHA256 c71d1ac29c78511b59914cc9aa1798529ae7b344cdc8403a797dbcddbe486974
EBUILD dahdi-2.5.0.2-r4.ebuild 2698 RMD160 d97ab2923f9ce1dc5139d94db637fbfae7411329 SHA1 993e4cce28195fbac031855148aad9fa2db96987 SHA256 23756d931c6e1b7019fe3ffe791d77c54e0465fa75d2260d09f303bd8415dfb8
-MISC ChangeLog 10029 RMD160 a33e9e63e759e0d78049d57edea23dfdc29f622c SHA1 dd399826ce739485a25c7cfcb7b0ccf50516e8a1 SHA256 c73a9ca7c8ce423f93a4328e33ba4ba9b88c4071f297bac012d0f3b5e3ecfcc2
+EBUILD dahdi-2.6.1.ebuild 2908 RMD160 13ff226f108202ec7cf3a726a0035e2e65041e9c SHA1 b5f8f55523cc1c42ad302face778c437c3e3a9d6 SHA256 ac3654361ca9b4825d143e0bc0b68968b38812b05b12b43e32756b41ecfd6f61
+MISC ChangeLog 10301 RMD160 22e6e3205e6f189fdd8e9668c7c8d03a8e1115e3 SHA1 beb57475687b8fb591ebc0058286a897f1571d96 SHA256 cb0f4413f98aad7280005cfe0ef5279797df64c7f0057ab9e3d371776e8354fc
MISC metadata.xml 333 RMD160 4a7f243a6d4b1de974e5c52592cdb310d5c68664 SHA1 f9b073c0c00e12f5f154a7d4209430ac8a736393 SHA256 c7cf56ea7b6f0f6d3707fe2c8a0ac3ff9d13414093c4332dcb2201d8b0966691
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iEYEARECAAYFAk+X/xwACgkQp5vW4rUFj5oxawCdESbLa8GL3ikprj1atODZOIcQ
+iicAn0/c6wSHRXYwPoVN7hlViY288m9K
+=I5P4
+-----END PGP SIGNATURE-----
diff --git a/net-misc/dahdi/dahdi-2.6.1.ebuild b/net-misc/dahdi/dahdi-2.6.1.ebuild
new file mode 100644
index 000000000000..4fbd4037c158
--- /dev/null
+++ b/net-misc/dahdi/dahdi-2.6.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi/dahdi-2.6.1.ebuild,v 1.1 2012/04/25 13:41:33 chainsaw Exp $
+
+EAPI=4
+
+inherit base linux-mod eutils flag-o-matic toolchain-funcs
+
+MY_P="${P/dahdi/dahdi-linux}"
+JNET=1.0.14
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Kernel modules for Digium compatible hardware (formerly known as Zaptel)."
+HOMEPAGE="http://www.asterisk.org"
+SRC_URI="http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/${MY_P}.tar.gz
+http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz
+http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-vpmoct032-1.12.0.tar.gz
+http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-064-1.05.01.tar.gz
+http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-128-1.05.01.tar.gz
+http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-256-1.05.01.tar.gz
+http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-tc400m-MR6.12.tar.gz
+http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-hx8-2.06.tar.gz
+http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-te820-1.76.tar.gz
+mirror://gentoo/gentoo-dahdi-patchset-1.1.0.tar.bz2
+http://www.junghanns.net/downloads/jnet-dahdi-drivers-${JNET}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="flash"
+RESTRICT="test"
+
+DEPEND=""
+RDEPEND=""
+
+EPATCH_SUFFIX="diff"
+PATCHES=( "${WORKDIR}/dahdi-patchset" )
+
+CONFIG_CHECK="MODULES CRC_CCITT"
+
+src_unpack() {
+ unpack ${A}
+ # Copy the firmware tarballs over, the makefile will try and download them otherwise
+ for file in ${A} ; do
+ cp "${DISTDIR}"/${file} "${MY_P}"/drivers/dahdi/firmware/
+ done
+ # But without the .bin's it'll still fall over and die, so copy those too.
+ cp *.bin "${MY_P}"/drivers/dahdi/firmware/
+ cp -p "${WORKDIR}"/jnet-dahdi-drivers-${JNET}/cwain/*.[ch] "${MY_P}"/drivers/dahdi/
+ cp -p "${WORKDIR}"/jnet-dahdi-drivers-${JNET}/qozap/*.[ch] "${MY_P}"/drivers/dahdi/
+ cp -p "${WORKDIR}"/jnet-dahdi-drivers-${JNET}/ztgsm/*.[ch] "${MY_P}"/drivers/dahdi/
+}
+
+src_prepare() {
+ if use flash; then
+ sed -i -e "s:/\* #define FXSFLASH \*/:#define FXSFLASH:" include/dahdi/dahdi_config.h || die "Failed to define FXSFLASH"
+ sed -i -e "s:/\* #define SHORT_FLASH_TIME \*/:#define SHORT_FLASH_TIME:" include/dahdi/dahdi_config.h || die "Failed to define SHORT_FLASH_TIME"
+ fi
+ base_src_prepare
+}
+
+src_compile() {
+ unset ARCH
+ emake CC=$(tc-getCC) LD=$(tc-getLD) KSRC="${KV_OUT_DIR}" DESTDIR="${D}" DAHDI_MODULES_EXTRA="cwain.o qozap.o ztgsm.o" all
+}
+
+src_install() {
+ einfo "Installing kernel module"
+ emake CC=$(tc-getCC) LD=$(tc-getLD) KSRC="${KV_OUT_DIR}" DESTDIR="${D}" DAHDI_MODULES_EXTRA="cwain.o qozap.o ztgsm.o" install
+ rm -rf "$D"/lib/modules/*/modules.*
+}