ports/107490: request for new port misc/libpri-devel (or something similar)

Paul Belanger pabelanger at gmail.com
Wed Jan 3 18:00:36 UTC 2007


>Number:         107490
>Category:       ports
>Synopsis:       request for new port misc/libpri-devel (or something similar)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 03 18:00:35 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Paul Belanger
>Release:        RELENG_6_1
>Organization:
>Environment:
FreeBSD hurlbut.ottawa.xxx.com 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #8: Fri Nov 24 10:45:45 EST 2006     pbelanger at starscream.mgmt.lab.ottawa.xxx.com:/usr/obj/usr/src/sys/DIMENSION  i386

>Description:
Here is a request to start a second branch for asterisk 1.4 related files.   I'm not sure what you want to name the directories, but I choose -devel for now.

Since the ports still use the 1.2 flavor, and 1.4 has not been added yet, I figured it be a good time to start something.

Feel free to update / modify the attached patch...  I just wanted to get the ball rolling.

PB
>How-To-Repeat:
n/a
>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-devel
#       libpri-devel/files
#       libpri-devel/files/patch-Makefile
#       libpri-devel/Makefile
#       libpri-devel/pkg-descr
#       libpri-devel/distinfo
#       libpri-devel/pkg-plist
#
echo c - libpri-devel
mkdir -p libpri-devel > /dev/null 2>&1
echo c - libpri-devel/files
mkdir -p libpri-devel/files > /dev/null 2>&1
echo x - libpri-devel/files/patch-Makefile
sed 's/^X//' >libpri-devel/files/patch-Makefile << 'END-of-libpri-devel/files/patch-Makefile'
X--- Makefile.orig      Wed Jul  5 12:17:05 2006
X+++ Makefile   Wed Jan  3 11:21:24 2007
X@@ -27,19 +27,19 @@
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 
X STATIC_LIBRARY=libpri.a
X-DYNAMIC_LIBRARY=libpri.so.1.0
X+DYNAMIC_LIBRARY=libpri.so.1
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=$(DESTDIR)
X-INSTALL_BASE=/usr
X-SOFLAGS = -Wl,-hlibpri.so.1.0
X+CFLAGS+=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
X+INSTALL_PREFIX=$(PREFIX)
X+INSTALL_BASE=
X+SOFLAGS = -Wl,-hlibpri.so.1
X LDCONFIG = /sbin/ldconfig
X ifneq (,$(findstring X$(OSARCH)X, XLinuxX XGNU/kFreeBSDX))
X LDCONFIG_FLAGS=-n
X@@ -80,12 +80,11 @@
X       mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
X       mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/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) $(LDCONFIG_FLAGS) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib; 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 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@@ -126,10 +125,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)
X 
X clean:
X       rm -f *.o *.so *.lo *.so.1 *.so.1.0
END-of-libpri-devel/files/patch-Makefile
echo x - libpri-devel/Makefile
sed 's/^X//' >libpri-devel/Makefile << 'END-of-libpri-devel/Makefile'
X# New ports collection makefile for:   libpri-devel
X# Date created:                3 Jan 2006
X# Whom:                        Paul Belanger <pabelanger at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      libpri
XPORTVERSION=   1.4.0
XCATEGORIES=    misc
XMASTER_SITES=  http://ftp1.digium.com/pub/libpri/ \
X               http://ftp2.digium.com/pub/libpri/ \
X               http://ftp.digium.com/pub/libpri/ \
X               http://ftp.digium.com/pub/libpri/old/
X
XMAINTAINER=    pabelanger at gmail.com
XCOMMENT=       A C implementation of the Primary Rate ISDN specification
X
XUSE_GMAKE=     yes
XUSE_LDCONFIG=  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-devel/Makefile
echo x - libpri-devel/pkg-descr
sed 's/^X//' >libpri-devel/pkg-descr << 'END-of-libpri-devel/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-devel/pkg-descr
echo x - libpri-devel/distinfo
sed 's/^X//' >libpri-devel/distinfo << 'END-of-libpri-devel/distinfo'
XMD5 (libpri-1.4.0.tar.gz) = 09b039226e43a810d523bc076823c6a9
XSHA256 (libpri-1.4.0.tar.gz) = 9f4db10a105545e68cbe0620795d2e11278828fa281ad339eeb72087125eeaf9
XSIZE (libpri-1.4.0.tar.gz) = 80021
END-of-libpri-devel/distinfo
echo x - libpri-devel/pkg-plist
sed 's/^X//' >libpri-devel/pkg-plist << 'END-of-libpri-devel/pkg-plist'
Xinclude/libpri.h
Xlib/libpri.a
Xlib/libpri.so
Xlib/libpri.so.1
END-of-libpri-devel/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list