ports/117201: [update] net/yate-devel 1.3.0.1

Balwinder S Dheeman bdheeman at gmail.com
Mon Oct 15 11:00:02 UTC 2007


>Number:         117201
>Category:       ports
>Synopsis:       [update] net/yate-devel 1.3.0.1
>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:   Mon Oct 15 11:00:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Balwinder S Dheeman
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
Anu'z Linux at HOME
>Environment:
FreeBSD cto.homelinux.net 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sun Oct 14 07:28:06 IST 2007 bsd at cto.homelinux.net:/usr/obj/usr/src/sys/MYKERNEL i386
>Description:
* New upstream release
* preserves user's configuration files. 

Please also arrange to apply the following patches:
http://cto.homelinux.net/usr/ports/GIDs.patch
http://cto.homelinux.net/usr/ports/UIDs.patch

Thanks,
Regards,

>How-To-Repeat:
NA
>Fix:
NA

Patch attached with submission follows:

diff -Nu ./usr/ports/net/yate-devel/files/README.too.orig ./usr/ports/net/yate-devel/files/README.too
--- ./usr/ports/net/yate-devel/files/README.too.orig	2007-09-23 18:04:40.000000000 +0530
+++ ./usr/ports/net/yate-devel/files/README.too	2007-10-13 20:20:12.000000000 +0530
@@ -29,7 +29,7 @@
 	svn co --username svn --password svn https://svn.bluezbox.com/repos/zaptel-bsd
 
 The Asterisk application can be installed from ports collection:
-	# cd asterisk
+	# cd /usr/ports/net/asterisk
 	# make install
 
 
diff -Nu ./usr/ports/net/yate-devel/files/patch-conf.d_Makefile.in.orig ./usr/ports/net/yate-devel/files/patch-conf.d_Makefile.in
--- ./usr/ports/net/yate-devel/files/patch-conf.d_Makefile.in.orig	2007-10-13 20:18:25.000000000 +0530
+++ ./usr/ports/net/yate-devel/files/patch-conf.d_Makefile.in	2007-10-13 20:20:12.000000000 +0530
@@ -0,0 +1,20 @@
+diff -Nur conf.d/Makefile.in.orig conf.d/Makefile.in
+--- conf.d/Makefile.in.orig	2007-01-17 17:19:15.000000000 +0000
++++ conf.d/Makefile.in	2007-10-13 14:45:19.000000000 +0000
+@@ -20,14 +20,14 @@
+ 	lst="`ls -1 @srcdir@/*.conf @srcdir@/*.sample @srcdir@/*.default @srcdir@/*.sql | sed 's/\.sample//g; s/\.default//g; s/[^ ]*\*\.[^ ]*//g' | sort | uniq`" ; \
+ 	for s in $$lst; do \
+ 	    d="$(DESTDIR)$(confdir)/`echo $$s | sed 's,.*/,,'`" ; \
+-	    if [ -f "$$d" ]; then \
++	    if [ -f "$$d".sample ]; then \
+ 		echo "Not overwriting existing $$d" ; \
+ 	    else \
+ 		if [ ! -f "$$s" ]; then \
+ 		    test -f "$$s.default" && s="$$s.default" ; \
+ 		    test -f "$$s.sample" && s="$$s.sample" ; \
+ 		fi ; \
+-		install -m 0644 "$$s" "$$d" ; \
++		install -m 0644 "$$s" "$$d".sample ; \
+ 	    fi ; \
+ 	done
+ 
diff -Nu ./usr/ports/net/yate-devel/files/patch-modules_Makefile_in.orig ./usr/ports/net/yate-devel/files/patch-modules_Makefile_in
--- ./usr/ports/net/yate-devel/files/patch-modules_Makefile_in.orig	2007-09-23 18:04:40.000000000 +0530
+++ ./usr/ports/net/yate-devel/files/patch-modules_Makefile_in	2007-10-13 20:20:12.000000000 +0530
@@ -1,11 +1,12 @@
---- modules/Makefile.in.orig	Tue Jul 24 07:13:54 2007
-+++ modules/Makefile.in	Sun Sep 23 22:16:11 2007
+diff -Naur modules/Makefile.in.orig modules/Makefile.in
+--- modules/Makefile.in.orig	2007-07-23 21:13:54.000000000 +0000
++++ modules/Makefile.in	2007-08-12 14:25:19.000000000 +0000
 @@ -11,7 +11,7 @@
  CXX := @CXX@ -Wall
  SED := sed
  DEFS :=
 -INCLUDES := -I.. -I at top_srcdir@
-+INCLUDES := -I. -I at top_srcdir@ -I%%LOCALBASE%%/include
++INCLUDES := -I. -I at top_srcdir@ -I/usr/local/include
  CFLAGS := -O2 @MODULE_CFLAGS@ @INLINE_FLAGS@
  CPPFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
  LDFLAGS:= -L.. -lyate
@@ -23,12 +24,12 @@
  
  zapchan.yate: libypri.o
 -zapchan.yate: LOCALFLAGS = @ZAP_FLAGS@
-+zapchan.yate: LOCALFLAGS = @ZAP_FLAGS@ -L%%LOCALBASE%%/lib
++zapchan.yate: LOCALFLAGS = @ZAP_FLAGS@ -L/usr/local/lib
  zapchan.yate: LOCALLIBS = libypri.o -lpri
  
  wpchan.yate: libypri.o
 -wpchan.yate: LOCALFLAGS = @WANPIPE_HWEC_INC@
-+wpchan.yate: LOCALFLAGS = @WANPIPE_HWEC_INC@ -L%%LOCALBASE%%/lib
++wpchan.yate: LOCALFLAGS = @WANPIPE_HWEC_INC@ -L/usr/local/lib
  wpchan.yate: LOCALLIBS = libypri.o -lpri
  
  ysigchan.yate wpcard.yate zapcard.yate: ../libyatess7.so
@@ -36,25 +37,25 @@
  ysigchan.yate wpcard.yate zapcard.yate: LOCALLIBS = -lyatess7
  
 -h323chan.yate: LOCALFLAGS = -DPHAS_TEMPLATES -D_REENTRANT -DP_HAS_SEMAPHORES @H323_INC@
-+h323chan.yate: LOCALFLAGS = -DPHAS_TEMPLATES -D_REENTRANT -DP_HAS_SEMAPHORES @H323_INC@ -L%%LOCALBASE%%/lib -L%%LOCALBASE%%/lib
++h323chan.yate: LOCALFLAGS = -DPHAS_TEMPLATES -D_REENTRANT -DP_HAS_SEMAPHORES @H323_INC@ -L/usr/local/lib
  h323chan.yate: LOCALLIBS = @H323_LIB@
  
 -pgsqldb.yate: LOCALFLAGS = @PGSQL_INC@
-+pgsqldb.yate: LOCALFLAGS = @PGSQL_INC@ -L%%LOCALBASE%%/lib
++pgsqldb.yate: LOCALFLAGS = @PGSQL_INC@ -L/usr/local/lib
  pgsqldb.yate: LOCALLIBS = -lpq
  
 -mysqldb.yate: LOCALFLAGS = @MYSQL_INC@
-+mysqldb.yate: LOCALFLAGS = @MYSQL_INC@ -L%%LOCALBASE%%/lib
++mysqldb.yate: LOCALFLAGS = @MYSQL_INC@ -L/usr/local/lib
  mysqldb.yate: LOCALLIBS = @MYSQL_LIB@
  
 -enumroute.yate: LOCALLIBS = -lresolv
-+enumroute.yate: LOCALLIBS = -L%%LOCALBASE%%/lib
++enumroute.yate: LOCALLIBS = -lc
  
  alsachan.yate: LOCALLIBS = -lasound
  
  yiaxchan.yate: ../contrib/yiax/libyateiax.a
 -yiaxchan.yate: LOCALFLAGS = -I at top_srcdir@/contrib/yiax
-+yiaxchan.yate: LOCALFLAGS = -I at top_srcdir@/contrib/yiax -L%%LOCALBASE%%/lib
++yiaxchan.yate: LOCALFLAGS = -I at top_srcdir@/contrib/yiax -L/usr/local/lib
  yiaxchan.yate: LOCALLIBS = -L../contrib/yiax -lyateiax
  
  yjinglechan.yate: ../contrib/yxml/libyatexml.a ../contrib/yjingle/libyatejingle.a
@@ -63,15 +64,15 @@
  ilbccodec.yate: LOCALFLAGS = @ILBC_INC@
  
 -gsmcodec.yate: LOCALLIBS = -lgsm
-+gsmcodec.yate: LOCALLIBS = -lgsm -L%%LOCALBASE%%/lib
++gsmcodec.yate: LOCALLIBS = -lgsm -L/usr/local/lib
  gsmcodec.yate: LOCALFLAGS = @GSM_INC@
  
 -speexcodec.yate: LOCALLIBS = -lspeex
-+speexcodec.yate: LOCALLIBS = -lspeex -L%%LOCALBASE%%/lib
++speexcodec.yate: LOCALLIBS = -lspeex -L/usr/local/lib
  speexcodec.yate: LOCALFLAGS = @SPEEX_INC@
  
 -faxchan.yate: LOCALLIBS = -lspandsp
-+faxchan.yate: LOCALLIBS = -lspandsp -L%%LOCALBASE%%/lib
++faxchan.yate: LOCALLIBS = -lspandsp -L/usr/local/lib
  faxchan.yate: LOCALFLAGS = @SPANDSP_INC@
  
  ysipchan.yate: ../contrib/ysip/libyatesip.a
diff -Nu ./usr/ports/net/yate-devel/files/pkg-message.in.orig ./usr/ports/net/yate-devel/files/pkg-message.in
--- ./usr/ports/net/yate-devel/files/pkg-message.in.orig	2007-09-23 18:04:40.000000000 +0530
+++ ./usr/ports/net/yate-devel/files/pkg-message.in	2007-10-13 20:20:12.000000000 +0530
@@ -1,8 +1,11 @@
--------------------------------------------------------------------------------
+=========================================================================
 IMPORTANT! MAKE SURE TO READ THE FOLLOWING!
 
-To enable yate_enable="YES" in your /etc/rc.conf file.  It'll also start
-the yate sever automatically when the system is started.
+To start the YATE sever automatically when the system is started, append
+in your /etc/rc.conf file:
+
+yate_enable="YES"		# YATE iPBX/Softswitch server
+zaptel_enable="YES"		# If you're using Zaptel cards 
 
 To manually start the yate server run (as root):
 
@@ -18,4 +21,4 @@
 NOTE: Please read %%PREFIX%%/shere/doc/yate/README.too on a version of
 Sangoma driver for FreeBSD OS that supports Asterisk/Zaptel interface
 (AFT-A101/A102/A104 cards Only)
--------------------------------------------------------------------------------
+=========================================================================
diff -Nu ./usr/ports/net/yate-devel/Makefile.orig ./usr/ports/net/yate-devel/Makefile
--- ./usr/ports/net/yate-devel/Makefile.orig	2007-09-23 18:04:40.000000000 +0530
+++ ./usr/ports/net/yate-devel/Makefile	2007-10-13 20:20:16.000000000 +0530
@@ -1,40 +1,43 @@
 # New ports collection makefile for:	yate
 # Date created:		2006-12-11
-# Whom:			Balwinder S "bsd" Dheeman <bdheeman at hotmail.com>
+# Whom:			Balwinder S "bsd" Dheeman <bdheeman at gmail.com>
 #
 # $FreeBSD: ports/net/yate-devel/Makefile,v 1.1 2007/09/23 12:34:40 edwin Exp $
 #
 
 PORTNAME=	yate
-DISTVERSION=	1.2.0.p4
+PORTVERSION=	1.3.0.1
+PORTREVISION=	0
 CATEGORIES=	net comms
 MASTER_SITES=	http://cto.homelinux.net/pub/FreeBSD/ports/distfiles/ \
-		http://yate.null.ro/tarballs/yate1/
-PKGNAMESUFFIX=	-devel
-DISTNAME=	${PORTNAME}-${DISTVERSION:S/.p/-/}
+		http://yate.null.ro/tarballs/yate1/ \
+		${MASTER_SITE_LOCAL}
+PKGNAMESUFFIX=  -devel
+DISTVERSION=	1.3.0
+DISTRELEASE=	1
+DISTNAME=	${PORTNAME}-${DISTVERSION}-${DISTRELEASE}
+EXTRACT_SUFX=	.tar.bz2
 
-MAINTAINER=	bdheeman at hotmail.com
+MAINTAINER=	bdheeman at gmail.com
 COMMENT=	Yet Another Telephony Engine
 
 LIB_DEPENDS=	gsm.1:${PORTSDIR}/audio/gsm \
 		speex.1:${PORTSDIR}/audio/speex
 
-USE_BZIP2=	yes
-USE_GMAKE=	yes
 USE_BISON=	yes
+USE_GMAKE=	yes
 USE_LDCONFIG=	yes
-WANT_GNOME=	yes
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--without-fdsize \
-		--mandir=${LOCALBASE}/man
-CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LDFLAGS="-L${LOCALBASE}/lib"
+		--mandir=${PREFIX}/man
+CONFIGURE_ENV=	CPPFLAGS="-I${PREFIX}/include" \
+		LDFLAGS="-L${PREFIX}/lib"
 MAKE_ENV=	CXX="${CXX}" \
 		PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
 		PTHREAD_LIBS="${PTHREAD_LIBS}" \
-		PWLIBDIR=${LOCALBASE}/share/pwlib \
-		OPENH323DIR=${LOCALBASE}/share/openh323
+		PWLIBDIR=${PREFIX}/share/pwlib \
+		OPENH323DIR=${PREFIX}/share/openh323
 MAN8=		yate-config.8 yate.8
 
 ONLY_FOR_ARCHS=	amd64 i386 sparc64
@@ -46,12 +49,12 @@
 		ZAPTEL "Zaptel hardware channel/driver support" on \
 		FAX "Fax software channel/driver support" on
 
-DOCSDIR=	${LOCALBASE}/share/doc/yate
+DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}
 PORTDOCS=	${DOCSDIR}/*
 PLIST_SUB=	BRISTUFF="@comment "
 SUB_FILES=	pkg-message
 USE_RC_SUBR=	yate.sh
-WRKSRC=		${WRKDIR}/${PORTNAME}-1.2.0
+WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
 
 .include <bsd.port.pre.mk>
 
@@ -75,7 +78,7 @@
 .endif
 
 .if !defined(WITHOUT_PGSQL)
-CONFIGURE_ARGS+=	--with-libpq=${LOCALBASE}
+CONFIGURE_ARGS+=	--with-libpq=${PREFIX}
 MAKE_ENV+=	WITH_PGSQL=1
 PLIST_SUB+=	WITH_PGSQL=""
 USE_PGSQL=	yes
@@ -89,8 +92,8 @@
 .endif
 
 .if !defined(WITHOUT_H323)
-CONFIGURE_ARGS+=	--with-pwlib=${LOCALBASE} \
-			--with-openh323=${LOCALBASE}
+CONFIGURE_ARGS+=	--with-pwlib=${PREFIX} \
+			--with-openh323=${PREFIX}
 LIB_DEPENDS+=	pt_r.1:${PORTSDIR}/devel/pwlib \
 		h323_r.1:${PORTSDIR}/net/openh323
 MAKE_ENV+=	WITH_H323=1
@@ -101,7 +104,7 @@
 
 .if !defined(WITHOUT_ZAPTEL)
 BUILD_DEPENDS+=	libpri>=1.2.0:${PORTSDIR}/misc/libpri \
-		${LOCALBASE}/include/zaptel/zaptel.h:${PORTSDIR}/misc/zaptel
+		${PREFIX}/include/zaptel/zaptel.h:${PORTSDIR}/misc/zaptel
 LIB_DEPENDS+=	pri.1:${PORTSDIR}/misc/libpri
 RUN_DEPENDS+=	ztcfg:${PORTSDIR}/misc/zaptel
 MAKE_ENV+=	WITH_ZAPTEL=1
@@ -119,25 +122,17 @@
 PLIST_SUB+=	WITH_FAX="@comment "
 .endif
 
-.if ${OSVERSION} >= 500036
-PLIST_SUB+=	NEWGCC=""
-.else
-PLIST_SUB+=	NEWGCC="@comment "
-.endif
-
-post-patch:
-	${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
-		${WRKSRC}/modules/Makefile.in
-
 pre-install:
 	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
 
 post-install:
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/yate
-	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/yate
-	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/yate
-	${INSTALL_DATA} ${FILESDIR}/README.too ${PREFIX}/share/doc/yate
+	@${MKDIR} ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+	@${INSTALL_DATA} files/README.too ${DOCSDIR}
+	@cd ${PREFIX}/lib; ln -fs lib${PORTNAME}.so.${DISTVERSION} lib${PORTNAME}.so.1
+	@cd ${PREFIX}/etc/${PORTNAME}; for cfg in *.sample; do test -f $${cfg%%.sample} || cp -p $${cfg} $${cfg%%.sample}; done
 	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.post.mk>
diff -Nu ./usr/ports/net/yate-devel/distinfo.orig ./usr/ports/net/yate-devel/distinfo
--- ./usr/ports/net/yate-devel/distinfo.orig	2007-09-23 18:04:40.000000000 +0530
+++ ./usr/ports/net/yate-devel/distinfo	2007-10-13 20:20:16.000000000 +0530
@@ -1,3 +1,3 @@
-MD5 (yate-1.2.0-4.tar.bz2) = 7200c892f0d49f80e7f16c191538cd98
-SHA256 (yate-1.2.0-4.tar.bz2) = 151394baaa7cbf12f336bcbeafe40dd7083f879698cbcd10a817c9fb4a1a1c0a
-SIZE (yate-1.2.0-4.tar.bz2) = 1255053
+MD5 (yate-1.3.0-1.tar.bz2) = 9016bb5573386ffb679d2cf38694cf86
+SHA256 (yate-1.3.0-1.tar.bz2) = afd75f5e57bccc834a4cdf1f8d83902b100b320871a4e485754abc747faf2fec
+SIZE (yate-1.3.0-1.tar.bz2) = 1306287
diff -Nu ./usr/ports/net/yate-devel/pkg-descr.orig ./usr/ports/net/yate-devel/pkg-descr
--- ./usr/ports/net/yate-devel/pkg-descr.orig	2007-09-23 18:04:40.000000000 +0530
+++ ./usr/ports/net/yate-devel/pkg-descr	2007-10-13 20:20:16.000000000 +0530
@@ -1,5 +1,6 @@
-Yate is a telephony engine aimed at creating a telephony server that 
-performs well enough to deal with PBX requirements and also flexible 
-enough for complex Gateway and IVR solutions. 
+The Yate is a telephony engine or softswitch aimed at creating a
+telephony server that performs well enough to deal with your PBX
+requirements and also flexible enough for complex Gateway and, or
+IVR solutions. 
 
 WWW: http://YATE.null.ro/
diff -Nu ./usr/ports/net/yate-devel/pkg-plist.orig ./usr/ports/net/yate-devel/pkg-plist
--- ./usr/ports/net/yate-devel/pkg-plist.orig	2007-09-23 18:04:40.000000000 +0530
+++ ./usr/ports/net/yate-devel/pkg-plist	2007-10-13 20:20:16.000000000 +0530
@@ -1,34 +1,34 @@
 %%WITH_X11%%bin/yate-gtk2
-etc/yate/accfile.conf
-etc/yate/callgen.conf
-etc/yate/cdrbuild.conf
-etc/yate/cdrfile.conf
-etc/yate/dbpbx.conf
-etc/yate/dsoundchan.conf
-etc/yate/enumroute.conf
-etc/yate/extmodule.conf
-etc/yate/gtk2client.conf
-etc/yate/h323chan.conf
-etc/yate/moh.conf
-etc/yate/mysqldb.conf
-etc/yate/pbxassist.conf
-etc/yate/pgsqldb.conf
-etc/yate/providers.conf
-etc/yate/regexroute.conf
-etc/yate/regfile.conf
-etc/yate/register.conf
-etc/yate/rmanager.conf
-etc/yate/sipfeatures.conf
-etc/yate/wpchan.conf
-etc/yate/yate-gtk2.conf
-etc/yate/yate.conf
-etc/yate/yiaxchan.conf
-etc/yate/yjinglechan.conf
-etc/yate/yradius.conf
-etc/yate/yrtpchan.conf
-etc/yate/ysipchan.conf
-etc/yate/ystunchan.conf
-etc/yate/zapchan.conf
+etc/yate/accfile.conf.sample
+etc/yate/callgen.conf.sample
+etc/yate/cdrbuild.conf.sample
+etc/yate/cdrfile.conf.sample
+etc/yate/dbpbx.conf.sample
+etc/yate/dsoundchan.conf.sample
+etc/yate/enumroute.conf.sample
+etc/yate/extmodule.conf.sample
+etc/yate/gtk2client.conf.sample
+etc/yate/h323chan.conf.sample
+etc/yate/moh.conf.sample
+etc/yate/mysqldb.conf.sample
+etc/yate/pbxassist.conf.sample
+etc/yate/pgsqldb.conf.sample
+etc/yate/providers.conf.sample
+etc/yate/regexroute.conf.sample
+etc/yate/regfile.conf.sample
+etc/yate/register.conf.sample
+etc/yate/rmanager.conf.sample
+etc/yate/sipfeatures.conf.sample
+etc/yate/wpchan.conf.sample
+etc/yate/yate-gtk2.conf.sample
+etc/yate/yate.conf.sample
+etc/yate/yiaxchan.conf.sample
+etc/yate/yjinglechan.conf.sample
+etc/yate/yradius.conf.sample
+etc/yate/yrtpchan.conf.sample
+etc/yate/ysipchan.conf.sample
+etc/yate/ystunchan.conf.sample
+etc/yate/zapchan.conf.sample
 include/yate/yatecbase.h
 include/yate/yateclass.h
 include/yate/yatemime.h
@@ -36,9 +36,9 @@
 include/yate/yatephone.h
 include/yate/yateversn.h
 lib/libyate.so
+lib/libyate.so.1
 lib/libyate.so.1.2.0
 %%WITH_X11%%lib/menu/yate-gtk2.menu
-libdata/pkgconfig/yate.pc
 lib/yate/modules/help/0.yhlp
 lib/yate/modules/help/1.yhlp
 lib/yate/modules/help/2.yhlp
@@ -111,6 +111,7 @@
 lib/yate/scripts/libyatechan.php
 lib/yate/scripts/route.php
 lib/yate/scripts/voicemail.php
+libdata/pkgconfig/yate.pc
 sbin/yate
 sbin/yate-config
 %%WITH_X11%%share/applications/yate-gtk2.desktop
@@ -129,4 +130,4 @@
 @dirrm lib/yate
 %%WITH_X11%%@dirrm lib/menu
 @dirrm include/yate
- at dirrm etc/yate
+ at comment etc/yate


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



More information about the freebsd-ports-bugs mailing list