summaryrefslogtreecommitdiff
path: root/net-libs/iax
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs/iax
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/iax')
-rw-r--r--net-libs/iax/Manifest10
-rw-r--r--net-libs/iax/files/0.2.2-debug.patch21
-rw-r--r--net-libs/iax/files/0.2.2-memset.patch12
-rw-r--r--net-libs/iax/files/0.2.2-sandbox.patch19
-rw-r--r--net-libs/iax/iax-0.2.2-r1.ebuild41
-rw-r--r--net-libs/iax/iax-0.2.2-r3.ebuild33
-rw-r--r--net-libs/iax/iax-0.2.2.ebuild29
-rw-r--r--net-libs/iax/metadata.xml8
8 files changed, 173 insertions, 0 deletions
diff --git a/net-libs/iax/Manifest b/net-libs/iax/Manifest
new file mode 100644
index 000000000000..b6178c10c725
--- /dev/null
+++ b/net-libs/iax/Manifest
@@ -0,0 +1,10 @@
+AUX 0.2.2-debug.patch 684 SHA256 bbe0f3cda8171521faa53515d85404249c5cde97e682eccafe903710ef052060 SHA512 5d8299df8c5f73466ee7e9a8523793f787906717268bc991f2f02e63dbe8e592fee97fbee5f227d7e350e7091557bdbae8820f9367b7a1a7de43cff74503c0c9 WHIRLPOOL 834fb1bd9e8dc41956abc67dbdf35c1e51b3e93e4a6e0a1e44ae501adf1225365b0b12a6db73b3d760c22bc57f3bb61e9addf01ba2cffe94e8bc2f7c915bd80e
+AUX 0.2.2-memset.patch 482 SHA256 c90dc739c13ff8e34037fa03928580f7f80e7e51b8cd83dde4660410bcf66771 SHA512 70f98b10b5899326d5480ea72e785038320b22ec3c7ff42015a716de425313c42b79184063ef7fbdf29c1164d0ecf316d2621685065a84fe7f305c7aab2d0a87 WHIRLPOOL e10110713eb66ad30aa0c255039c15fa6bd567c40f431b1c5a02f9c6716e3ca81182ff4348603baa5a4cb2592aeefba01a2dc4f992cbde32025943ff4510aebe
+AUX 0.2.2-sandbox.patch 753 SHA256 7bda0ef143742136a2fde3420693b74218dcc07a4b855d40546a20b065d0caff SHA512 b6d726272c62ffdd2c6f8bdc484990ef8ab6a0b9bf4909c896d6d7e41f2df027b6eb37f0c077b39fa05f849e6d5c40a341af2239dc312285e6ef3d3084a1c5bf WHIRLPOOL c654b7663a0a1a13df2e35908525fdd96b3da6f7b2446d04882e6818a42f47dc34116772f3d6761c06938747396eb264bcc0690726e0d8c686b41de7e1fab670
+DIST iax-0.2.2.tar.gz 139379 SHA256 7c3caf939a821440407931a13838dd0dfea21fbec373d1985e2604df5d149cb8 SHA512 f86fc56c9f31665e849e8528d2852e06abd803e8d02fa6098d68eefecccc263ded97d1870e9ee157ec1610fefc92b8f14f2d858fbce115c5da83a6dec1eea210 WHIRLPOOL c5b3c1148b93fc2411f316e80aad73c1c5eb83ad8c01dd6ecabf6d62b64f4cafd20bb83bfb1ba7a197e27afc71ba48c4ac8571489f48c298783f8f94865518ed
+EBUILD iax-0.2.2-r1.ebuild 1110 SHA256 6f7fb8d35157c5453c42494ba2378d0a174e2b4781eb27a32e0620a6cce0a007 SHA512 d0416db04ea7fe0f674c476bcab031e7b99596cea948dce526bde31b0bdeb4b0076dc4068d0a13b404622ae3d41a75f23ccb4751e81fe2392d342d6ca7799d99 WHIRLPOOL c4690ea597ad3ab00b9130fe2d84d8bb8b517c69ec17f1a467a5dd1a4de5ff381c7d3bc6e307e1b33eece8e50abd9b377b9ed9dcc78df46c27cde184819099b9
+EBUILD iax-0.2.2-r3.ebuild 718 SHA256 52147f1c9f52a9d4e3548b97c6756e060941bbca350aeeeefd3ac97c50eac268 SHA512 b42e54f48e515c6bb195a0168d576b22b1c0f500798e38ed369dae1b24c70b75f29a96aaa6d1a0b1574b338131949ab8d04872ef45bc480645fa8dda50d26fa7 WHIRLPOOL c81bcb78cd110539ee9c880538afb8c4cdd0aab7c55be93d7c474087ace1ffe3f9d777cfb070d9505f5200854935b29a1ca8805929e9e1e3420ac1c9a90d9bc4
+EBUILD iax-0.2.2.ebuild 544 SHA256 d6059d2ffb12fae8fe60b66890c57d0ed559000d27e24522737fd0baab36c612 SHA512 66d08edf5b744af7e6e4056b4e6e377c0801d5efed4fa2fe055375ee3895fdc88e0a2e81c912ccfc20e525e2e87f597e0c9eca882fd181ae07bcbd078405ed39 WHIRLPOOL a28ab9bc749c204332e1cfc41ab5783c18a31ff0c5ea00eaecc1e8d8e7bddebe7cb2bfaad02ec92ee43cfa8eeb0ebcc161c94b90868fb036949174a99987f5bd
+MISC ChangeLog 2740 SHA256 cfb03e36f65e66642abe1e6b326f47ff6b9c2d405c31a0ead9500136a7e59a35 SHA512 b53d73d03dc7b5e23eea040fba5aeb511bcb84b47279a6f70827e1d1e88747531ea7f68839a9998afbe292e749cbcf23f1be9fdd567f2d5ef3426f00580fdd6f WHIRLPOOL f2e409965e83ef861fc317b027a6fc0a77108fe8c809a5610f502abc402714bcd495e95e826eb4c83aa7cf581d326e0b4807246ec10507329a851c0b5fded43a
+MISC ChangeLog-2015 2052 SHA256 ae5a451206ac5f2c16c7763b82372094275085f8004410cf87b3e374b7cd60f8 SHA512 96ff2454bd96e057152c65e473ad4ff44aaea5d172e8de0b548d3254ad536d5e8929a5318a4b6a7cd03e265592bf91f904700e4dfd500a84fc0774d4870a7e9c WHIRLPOOL d57c0669b6194663748fa73b671607cbc46723880b0e3cccaf183f84ed599546bb011b849d4ebac86c5071fbcfa11c795ccf37290f6b88bfa624e9f7be64b800
+MISC metadata.xml 294 SHA256 cd5047c375c13f8f1530aee86812734a5936853e1104b8e6880430e67f337bca SHA512 d2a7e75b1cd19f4218697e94518b8b6a225437924352c200fb3ba180197ace527752e1b12f490c3a265e8f9952976ad1078743985d83b19239447d658230a42a WHIRLPOOL cb30a8025363918418ee1076be580ff37e6998592441693d34822187205be243a0a1b7a7f28ea553d5c88cf08140167fceb7ed2f1b88b20fe34942732b72dcd2
diff --git a/net-libs/iax/files/0.2.2-debug.patch b/net-libs/iax/files/0.2.2-debug.patch
new file mode 100644
index 000000000000..68efdfdd237a
--- /dev/null
+++ b/net-libs/iax/files/0.2.2-debug.patch
@@ -0,0 +1,21 @@
+diff -uNr iax-0.2.2.ORIG/configure.in iax-0.2.2/configure.in
+--- iax-0.2.2.ORIG/configure.in 2014-05-13 13:23:35.083867921 +0100
++++ iax-0.2.2/configure.in 2014-05-13 13:24:25.879870451 +0100
+@@ -25,6 +25,8 @@
+ fi
+
+ if test "$enable_extreme_debug" = yes ; then
++ AC_DEFINE(DEBUG_SUPPORT)
++ AC_DEFINE(DEBUG_DEFAULT)
+ AC_DEFINE(EXTREME_DEBUG)
+ fi
+
+diff -uNr iax-0.2.2.ORIG/src/Makefile.am iax-0.2.2/src/Makefile.am
+--- iax-0.2.2.ORIG/src/Makefile.am 2014-05-13 13:23:35.082867921 +0100
++++ iax-0.2.2/src/Makefile.am 2014-05-13 13:24:32.439870777 +0100
+@@ -1,5 +1,4 @@
+ CFLAGS += -g -Wall -Wstrict-prototypes -I .
+-CFLAGS += -DDEBUG_SUPPORT -DDEBUG_DEFAULT
+ CFLAGS += $(UCFLAGS)
+
+
diff --git a/net-libs/iax/files/0.2.2-memset.patch b/net-libs/iax/files/0.2.2-memset.patch
new file mode 100644
index 000000000000..08408eef98f7
--- /dev/null
+++ b/net-libs/iax/files/0.2.2-memset.patch
@@ -0,0 +1,12 @@
+diff -uNr iax-0.2.2.ORIG/src/md5.c iax-0.2.2/src/md5.c
+--- iax-0.2.2.ORIG/src/md5.c 2014-05-13 13:26:51.570877706 +0100
++++ iax-0.2.2/src/md5.c 2014-05-13 13:27:08.567878553 +0100
+@@ -165,7 +165,7 @@
+ MD5Transform(ctx->buf, (uint32 *) ctx->in);
+ byteReverse((unsigned char *) ctx->buf, 4);
+ memcpy(digest, ctx->buf, 16);
+- memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
++ memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
+ }
+
+ #ifndef ASM_MD5
diff --git a/net-libs/iax/files/0.2.2-sandbox.patch b/net-libs/iax/files/0.2.2-sandbox.patch
new file mode 100644
index 000000000000..2dc141a73b18
--- /dev/null
+++ b/net-libs/iax/files/0.2.2-sandbox.patch
@@ -0,0 +1,19 @@
+diff -uNr iax-0.2.2.ORIG/src/Makefile.am iax-0.2.2/src/Makefile.am
+--- iax-0.2.2.ORIG/src/Makefile.am 2014-05-13 12:45:58.343755528 +0100
++++ iax-0.2.2/src/Makefile.am 2014-05-13 12:46:30.044757107 +0100
+@@ -9,10 +9,9 @@
+ EXTRA_DIST = md5.h frame.h iax-client.h iax.h
+
+ install:
+- mkdir -p $(includedir)/iax
+- install -m 644 md5.h $(includedir)/iax
+- install -m 644 frame.h $(includedir)/iax
+- install -m 644 iax.h $(includedir)/iax
+- install -m 644 iax-client.h $(includedir)/iax
+- /sbin/ldconfig
++ mkdir -p $(DESTDIR)$(includedir)/iax
++ install -m 644 md5.h $(DESTDIR)$(includedir)/iax
++ install -m 644 frame.h $(DESTDIR)$(includedir)/iax
++ install -m 644 iax.h $(DESTDIR)$(includedir)/iax
++ install -m 644 iax-client.h $(DESTDIR)$(includedir)/iax
+
diff --git a/net-libs/iax/iax-0.2.2-r1.ebuild b/net-libs/iax/iax-0.2.2-r1.ebuild
new file mode 100644
index 000000000000..5bdaf96a5ee8
--- /dev/null
+++ b/net-libs/iax/iax-0.2.2-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+DESCRIPTION="IAX (Inter Asterisk eXchange) Library"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://downloads.asterisk.org/pub/telephony/libiax/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE="debug snomhack"
+
+src_prepare() {
+ if ! use debug; then
+ sed -i -e "s:-DDEBUG_SUPPORT -DDEBUG_DEFAULT ::" src/Makefile.in \
+ || die "sed failed"
+ fi
+
+ # use users CFLAGS and LDFLAGS
+ sed -i -e "s:CFLAGS =:CFLAGS+=:" src/Makefile.in || die "sed failed"
+ sed -i -e "s:\(libiax_la_LDFLAGS = \):\1@LDFLAGS@:" src/Makefile.in \
+ || die "sed failed"
+
+ # fix sandbox violations
+ sed -i -e "s:\(\$(includedir)/iax\):\$(DESTDIR)\1:" src/Makefile.in \
+ || die "sed failed"
+ sed -ie -e "/\/sbin\/ldconfig/d" src/Makefile.in || die "sed failed"
+}
+
+src_configure() {
+ econf \
+ $(use_enable debug extreme-debug) \
+ $(use_enable snomhack)
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
+}
diff --git a/net-libs/iax/iax-0.2.2-r3.ebuild b/net-libs/iax/iax-0.2.2-r3.ebuild
new file mode 100644
index 000000000000..8f8fb31fe582
--- /dev/null
+++ b/net-libs/iax/iax-0.2.2-r3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools eutils
+
+DESCRIPTION="IAX (Inter Asterisk eXchange) Library"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://downloads.asterisk.org/pub/telephony/libiax/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug snomhack"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-debug.patch"
+ epatch "${FILESDIR}/${PV}-memset.patch"
+ epatch "${FILESDIR}/${PV}-sandbox.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable debug extreme-debug) \
+ $(use_enable snomhack)
+}
+
+src_install () {
+ default
+ dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
+}
diff --git a/net-libs/iax/iax-0.2.2.ebuild b/net-libs/iax/iax-0.2.2.ebuild
new file mode 100644
index 000000000000..69b8e7d96bf5
--- /dev/null
+++ b/net-libs/iax/iax-0.2.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+IUSE=""
+
+DESCRIPTION="IAX (Inter Asterisk eXchange) Library"
+HOMEPAGE="http://www.digium.com/"
+LICENSE="LGPL-2"
+DEPEND=""
+RDEPEND=""
+SLOT="0"
+SRC_URI="http://www.digium.com/pub/libiax/${P}.tar.gz"
+
+D_PREFIX=/usr
+
+KEYWORDS="x86 ppc"
+
+src_compile() {
+ ./configure --prefix=${D_PREFIX} --enable-autoupdate
+
+ export UCFLAGS="${CFLAGS}"
+
+ emake || die
+}
+
+src_install () {
+ make prefix="${D}"/${D_PREFIX} install
+ dodoc NEWS AUTHORS README
+}
diff --git a/net-libs/iax/metadata.xml b/net-libs/iax/metadata.xml
new file mode 100644
index 000000000000..e0ad3a6e3323
--- /dev/null
+++ b/net-libs/iax/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person"><email>chainsaw@gentoo.org</email></maintainer>
+ <use>
+ <flag name="snomhack">Use slower memset for SNOM phoneem</flag>
+ </use>
+</pkgmetadata>