diff options
author | Stefan Knoblich <stkn@gentoo.org> | 2005-08-27 17:58:05 +0000 |
---|---|---|
committer | Stefan Knoblich <stkn@gentoo.org> | 2005-08-27 17:58:05 +0000 |
commit | f98720919adc32139fd638562bc511ed7d5424b9 (patch) | |
tree | 0757c9e9bf74dabfbb2c5cf508081b7d052daa1c /net-libs | |
parent | Stable on ppc64 (diff) | |
download | gentoo-2-f98720919adc32139fd638562bc511ed7d5424b9.tar.gz gentoo-2-f98720919adc32139fd638562bc511ed7d5424b9.tar.bz2 gentoo-2-f98720919adc32139fd638562bc511ed7d5424b9.zip |
Added new 1.2.0 beta ebuild.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/libpri/ChangeLog | 8 | ||||
-rw-r--r-- | net-libs/libpri/files/digest-libpri-1.2.0_beta1 | 1 | ||||
-rw-r--r-- | net-libs/libpri/files/libpri-1.2.0_beta1-gentoo.diff | 56 | ||||
-rw-r--r-- | net-libs/libpri/libpri-1.2.0_beta1.ebuild | 51 |
4 files changed, 115 insertions, 1 deletions
diff --git a/net-libs/libpri/ChangeLog b/net-libs/libpri/ChangeLog index 6cbddfe95e10..ec00a3ba8120 100644 --- a/net-libs/libpri/ChangeLog +++ b/net-libs/libpri/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-libs/libpri # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libpri/ChangeLog,v 1.38 2005/08/27 17:51:53 stkn Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/libpri/ChangeLog,v 1.39 2005/08/27 17:58:05 stkn Exp $ + +*libpri-1.2.0_beta1 (27 Aug 2005) + + 27 Aug 2005; <stkn@gentoo.org> +files/libpri-1.2.0_beta1-gentoo.diff, + +libpri-1.2.0_beta1.ebuild: + Added new 1.2.0 beta ebuild. 27 Aug 2005; <stkn@gentoo.org> -files/libpri-1.2.0_pre20050818-gentoo.diff, diff --git a/net-libs/libpri/files/digest-libpri-1.2.0_beta1 b/net-libs/libpri/files/digest-libpri-1.2.0_beta1 new file mode 100644 index 000000000000..acb91460c6b1 --- /dev/null +++ b/net-libs/libpri/files/digest-libpri-1.2.0_beta1 @@ -0,0 +1 @@ +MD5 085bd46523c795b22206a7838f9d9d84 libpri-1.2.0-beta1.tar.gz 75374 diff --git a/net-libs/libpri/files/libpri-1.2.0_beta1-gentoo.diff b/net-libs/libpri/files/libpri-1.2.0_beta1-gentoo.diff new file mode 100644 index 000000000000..b12be301f3c9 --- /dev/null +++ b/net-libs/libpri/files/libpri-1.2.0_beta1-gentoo.diff @@ -0,0 +1,56 @@ +--- libpri/Makefile.orig 2005-06-22 00:47:39.000000000 +0200 ++++ libpri/Makefile 2005-07-25 17:48:27.000000000 +0200 +@@ -38,33 +38,18 @@ + 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 +-ifeq (${OSARCH},Linux) +-LDCONFIG_FLAGS=-n +-else + ifeq (${OSARCH},FreeBSD) +-LDCONFIG_FLAGS=-m + CFLAGS += -I../zaptel -I../zapata + endif +-endif + ifeq (${OSARCH},SunOS) + CFLAGS += -DSOLARIS -I../zaptel-solaris -lsocket -lnsl + SOFLAGS = +-LDCONFIG = echo + INSTALL_BASE = /usr/local + else + SOFLAGS = -Wl,-soname,libpri.so.1 +-LDCONFIG = /sbin/ldconfig +-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) +@@ -82,10 +67,8 @@ + mkdir -p $(INSTALL_PREFIX)/$(INSTALL_BASE)/include + 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 libpri.so ) + install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib +- $(LDCONFIG) + + uninstall: + @echo "Removing Libpri" +@@ -119,7 +102,6 @@ + + $(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS) + $(CC) -shared $(SOFLAGS) -o $@ $(DYNAMIC_OBJS) +- $(LDCONFIG) $(LDCONFIG_FLAGS) . + ln -sf libpri.so.1 libpri.so + + clean: diff --git a/net-libs/libpri/libpri-1.2.0_beta1.ebuild b/net-libs/libpri/libpri-1.2.0_beta1.ebuild new file mode 100644 index 000000000000..700631830271 --- /dev/null +++ b/net-libs/libpri/libpri-1.2.0_beta1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libpri/libpri-1.2.0_beta1.ebuild,v 1.1 2005/08/27 17:58:05 stkn Exp $ + +inherit eutils + +## TODO: +# +# - bristuff (waiting for next upstream release...) +# + +IUSE="" + +MY_P="${P/_/-}" + +#BRI_VERSION="0.2.0-RC8h" + +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/asterisk/downloads/bristuff-${BRI_VERSION}.tar.gz )" + +S="${WORKDIR}/${MY_P}" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86 ~ppc ~sparc ~amd64" + +DEPEND="virtual/libc" + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-gentoo.diff + +# if use bri; then +# einfo "Patching libpri w/ BRI stuff (${BRI_VERSION})" +# epatch ${WORKDIR}/bristuff-${BRI_VERSION}/patches/libpri.patch +# fi +} + +src_compile() { + emake || die +} + +src_install() { + make INSTALL_PREFIX=${D} install || die + + dodoc ChangeLog README TODO LICENSE +} |