diff options
author | 2009-07-19 10:29:06 +0000 | |
---|---|---|
committer | 2009-07-19 10:29:06 +0000 | |
commit | 7333ba9bc8c96197f5ed6cd44d1d8405e115deef (patch) | |
tree | 96d209eb10c8ca2e80e1ddbcf96118468a5234fc | |
parent | net-misc/dahdi-2.2.0.1 version bump (diff) | |
download | voip-7333ba9bc8c96197f5ed6cd44d1d8405e115deef.tar.gz voip-7333ba9bc8c96197f5ed6cd44d1d8405e115deef.tar.bz2 voip-7333ba9bc8c96197f5ed6cd44d1d8405e115deef.zip |
net-misc/dahdi-tools-2.2.0 version bump
svn path=/trunk/; revision=876
-rw-r--r-- | net-misc/dahdi-tools/ChangeLog | 14 | ||||
-rw-r--r-- | net-misc/dahdi-tools/Manifest | 6 | ||||
-rw-r--r-- | net-misc/dahdi-tools/dahdi-tools-2.2.0.ebuild | 34 | ||||
-rw-r--r-- | net-misc/dahdi-tools/files/dahdi-tools-2.2.0-hdlc.patch | 12 | ||||
-rw-r--r-- | net-misc/dahdi-tools/files/dahdi.init | 31 | ||||
-rw-r--r-- | net-misc/dahdi-tools/metadata.xml | 9 |
6 files changed, 106 insertions, 0 deletions
diff --git a/net-misc/dahdi-tools/ChangeLog b/net-misc/dahdi-tools/ChangeLog new file mode 100644 index 0000000..71ff748 --- /dev/null +++ b/net-misc/dahdi-tools/ChangeLog @@ -0,0 +1,14 @@ +# ChangeLog for net-misc/dahdi-tools +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi-tools/ChangeLog,v 1.1 2009/03/10 17:08:00 chainsaw Exp $ + +*dahdi-tools-2.1.0.2 (10 Mar 2009) + + 10 Mar 2009; <chainsaw@gentoo.org> + +files/dahdi-tools-2.1.0.2-asneeded.patch, +files/dahdi.init, + +metadata.xml, +dahdi-tools-2.1.0.2.ebuild: + Initial commit, ebuild by Svoop & Rambaldi. Taken from the VoiP overlay + but HPEC functionality removed as the decision logic is not portable to + X86 architectures and looks fragile. Failed to build with --as-needed, + fixed and patch submitted as upstream Digium bug #14638. + diff --git a/net-misc/dahdi-tools/Manifest b/net-misc/dahdi-tools/Manifest new file mode 100644 index 0000000..4f12346 --- /dev/null +++ b/net-misc/dahdi-tools/Manifest @@ -0,0 +1,6 @@ +AUX dahdi-tools-2.2.0-hdlc.patch 414 RMD160 35764475b19761cc0e4eeaab466c203849f3521b SHA1 83d64241ef1bcb62d4b8b8fffbae2a80bc978e47 SHA256 4ada3ab50503184472da0522953095402fa7299dbeadf43f2dff4427d7035b5b +AUX dahdi.init 572 RMD160 c7552ca71e9fe8ccc8a54f57fc89ed4e8117ba0e SHA1 623d9a400e726d3661c14711ae161d9b8b1cf19d SHA256 d553db75e185ad856f99fb8361dd28e3873b17ca496ff2eb146fa51856f4aebb +DIST dahdi-tools-2.2.0.tar.gz 463418 RMD160 7f2023b1d28c5ef73b34ca7efc372563baa01223 SHA1 cb28bad486b49bb22ba345d32b04d2d14ea9d198 SHA256 2ad71830c958e69b8a97c990d65cf0db426b7c9e1447133cc9ce2f1acadd0c5a +EBUILD dahdi-tools-2.2.0.ebuild 908 RMD160 7d7e5fa21eed4020c81b7a4b4cc566d256c16b6f SHA1 70547268a03117fc55943924461871f7fb0759b5 SHA256 5cd277883be2141fd846934f63d7fed2cf4c216afa525ec1f798a1fbf373d33d +MISC ChangeLog 679 RMD160 6fa40c9a0232717aaadc65f83d4dd1d7a34dcee3 SHA1 6b85a409c4d98b565f5eb0e226b810225cceeccf SHA256 39cbdf3a2f2316eac9c152e04a41ad05383d0f926c5388ed7e9172f66ad796e5 +MISC metadata.xml 257 RMD160 310ad9c194b37abe9bb814131148f5cc78c77625 SHA1 9f8b9263984b3fca531dcd3c859b0f0945d9920f SHA256 ad64812c2b7c47f6071002a0d7614aff3d4ba8349958093745d0a637b265d23b diff --git a/net-misc/dahdi-tools/dahdi-tools-2.2.0.ebuild b/net-misc/dahdi-tools/dahdi-tools-2.2.0.ebuild new file mode 100644 index 0000000..feddc06 --- /dev/null +++ b/net-misc/dahdi-tools/dahdi-tools-2.2.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi-tools/dahdi-tools-2.1.0.2.ebuild,v 1.1 2009/03/10 17:08:00 chainsaw Exp $ + +inherit eutils + +DESCRIPTION="Userspace tools to configure the kernel modules from net-misc/dahdi" +HOMEPAGE="http://www.asterisk.org" +SRC_URI="http://downloads.digium.com/pub/telephony/dahdi-tools/releases/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="net-misc/dahdi + dev-libs/libusb" + +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.29" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-hdlc.patch" +} + +src_install() { + emake DESTDIR="${D}" install || die "failed to install package" + emake DESTDIR="${D}" config || die "failed to install package" + + # install init script + newinitd "${FILESDIR}"/dahdi.init dahdi +} diff --git a/net-misc/dahdi-tools/files/dahdi-tools-2.2.0-hdlc.patch b/net-misc/dahdi-tools/files/dahdi-tools-2.2.0-hdlc.patch new file mode 100644 index 0000000..ebb82df --- /dev/null +++ b/net-misc/dahdi-tools/files/dahdi-tools-2.2.0-hdlc.patch @@ -0,0 +1,12 @@ +diff -urN dahdi-tools-2.2.0.orig/sethdlc.c dahdi-tools-2.2.0/sethdlc.c +--- dahdi-tools-2.2.0.orig/sethdlc.c 2008-08-27 18:13:25.000000000 +0200 ++++ dahdi-tools-2.2.0/sethdlc.c 2009-05-18 23:15:02.274235722 +0200 +@@ -43,6 +43,8 @@ + #warning "No kernel support for Ethernet over Frame Relay / HDLC, skipping it" + #endif + ++#define ifreq __kernel_ifreq ++ + + static struct ifreq req; /* for ioctl */ + static int argc; diff --git a/net-misc/dahdi-tools/files/dahdi.init b/net-misc/dahdi-tools/files/dahdi.init new file mode 100644 index 0000000..483ec33 --- /dev/null +++ b/net-misc/dahdi-tools/files/dahdi.init @@ -0,0 +1,31 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi-tools/files/dahdi.init,v 1.1 2009/03/10 17:08:01 chainsaw Exp $ + +depend() { + need net +} + +checkconfig() { + if [ ! -f /etc/dahdi/system.conf ]; then + eerror "/etc/dahdi/system.conf not found. Nothing to do." + return 1 + fi + + return 0 +} + +start() { + checkconfig || return 1 + + ebegin "Starting DAHDI" + /usr/sbin/dahdi_cfg + eend $? +} + +stop() { + ebegin "Stopping DAHDI" + /usr/sbin/dahdi_cfg -s + eend +} diff --git a/net-misc/dahdi-tools/metadata.xml b/net-misc/dahdi-tools/metadata.xml new file mode 100644 index 0000000..66a09d8 --- /dev/null +++ b/net-misc/dahdi-tools/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>voip</herd> + <maintainer> + <email>chainsaw@gentoo.org</email> + <name>Tony Vroon</name> + </maintainer> +</pkgmetadata> |