summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-libs/libpri/ChangeLog8
-rw-r--r--net-libs/libpri/Manifest5
-rw-r--r--net-libs/libpri/files/digest-libpri-1.2.22
-rw-r--r--net-libs/libpri/files/libpri-1.2.2-gentoo.diff37
-rw-r--r--net-libs/libpri/libpri-1.2.2.ebuild60
5 files changed, 110 insertions, 2 deletions
diff --git a/net-libs/libpri/ChangeLog b/net-libs/libpri/ChangeLog
index 5b2648618dc7..efd102e9212c 100644
--- a/net-libs/libpri/ChangeLog
+++ b/net-libs/libpri/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-libs/libpri
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libpri/ChangeLog,v 1.45 2006/01/23 15:16:43 stkn Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libpri/ChangeLog,v 1.46 2006/02/02 00:55:53 stkn Exp $
+
+*libpri-1.2.2 (02 Feb 2006)
+
+ 02 Feb 2006; Stefan Knoblich <stkn@gentoo.org>
+ +files/libpri-1.2.2-gentoo.diff, +libpri-1.2.2.ebuild:
+ Version bump.
23 Jan 2006; Stefan Knoblich <stkn@gentoo.org> libpri-1.2.0.ebuild,
libpri-1.2.1.ebuild:
diff --git a/net-libs/libpri/Manifest b/net-libs/libpri/Manifest
index d7fcfe635b9c..cbc6e675b4d2 100644
--- a/net-libs/libpri/Manifest
+++ b/net-libs/libpri/Manifest
@@ -1,4 +1,4 @@
-MD5 6986ef37a9ed5989f2033fd189a6a344 ChangeLog 5746
+MD5 fe3feaee7d287ce6381343071668b57b ChangeLog 5898
MD5 854a97c4aecaf1536521b247dcdbd3a1 files/digest-libpri-1.0.4 63
MD5 4077c9b011632414cb2cdb36e1b24c27 files/digest-libpri-1.0.6 134
MD5 460b3c5461f842545b60d6c3f716631b files/digest-libpri-1.0.7 134
@@ -9,7 +9,9 @@ MD5 4794bc9f4c11421a31a1d665ee5adef2 files/digest-libpri-1.0.9-r1 134
MD5 fede299e3209681e8a1f8265a9c6158f files/digest-libpri-1.0.9-r2 134
MD5 04841b1acd89fb3086a38ea577643160 files/digest-libpri-1.2.0 135
MD5 a3ffe8323b3c23d0958a6c8afb9b4198 files/digest-libpri-1.2.1 149
+MD5 095a7eef986bcbeaed21e2d33d9640d3 files/digest-libpri-1.2.2 136
MD5 3a2b30f73ce69b5676222b6050648531 files/libpri-1.2.0-gentoo.diff 2007
+MD5 58b3a9cd96f1dcf510bb49a5feab8893 files/libpri-1.2.2-gentoo.diff 1921
MD5 46619e05129738f3b85e97fc2e76d958 libpri-1.0.4.ebuild 598
MD5 290ac8efa69f6a6cdcccddac3c963388 libpri-1.0.6.ebuild 1000
MD5 d988d508ed6a6b40c542b1af643e2446 libpri-1.0.7-r1.ebuild 1002
@@ -20,4 +22,5 @@ MD5 a96379c39b5eba95df09cd938cc4a54c libpri-1.0.9-r2.ebuild 999
MD5 a5d65ff8326161e7845e26b721f4d6dd libpri-1.0.9.ebuild 996
MD5 9bd3548f8ca43c199e931c4b9f93a49d libpri-1.2.0.ebuild 1164
MD5 f0df101c78ccf4490209602056e7b367 libpri-1.2.1.ebuild 1405
+MD5 0fac284af480c3c67a30ceac58ab0252 libpri-1.2.2.ebuild 1328
MD5 44cf247f04cc83413fcb40ed59d0847a metadata.xml 248
diff --git a/net-libs/libpri/files/digest-libpri-1.2.2 b/net-libs/libpri/files/digest-libpri-1.2.2
new file mode 100644
index 000000000000..87dedd37e5b2
--- /dev/null
+++ b/net-libs/libpri/files/digest-libpri-1.2.2
@@ -0,0 +1,2 @@
+MD5 99f82076904be0325029f6f71357eeba bristuff-0.3.0-PRE-1h.tar.gz 207158
+MD5 efce9c3699110588df5e4cf09eae01d9 libpri-1.2.2.tar.gz 76070
diff --git a/net-libs/libpri/files/libpri-1.2.2-gentoo.diff b/net-libs/libpri/files/libpri-1.2.2-gentoo.diff
new file mode 100644
index 000000000000..04e5956d9779
--- /dev/null
+++ b/net-libs/libpri/files/libpri-1.2.2-gentoo.diff
@@ -0,0 +1,37 @@
+--- libpri-1.2.2/Makefile.orig 2006-01-10 21:19:14.000000000 +0100
++++ libpri-1.2.2/Makefile 2006-01-18 23:15:56.000000000 +0100
+@@ -38,7 +38,7 @@
+ DYNAMIC_LIBRARY=libpri.so.1.0
+ STATIC_OBJS=copy_string.o pri.o q921.o prisched.o q931.o pri_facility.o
+ DYNAMIC_OBJS=copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_facility.lo
+-CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
++CFLAGS+=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
+ INSTALL_PREFIX?=
+ INSTALL_BASE=/usr
+ SOFLAGS = -Wl,-hlibpri.so.1.0
+@@ -59,14 +59,6 @@
+ #INSTALL_PREFIX = /opt/asterisk # Uncomment out to install in standard Solaris location for 3rd party code
+ endif
+
+-#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
+-#This works for even old (2.96) versions of gcc and provides a small boost either way.
+-#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesnt support it.
+-ifeq ($(PROC),sparc64)
+-PROC=ultrasparc
+-CFLAGS += -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8
+-endif
+-
+ all: depend $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
+
+ update:
+@@ -86,10 +78,8 @@
+ ifneq (${OSARCH},SunOS)
+ install -m 644 libpri.h $(INSTALL_PREFIX)$(INSTALL_BASE)/include
+ install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
+- if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then restorecon -v $(INSTALL_PREFIX)$(INSTALL_BASE)/lib/$(DYNAMIC_LIBRARY); fi
+ ( cd $(INSTALL_PREFIX)$(INSTALL_BASE)/lib ; ln -sf libpri.so.1.0 libpri.so ; ln -sf libpri.so.1.0 libpri.so.1 )
+ install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
+- if test $$(id -u) = 0; then $(LDCONFIG); fi
+ else
+ install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/include -m 644 libpri.h
+ install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/lib -m 755 $(DYNAMIC_LIBRARY)
diff --git a/net-libs/libpri/libpri-1.2.2.ebuild b/net-libs/libpri/libpri-1.2.2.ebuild
new file mode 100644
index 000000000000..33bb1d3521e3
--- /dev/null
+++ b/net-libs/libpri/libpri-1.2.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libpri/libpri-1.2.2.ebuild,v 1.1 2006/02/02 00:55:53 stkn Exp $
+
+inherit eutils
+
+## TODO:
+#
+#
+
+IUSE="bri"
+
+MY_P="${P/_/-}"
+
+BRI_VERSION="0.3.0-PRE-1h"
+
+DESCRIPTION="Primary Rate ISDN (PRI) library"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://ftp.digium.com/pub/libpri/${MY_P}.tar.gz
+ bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz )"
+# bri? ( http://www.netdomination.org/pub/asterisk/libpri-${PV}-bristuff-${BRI_VERSION}.diff.gz )"
+
+S="${WORKDIR}/${MY_P}"
+
+S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+DEPEND="virtual/libc"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-1.2.2-gentoo.diff
+
+ if use bri; then
+ einfo "Patching libpri w/ BRI stuff (${BRI_VERSION})"
+
+ # fix a small clash in patches
+ sed -i -e "s:CFLAGS=:CFLAGS+=:" \
+ ${S_BRI}/patches/libpri.patch
+# ${WORKDIR}/libpri-${PV}-bristuff-${BRI_VERSION}.diff
+
+ epatch ${S_BRI}/patches/libpri.patch
+# epatch ${WORKDIR}/libpri-${PV}-bristuff-${BRI_VERSION}.diff
+ fi
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ make INSTALL_PREFIX=${D} install || die
+
+ dodoc ChangeLog README TODO LICENSE
+}