Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Mar 2006 22:12:45 +0200
From:      Alex Miller <asm@asm.kiev.ua>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/94241: misc/libpri update to 1.2.2
Message-ID:  <E1FH51Z-0005j2-BG@piggy.asa.org.ua>
Resent-Message-ID: <200603082020.k28KK7ic058313@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         94241
>Category:       ports
>Synopsis:       misc/libpri update to 1.2.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 08 20:20:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Alex Miller <asm@asm.kiev.ua>
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
Home Sweet Home, Inc.
>Environment:
System: FreeBSD 6.1-PRERELEASE i386

>Description:

	Update to 1.2.2 version

>How-To-Repeat:


>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libpri
#	libpri/Makefile
#	libpri/distinfo
#	libpri/pkg-descr
#	libpri/pkg-plist
#	libpri/files
#	libpri/files/patch-mkdep
#	libpri/files/patch-Makefile
#
echo c - libpri
mkdir -p libpri > /dev/null 2>&1
echo x - libpri/Makefile
sed 's/^X//' >libpri/Makefile << 'END-of-libpri/Makefile'
X# New ports collection makefile for:	libpri
X# Date created:				25 Oct 2004
X# Whom:					Alexander Timoshenko <gonzo@univ.kiev.ua>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libpri
XPORTVERSION=	1.2.2
XCATEGORIES=	misc
XMASTER_SITES=	ftp://ftp.digium.com/pub/libpri/ \
X		ftp://ftp.digium.com/pub/libpri/old/
X
X#PATCHFILES=	${PORTNAME}-1.0.8-${BRIVER}.patch.gz
X#PATCH_SITES=	${MASTER_SITE_LOCAL}
X#PATCH_SITE_SUBDIR=	fjoe
X#PATCH_DIST_STRIP=	-p1
X
XMAINTAINER=	gonzo@univ.kiev.ua
XCOMMENT=	A C implementation of the Primary Rate ISDN specification
X
XBRIVER=		bristuff-0.2.0-RC8h
XUSE_GMAKE=	yes
XINSTALLS_SHLIB= yes
X
X.include <bsd.port.pre.mk>
X
X.if ${ARCH} == "alpha"
XBROKEN=		"Does not compile on alpha"
X.endif
X
X.include <bsd.port.post.mk>
END-of-libpri/Makefile
echo x - libpri/distinfo
sed 's/^X//' >libpri/distinfo << 'END-of-libpri/distinfo'
XMD5 (libpri-1.2.2.tar.gz) = efce9c3699110588df5e4cf09eae01d9
XSHA256 (libpri-1.2.2.tar.gz) = 168fce4699b77c1ac5ae176237dae2f289714be95ddd2fe8bdc25a22f00318dd
XSIZE (libpri-1.2.2.tar.gz) = 76070
END-of-libpri/distinfo
echo x - libpri/pkg-descr
sed 's/^X//' >libpri/pkg-descr << 'END-of-libpri/pkg-descr'
XThe libpri is a C implementation of the Primary Rate ISDN specification.  
XIt was based on the Bellcore specification SR-NWT-002343 for National 
XISDN.  As of May 12, 2001, it has been tested work with NI-2, Nortel DMS-100, 
Xand Lucent 5E C ustom protocols on switches from Nortel and Lucent.
END-of-libpri/pkg-descr
echo x - libpri/pkg-plist
sed 's/^X//' >libpri/pkg-plist << 'END-of-libpri/pkg-plist'
Xinclude/libpri.h
Xlib/libpri.a
Xlib/libpri.so.1.0
Xlib/libpri.so
END-of-libpri/pkg-plist
echo c - libpri/files
mkdir -p libpri/files > /dev/null 2>&1
echo x - libpri/files/patch-mkdep
sed 's/^X//' >libpri/files/patch-mkdep << 'END-of-libpri/files/patch-mkdep'
X--- mkdep.orig	Wed Nov 30 22:55:54 2005
X+++ mkdep	Wed Nov 30 22:56:00 2005
X@@ -1,4 +1,4 @@
X-#!/bin/bash -
X+#!/bin/sh -
X #
X #	$OpenBSD: mkdep.gcc.sh,v 1.8 1998/09/02 06:40:07 deraadt Exp $
X #	$NetBSD: mkdep.gcc.sh,v 1.9 1994/12/23 07:34:59 jtc Exp $
END-of-libpri/files/patch-mkdep
echo x - libpri/files/patch-Makefile
sed 's/^X//' >libpri/files/patch-Makefile << 'END-of-libpri/files/patch-Makefile'
X--- Makefile.orig	Tue Jan 10 22:19:14 2006
X+++ Makefile	Wed Mar  8 12:22:00 2006
X@@ -27,7 +27,7 @@
X # Uncomment if you want libpri to count number of Q921/Q931 sent/received
X #LIBPRI_COUNTERS=-DLIBPRI_COUNTERS
X 
X-CC=gcc
X+CC?=gcc
X 
X OSARCH=$(shell uname -s)
X PROC?=$(shell uname -m)
X@@ -38,8 +38,8 @@
X DYNAMIC_LIBRARY=libpri.so.1.0
X STATIC_OBJS=copy_string.o pri.o q921.o prisched.o q931.o pri_facility.o
X DYNAMIC_OBJS=copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_facility.lo
X-CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
X-INSTALL_PREFIX?=
X+CFLAGS+=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
X+INSTALL_PREFIX?=$(PREFIX)
X INSTALL_BASE=/usr
X SOFLAGS = -Wl,-hlibpri.so.1.0
X LDCONFIG = /sbin/ldconfig
X@@ -81,20 +81,19 @@
X 	fi
X 
X install: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
X-	mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
X-	mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/include
X+	mkdir -p $(INSTALL_PREFIX)/lib
X+	mkdir -p $(INSTALL_PREFIX)/include
X ifneq (${OSARCH},SunOS)
X-	install -m 644 libpri.h $(INSTALL_PREFIX)$(INSTALL_BASE)/include
X-	install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
X-	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
X-	( cd $(INSTALL_PREFIX)$(INSTALL_BASE)/lib ; ln -sf libpri.so.1.0 libpri.so ; ln -sf libpri.so.1.0 libpri.so.1 )
X-	install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
X-	if test $$(id -u) = 0; then $(LDCONFIG); fi
X+	echo installing libpri.h
X+	$(BSD_INSTALL_DATA) libpri.h $(INSTALL_PREFIX)/include
X+	$(BSD_INSTALL_PROGRAM) $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)/lib
X+	( cd $(INSTALL_PREFIX)/lib ; ln -sf libpri.so.1.0 libpri.so )
X+	$(BSD_INSTALL_DATA) $(STATIC_LIBRARY) $(INSTALL_PREFIX)/lib
X else
X-	install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/include -m 644 libpri.h
X-	install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/lib -m 755 $(DYNAMIC_LIBRARY)
X-	( cd $(INSTALL_PREFIX)$(INSTALL_BASE)/lib ; ln -sf libpri.so.1.0 libpri.so ; $(SOSLINK) )
X-	install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/lib -m 644 $(STATIC_LIBRARY)
X+	install -f $(INSTALL_PREFIX)/include -m 644 libpri.h
X+	install -f $(INSTALL_PREFIX)/lib -m 755 $(DYNAMIC_LIBRARY)
X+	( cd $(INSTALL_PREFIX)/lib ; ln -sf libpri.so.1.0 libpri.so ; $(SOSLINK) )
X+	install -f $(INSTALL_PREFIX)/lib -m 644 $(STATIC_LIBRARY)
X endif
X 
X uninstall:
X@@ -130,7 +129,6 @@
X 
X $(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
X 	$(CC) -shared $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)
X-	$(LDCONFIG) $(LDCONFIG_FLAGS) .
X 	ln -sf libpri.so.1.0 libpri.so
X 	ln -sf libpri.so.1.0 libpri.so.1
X 	$(SOSLINK)
END-of-libpri/files/patch-Makefile
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1FH51Z-0005j2-BG>