diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2007-09-23 12:34:40 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2007-09-23 12:34:40 +0000 |
commit | f9174c9de6fe769ee67ca838f98fddf1c8d0fd83 (patch) | |
tree | ab89a68a47327e144493c1beb056f752c0cf0833 | |
parent | 03fc0b4b47e86c5e518acaece24f98063aeb30d6 (diff) | |
download | ports-f9174c9de6fe769ee67ca838f98fddf1c8d0fd83.tar.gz ports-f9174c9de6fe769ee67ca838f98fddf1c8d0fd83.zip |
Notes
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/yate-devel/Makefile | 143 | ||||
-rw-r--r-- | net/yate-devel/distinfo | 3 | ||||
-rw-r--r-- | net/yate-devel/files/README.too | 161 | ||||
-rw-r--r-- | net/yate-devel/files/patch-Makefile.in | 13 | ||||
-rw-r--r-- | net/yate-devel/files/patch-clients_Makefile_in | 19 | ||||
-rw-r--r-- | net/yate-devel/files/patch-configure | 23 | ||||
-rw-r--r-- | net/yate-devel/files/patch-modules_Makefile_in | 77 | ||||
-rw-r--r-- | net/yate-devel/files/patch-modules_help_Makefile_in | 11 | ||||
-rw-r--r-- | net/yate-devel/files/patch-modules_skin_Makefile_in | 14 | ||||
-rw-r--r-- | net/yate-devel/files/patch-modules_zapchan_cpp | 12 | ||||
-rw-r--r-- | net/yate-devel/files/patch-test_Makefile_in | 11 | ||||
-rw-r--r-- | net/yate-devel/files/pkg-message.in | 21 | ||||
-rw-r--r-- | net/yate-devel/files/yate.sh.in | 45 | ||||
-rw-r--r-- | net/yate-devel/pkg-descr | 5 | ||||
-rw-r--r-- | net/yate-devel/pkg-install | 35 | ||||
-rw-r--r-- | net/yate-devel/pkg-plist | 132 |
17 files changed, 726 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index aefd97ee0a05..7f2b2a365eea 100644 --- a/net/Makefile +++ b/net/Makefile @@ -959,6 +959,7 @@ SUBDIR += xtraceroute SUBDIR += xwhois SUBDIR += yaph + SUBDIR += yate-devel SUBDIR += yaz SUBDIR += yaz++ SUBDIR += yazproxy diff --git a/net/yate-devel/Makefile b/net/yate-devel/Makefile new file mode 100644 index 000000000000..97958444d32b --- /dev/null +++ b/net/yate-devel/Makefile @@ -0,0 +1,143 @@ +# New ports collection makefile for: yate +# Date created: 2006-12-11 +# Whom: Balwinder S "bsd" Dheeman <bdheeman@hotmail.com> +# +# $FreeBSD$ +# + +PORTNAME= yate +DISTVERSION= 1.2.0.p4 +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/-/} + +MAINTAINER= bdheeman@hotmail.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_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" +MAKE_ENV= CXX="${CXX}" \ + PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" \ + PWLIBDIR=${LOCALBASE}/share/pwlib \ + OPENH323DIR=${LOCALBASE}/share/openh323 +MAN8= yate-config.8 yate.8 + +ONLY_FOR_ARCHS= amd64 i386 sparc64 + +OPTIONS= X11 "Build GUI client; yate-gtk2" on \ + MYSQL "MySQL Database support" off \ + PGSQL "PostgreSQL Database support" on \ + H323 "H323 software channel/protocol support" on \ + ZAPTEL "Zaptel hardware channel/driver support" on \ + FAX "Fax software channel/driver support" on + +DOCSDIR= ${LOCALBASE}/share/doc/yate +PORTDOCS= ${DOCSDIR}/* +PLIST_SUB= BRISTUFF="@comment " +SUB_FILES= pkg-message +USE_RC_SUBR= yate.sh +WRKSRC= ${WRKDIR}/${PORTNAME}-1.2.0 + +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_X11) +CONFIGURE_ARGS+= --with-libgtk2 +MAKE_ENV+= WITH_X11=1 +PLIST_SUB+= WITH_X11="" +USE_GNOME= gtk20 +.else +CONFIGURE_ARGS+= --without-libgtk2 +PLIST_SUB+= WITH_X11="@comment " +.endif + +.if !defined(WITHOUT_MYSQL) +MAKE_ENV+= WITH_MYSQL=1 +PLIST_SUB+= WITH_MYSQL="" +USE_MYSQL= yes +.else +CONFIGURE_ARGS+= --with-mysql=/none +PLIST_SUB+= WITH_MYSQL="@comment " +.endif + +.if !defined(WITHOUT_PGSQL) +CONFIGURE_ARGS+= --with-libpq=${LOCALBASE} +MAKE_ENV+= WITH_PGSQL=1 +PLIST_SUB+= WITH_PGSQL="" +USE_PGSQL= yes +.else +PLIST_SUB+= WITH_PGSQL="@comment " +.endif + +.if ${ARCH} != "i386" +WITHOUT_H323= 1 +WITHOUT_ZAPTEL= 1 +.endif + +.if !defined(WITHOUT_H323) +CONFIGURE_ARGS+= --with-pwlib=${LOCALBASE} \ + --with-openh323=${LOCALBASE} +LIB_DEPENDS+= pt_r.1:${PORTSDIR}/devel/pwlib \ + h323_r.1:${PORTSDIR}/net/openh323 +MAKE_ENV+= WITH_H323=1 +PLIST_SUB+= WITH_H323="" +.else +PLIST_SUB+= WITH_H323="@comment " +.endif + +.if !defined(WITHOUT_ZAPTEL) +BUILD_DEPENDS+= libpri>=1.2.0:${PORTSDIR}/misc/libpri \ + ${LOCALBASE}/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 +PLIST_SUB+= WITH_ZAPTEL="" +.else +MAKE_ENV+= WITHOUT_ZAPTEL=1 +PLIST_SUB+= WITH_ZAPTEL="@comment " +.endif + +.if !defined(WITHOUT_FAX) +LIB_DEPENDS+= spandsp.0:${PORTSDIR}/comms/spandsp-devel +MAKE_ENV+= WITH_FAX=1 +PLIST_SUB+= WITH_FAX="" +.else +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 + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/net/yate-devel/distinfo b/net/yate-devel/distinfo new file mode 100644 index 000000000000..092a514c2c10 --- /dev/null +++ b/net/yate-devel/distinfo @@ -0,0 +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 diff --git a/net/yate-devel/files/README.too b/net/yate-devel/files/README.too new file mode 100644 index 000000000000..ae066f288a25 --- /dev/null +++ b/net/yate-devel/files/README.too @@ -0,0 +1,161 @@ +Asterisk Open PBC/IVR Project using the Sangoma A101 and A102 cards +=================================================================== + +Alex Feldman: Aug 10 2005 +Nenad Corbic: + +WANPIPE supports the Asterisk Open PBX/IVR project through an interface +of the Zaptel family of hardware devices. These devices share a common +driver suite, called the ZAPATA Telephony Driver Suite (zaptel). + + +ASTERISK / ZAPTEL Installation +------------------------------- + +First install: + zaptel, and asterisk software on your system. + +The Zaptel module can be installed using one of the following methods: + +1. You can use ports collection or packages method of installation if you + want to install the latest stable release: + # cd /usr/ports/misc/zaptel/ + # make install + +2. You can also use nightly snapshot from sn repository + (http://www.portaone.com/~gonzo/zaptel-bsd-trunk.tar.gz). + +3. Subvestion repository: https://svn.bluezbox.repos/zaptel-bsd + svn co --username svn --password svn https://svn.bluezbox.com/repos/zaptel-bsd + +The Asterisk application can be installed from ports collection: + # cd asterisk + # make install + + + +WANPIPE Releases +---------------- + +2.8.2-1: Latest Wanpipe Release + + o First version of Sangoma driver for FreeBSD OS that + support Asterisk/Zaptel interface (AFT-A101/A102/A104 cards Only) + + + +WANPIPE Installation for Asterisk +--------------------------------- + +1. Download the LATEST Wanpipe 2.8.2 Release or Greater! + + Note: Wanpipe does not support Asterisk in releases + LOWER than 2.8.2! + + ftp.sangoma.com/FreeBSD/current_wanpipe + + +2. Install WANPIPE package + + eg: pkg_add wanpipe-2.8.2-1.tgz + + + Proceed with default installation options. + + IMPORTANT: + Under compilation mode: select CUSTOM + + Then select: DEF :for default protocols + TDM :for TDM Voice asterisk support + + Proceed to compile wanpipe drivers. + +4. To confirm successful installation run: + + wanrouter hwprobe + + Confirm that Sangoma cards have been found. + + Note: + Zaptel kernel drivers must be compiled and installed + BEFORE loading WANPIPE drivers. + + +WANPIPE Configuration for the A100 series of cards +-------------------------------------------------- + +You can use the A101/A102 or A104 cards for both data and voice. +The following describes how to configure the Asterisk system for +voice, with an auxiliary data interface, if needed. + +1. Run the configuration utility wancfg. + + /usr/sbin/wancfg + + Hardware Setup: + Select Hardware: AFT + + T1/E1 CSU/DSU Setup can be configured via + "Advanced Physical Medium Config" + + Protocol Setup: + Select Protocol: TDM VOICE + No other options + + Interface Setup: + Select: SPAN Number: 1-24 + The SPAN usually starts with 1 + + Select: Override Asterisk Echo Enable + Default: NO + + This optoin will DISABLE/Override Asterisk + ECHO Cancellation Cfg for this SPAN. + + Therefore, if you want to DISABLE Echo Cancellation + for this SPAN, ie: ignore what is configured in + zapata.conf, then set this option to YES. + + Used in switching applications where single SPAN + needs echo cancellation and rest do not. Therefore, + one would use this option to disable ECHO + cancellation on SPANS that don't need it. + + +Zaptel configuration +-------------------- + +Download the documentation how to configure Zaptel driver from + +(http://www.digium.com/downloads/configuring_zaptel.pdf). + +When configuring the Zaptel driver (/etc/zaptel.conf) + + 1) Select the same span configurations as you used for WANPIPE + (i.e. LBO, framing, coding parameters). + + Otherwise the Zaptel configuration is completely + standard, except that if there are data channels that + will be handled by WANPIPE, those channels should be ignored, + and not configured as 'nethdlc'. + + 2) If you are using multiple WANPIPE devices for Asterisk + + For example, an A102 card might be configured as: + + wanpipe1 and wanpipe2 + + then you need to set your starting scripts to start + the wanpipes in the same sequence as defined in zaptel.conf. + + Run: wanrouter wanrc + + to set the wanpipe startup order. + + 3) If you are using some channels for DATA + + You don't need to set the channel list for this + interface under /etc/zaptel.conf because all data will go + through the separate WANPIPE driver to the kernel. + +------------------------------------------------------------------- diff --git a/net/yate-devel/files/patch-Makefile.in b/net/yate-devel/files/patch-Makefile.in new file mode 100644 index 000000000000..b4059e965502 --- /dev/null +++ b/net/yate-devel/files/patch-Makefile.in @@ -0,0 +1,13 @@ +--- Makefile.in.orig Sun Sep 23 22:29:33 2007 ++++ Makefile.in Sun Sep 23 22:29:59 2007 +@@ -208,8 +208,8 @@ + for i in $(MAN8) ; do \ + install -m 0644 @srcdir@/$$i "$(DESTDIR)$(mandir)/man8/" ; \ + done +- @mkdir -p "$(DESTDIR)$(libdir)/pkgconfig/" && \ +- install -m 0644 yate.pc "$(DESTDIR)$(libdir)/pkgconfig/" ++ @mkdir -p "$(DESTDIR)$(libdir)data/pkgconfig/" && \ ++ install -m 0644 yate.pc "$(DESTDIR)$(libdir)data/pkgconfig/" + @mkdir -p "$(DESTDIR)$(incdir)/" && \ + for i in $(INCS) ; do \ + install -m 0644 @srcdir@/$$i "$(DESTDIR)$(incdir)/" ; \ diff --git a/net/yate-devel/files/patch-clients_Makefile_in b/net/yate-devel/files/patch-clients_Makefile_in new file mode 100644 index 000000000000..c28454224378 --- /dev/null +++ b/net/yate-devel/files/patch-clients_Makefile_in @@ -0,0 +1,19 @@ +diff -Naur clients/Makefile.in.orig clients/Makefile.in +--- clients/Makefile.in.orig 2007-01-17 17:19:15.000000000 +0000 ++++ clients/Makefile.in 2007-08-12 14:28:16.000000000 +0000 +@@ -65,13 +65,13 @@ + $(if $(MENUFILES),\ + @mkdir -p "$(DESTDIR)$(menudir)/" && \ + for i in $(MENUFILES) ; do \ +- install -D -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(menudir)/$$i" ; \ ++ install -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(menudir)/$$i" ; \ + done \ + ) + $(if $(DESKFILES),\ + @mkdir -p "$(DESTDIR)$(deskdir)/" && \ + for i in $(DESKFILES) ; do \ +- install -D -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(deskdir)/$$i" ; \ ++ install -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(deskdir)/$$i" ; \ + done \ + ) + diff --git a/net/yate-devel/files/patch-configure b/net/yate-devel/files/patch-configure new file mode 100644 index 000000000000..ace8eb82b4a1 --- /dev/null +++ b/net/yate-devel/files/patch-configure @@ -0,0 +1,23 @@ +diff -Naur configure.orig configure +--- configure.orig 2007-08-12 13:42:59.000000000 +0000 ++++ configure 2007-08-12 14:20:14.000000000 +0000 +@@ -6428,8 +6428,8 @@ + + ac_ext=cpp + ac_cpp='$CXXCPP $CPPFLAGS' +-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS -I/usr/local/include conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS -L/usr/local/lib conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + SAVE_CFLAGS="$CFLAGS" +@@ -6778,7 +6778,7 @@ + MODULE_CFLAGS="-fno-exceptions -fPIC $HAVE_GCC_FORMAT_CHECK" + MODULE_CPPFLAGS="-fno-check-new $RTTI_OPT $MODULE_CFLAGS" + MODULE_LDRELAX="-export-dynamic -shared" +-MODULE_LDFLAGS="$MODULE_LDRELAX $GCC_UNRESOLVED_SYMBOLS" ++MODULE_LDFLAGS="$MODULE_LDRELAX" + MODULE_SYMBOLS="-Wl,--retain-symbols-file,/dev/null" + + diff --git a/net/yate-devel/files/patch-modules_Makefile_in b/net/yate-devel/files/patch-modules_Makefile_in new file mode 100644 index 000000000000..f97657f60dc7 --- /dev/null +++ b/net/yate-devel/files/patch-modules_Makefile_in @@ -0,0 +1,77 @@ +--- modules/Makefile.in.orig Tue Jul 24 07:13:54 2007 ++++ modules/Makefile.in Sun Sep 23 22:16:11 2007 +@@ -11,7 +11,7 @@ + CXX := @CXX@ -Wall + SED := sed + DEFS := +-INCLUDES := -I.. -I@top_srcdir@ ++INCLUDES := -I. -I@top_srcdir@ -I%%LOCALBASE%%/include + CFLAGS := -O2 @MODULE_CFLAGS@ @INLINE_FLAGS@ + CPPFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@ + LDFLAGS:= -L.. -lyate +@@ -133,7 +133,7 @@ + install: all do-install + @mkdir -p "$(DESTDIR)$(moddir)/" && \ + for i in $(PROGS) ; do \ +- install -D "$$i" "$(DESTDIR)$(moddir)/$$i" ; \ ++ install "$$i" "$(DESTDIR)$(moddir)/$$i" ; \ + done; + + .PHONY: uninstall +@@ -175,32 +175,32 @@ + # Take special care of the modules that depend on optional libs + + zapchan.yate: libypri.o +-zapchan.yate: LOCALFLAGS = @ZAP_FLAGS@ ++zapchan.yate: LOCALFLAGS = @ZAP_FLAGS@ -L%%LOCALBASE%%/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: LOCALLIBS = libypri.o -lpri + + ysigchan.yate wpcard.yate zapcard.yate: ../libyatess7.so + ysigchan.yate wpcard.yate zapcard.yate: LOCALFLAGS = -I../contrib/yss7 + 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: LOCALLIBS = @H323_LIB@ + +-pgsqldb.yate: LOCALFLAGS = @PGSQL_INC@ ++pgsqldb.yate: LOCALFLAGS = @PGSQL_INC@ -L%%LOCALBASE%%/lib + pgsqldb.yate: LOCALLIBS = -lpq + +-mysqldb.yate: LOCALFLAGS = @MYSQL_INC@ ++mysqldb.yate: LOCALFLAGS = @MYSQL_INC@ -L%%LOCALBASE%%/lib + mysqldb.yate: LOCALLIBS = @MYSQL_LIB@ + +-enumroute.yate: LOCALLIBS = -lresolv ++enumroute.yate: LOCALLIBS = -L%%LOCALBASE%%/lib + + alsachan.yate: LOCALLIBS = -lasound + + yiaxchan.yate: ../contrib/yiax/libyateiax.a +-yiaxchan.yate: LOCALFLAGS = -I@top_srcdir@/contrib/yiax ++yiaxchan.yate: LOCALFLAGS = -I@top_srcdir@/contrib/yiax -L%%LOCALBASE%%/lib + yiaxchan.yate: LOCALLIBS = -L../contrib/yiax -lyateiax + + yjinglechan.yate: ../contrib/yxml/libyatexml.a ../contrib/yjingle/libyatejingle.a +@@ -219,13 +219,13 @@ + ilbccodec.yate: LOCALLIBS = ../contrib/ilbc/libilbc.a + ilbccodec.yate: LOCALFLAGS = @ILBC_INC@ + +-gsmcodec.yate: LOCALLIBS = -lgsm ++gsmcodec.yate: LOCALLIBS = -lgsm -L%%LOCALBASE%%/lib + gsmcodec.yate: LOCALFLAGS = @GSM_INC@ + +-speexcodec.yate: LOCALLIBS = -lspeex ++speexcodec.yate: LOCALLIBS = -lspeex -L%%LOCALBASE%%/lib + speexcodec.yate: LOCALFLAGS = @SPEEX_INC@ + +-faxchan.yate: LOCALLIBS = -lspandsp ++faxchan.yate: LOCALLIBS = -lspandsp -L%%LOCALBASE%%/lib + faxchan.yate: LOCALFLAGS = @SPANDSP_INC@ + + ysipchan.yate: ../contrib/ysip/libyatesip.a diff --git a/net/yate-devel/files/patch-modules_help_Makefile_in b/net/yate-devel/files/patch-modules_help_Makefile_in new file mode 100644 index 000000000000..49c08f362540 --- /dev/null +++ b/net/yate-devel/files/patch-modules_help_Makefile_in @@ -0,0 +1,11 @@ +--- modules/help/Makefile.in.orig Wed Dec 13 09:44:44 2006 ++++ modules/help/Makefile.in Wed Dec 13 09:44:50 2006 +@@ -23,7 +23,7 @@ + @lst="`cd @srcdir@; ls -1 -d *.yhlp`" ; \ + mkdir -p "$(DESTDIR)$(helpdir)/" && \ + for i in $$lst ; do \ +- install -D -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(helpdir)/$$i" ; \ ++ install -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(helpdir)/$$i" ; \ + done; + + uninstall: diff --git a/net/yate-devel/files/patch-modules_skin_Makefile_in b/net/yate-devel/files/patch-modules_skin_Makefile_in new file mode 100644 index 000000000000..411ae411a31f --- /dev/null +++ b/net/yate-devel/files/patch-modules_skin_Makefile_in @@ -0,0 +1,14 @@ +--- modules/skin/Makefile.in.orig Mon Nov 7 05:09:23 2005 ++++ modules/skin/Makefile.in Wed Dec 13 11:18:36 2006 +@@ -22,8 +22,10 @@ + install: + @lst="`cd @srcdir@; ls -1 -d */* | sed '/CVS\|\.orig/d'`" ; \ + mkdir -p "$(DESTDIR)$(skindir)/" && \ ++ mkdir -p "$(DESTDIR)$(skindir)/tabbed" && \ ++ mkdir -p "$(DESTDIR)$(skindir)/default" && \ + for i in $$lst ; do \ +- install -D -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(skindir)/$$i" ; \ ++ install -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(skindir)/$$i" ; \ + done; + + uninstall: diff --git a/net/yate-devel/files/patch-modules_zapchan_cpp b/net/yate-devel/files/patch-modules_zapchan_cpp new file mode 100644 index 000000000000..b53069802dfa --- /dev/null +++ b/net/yate-devel/files/patch-modules_zapchan_cpp @@ -0,0 +1,12 @@ +diff -Naur modules/zapchan.cpp.orig modules/zapchan.cpp +--- modules/zapchan.cpp.orig 2007-07-23 21:14:01.000000000 +0000 ++++ modules/zapchan.cpp 2007-08-12 17:26:03.000000000 +0000 +@@ -33,7 +33,7 @@ + #define __LINUX__ + #include <zaptel/zaptel.h> + #else +-#include <linux/zaptel.h> ++#include <zaptel/zaptel.h> + #endif + }; + diff --git a/net/yate-devel/files/patch-test_Makefile_in b/net/yate-devel/files/patch-test_Makefile_in new file mode 100644 index 000000000000..eee582794471 --- /dev/null +++ b/net/yate-devel/files/patch-test_Makefile_in @@ -0,0 +1,11 @@ +--- test/Makefile.in.orig Wed Mar 29 02:27:01 2006 ++++ test/Makefile.in Fri Dec 15 20:23:33 2006 +@@ -56,7 +56,7 @@ + install: all + @mkdir -p "$(DESTDIR)$(moddir)/" && \ + for i in $(PROGS) ; do \ +- install -D "$$i" "$(DESTDIR)$(moddir)/$$i" ; \ ++ install "$$i" "$(DESTDIR)$(moddir)/$$i" ; \ + done; + + .PHONY: uninstall diff --git a/net/yate-devel/files/pkg-message.in b/net/yate-devel/files/pkg-message.in new file mode 100644 index 000000000000..2d8e89f9e663 --- /dev/null +++ b/net/yate-devel/files/pkg-message.in @@ -0,0 +1,21 @@ +------------------------------------------------------------------------------- +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 manually start the yate server run (as root): + +# %%PREFIX%%/etc/rc.d/yate start + +To manually stop it: + +# %%PREFIX%%/etc/rc.d/yate stop + +Please note that it is still a "work in progress", so your bug reports +are welcome and will help to improve quality of this software. + +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 --git a/net/yate-devel/files/yate.sh.in b/net/yate-devel/files/yate.sh.in new file mode 100644 index 000000000000..7f03c6d2694d --- /dev/null +++ b/net/yate-devel/files/yate.sh.in @@ -0,0 +1,45 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: yate +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable the YATE: +# +# yate_enable="YES" +# + +. %%RC_SUBR%% + +name=yate +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/yate" +pidfile="/var/run/${name}.pid" +logfile="/var/log/yate/messages" +cdrfile=`awk -F= '/^file=.+/ {print $2}' %%PREFIX%%/etc/yate/cdrfile.conf` + +start_precmd="yate_prestart" +stop_postcmd="yate_poststop" + +yate_prestart() +{ + mkdir -p $(dirname $pidfile) + chown yate:yate $(dirname $pidfile) + mkdir -p $(dirname $cdrfile) + chown yate:yate $(dirname $cdrfile) + chown yate:yate $(dirname $logfile) +} + +yate_poststop() +{ + rm -f $pidfile +} + +yate_enable=${yate_enable="NO"} +yate_flags=${yate_flags-"-Du -d -l ${logfile} -p ${pidfile} -s"} + +load_rc_config ${name} +run_rc_command "$1" diff --git a/net/yate-devel/pkg-descr b/net/yate-devel/pkg-descr new file mode 100644 index 000000000000..e14c66099dd3 --- /dev/null +++ b/net/yate-devel/pkg-descr @@ -0,0 +1,5 @@ +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. + +WWW: http://YATE.null.ro/ diff --git a/net/yate-devel/pkg-install b/net/yate-devel/pkg-install new file mode 100644 index 000000000000..ed6b2307e3b6 --- /dev/null +++ b/net/yate-devel/pkg-install @@ -0,0 +1,35 @@ +#!/bin/sh +# $FreeBSD$ +# + +if [ "$2" != "PRE-INSTALL" ]; then + exit 0 +fi + +YATE_USER=yate +YATE_GROUP=${YATE_USER} +YATE_UID=204 +YATE_GID=${YATE_UID} + +if ! pw groupshow "${YATE_GROUP}" 2>/dev/null 1>&2; then + if pw groupadd ${YATE_GROUP} -g ${YATE_GID}; then + echo "Added group \"${YATE_GROUP}\"." + else + echo "Adding group \"${YATE_GROUP}\" failed..." + exit 1 + fi +fi + +if ! pw usershow "${YATE_USER}" 2>/dev/null 1>&2; then + if pw useradd ${YATE_USER} -u ${YATE_UID} -g ${YATE_GROUP} -h - \ + -s "/sbin/nologin" -d "/nonexistent" \ + -c "Yate Telephoney Server"; \ + then + echo "Added user \"${YATE_USER}\"." + else + echo "Adding user \"${YATE_USER}\" failed..." + exit 1 + fi +fi + +exit 0 diff --git a/net/yate-devel/pkg-plist b/net/yate-devel/pkg-plist new file mode 100644 index 000000000000..fbd9b6012e53 --- /dev/null +++ b/net/yate-devel/pkg-plist @@ -0,0 +1,132 @@ +%%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 +include/yate/yatecbase.h +include/yate/yateclass.h +include/yate/yatemime.h +include/yate/yatengine.h +include/yate/yatephone.h +include/yate/yateversn.h +lib/libyate.so +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 +lib/yate/modules/help/3.yhlp +lib/yate/modules/help/4.yhlp +lib/yate/modules/help/99.yhlp +lib/yate/modules/skin/default/gtk2client.rc +lib/yate/modules/skin/default/gtk2client.ui +lib/yate/modules/skin/default/skin.png +lib/yate/modules/skin/default/skin_g.png +lib/yate/modules/skin/default/skin_h.png +lib/yate/modules/skin/default/skin_n.png +lib/yate/modules/skin/default/skin_p.png +lib/yate/modules/skin/tabbed/book.png +lib/yate/modules/skin/tabbed/close.png +lib/yate/modules/skin/tabbed/configure.png +lib/yate/modules/skin/tabbed/down.png +lib/yate/modules/skin/tabbed/gtk2client.rc +lib/yate/modules/skin/tabbed/gtk2client.ui +lib/yate/modules/skin/tabbed/ok.png +lib/yate/modules/skin/tabbed/phone.png +lib/yate/modules/skin/tabbed/quest.png +lib/yate/modules/skin/tabbed/up.png +lib/yate/modules/skin/tabbed/user.png +lib/yate/modules/accfile.yate +lib/yate/modules/analyzer.yate +lib/yate/modules/callfork.yate +lib/yate/modules/callgen.yate +lib/yate/modules/cdrbuild.yate +lib/yate/modules/cdrfile.yate +lib/yate/modules/conference.yate +lib/yate/modules/dbpbx.yate +lib/yate/modules/dumbchan.yate +lib/yate/modules/enumroute.yate +lib/yate/modules/extmodule.yate +%%WITH_FAX%%lib/yate/modules/faxchan.yate +lib/yate/modules/gsmcodec.yate +%%WITH_H323%%lib/yate/modules/h323chan.yate +lib/yate/modules/ilbccodec.yate +lib/yate/modules/moh.yate +lib/yate/modules/msgsniff.yate +%%WITH_MYSQL%%lib/yate/modules/mysqldb.yate +lib/yate/modules/park.yate +lib/yate/modules/pbx.yate +lib/yate/modules/pbxassist.yate +%%WITH_PGSQL%%lib/yate/modules/pgsqldb.yate +lib/yate/modules/queues.yate +lib/yate/modules/randcall.yate +lib/yate/modules/regexroute.yate +lib/yate/modules/regfile.yate +lib/yate/modules/register.yate +lib/yate/modules/rmanager.yate +lib/yate/modules/sipfeatures.yate +lib/yate/modules/speexcodec.yate +lib/yate/modules/tonedetect.yate +lib/yate/modules/tonegen.yate +lib/yate/modules/wavefile.yate +lib/yate/modules/yiaxchan.yate +lib/yate/modules/yjinglechan.yate +lib/yate/modules/yradius.yate +lib/yate/modules/yrtpchan.yate +lib/yate/modules/ysipchan.yate +lib/yate/modules/ystunchan.yate +%%WITH_ZAPTEL%%lib/yate/modules/zapchan.yate +lib/yate/scripts/Yate.pm +lib/yate/scripts/leavemail.php +lib/yate/scripts/libvoicemail.php +lib/yate/scripts/libyate.php +lib/yate/scripts/libyate.py +lib/yate/scripts/libyatechan.php +lib/yate/scripts/route.php +lib/yate/scripts/voicemail.php +sbin/yate +sbin/yate-config +%%WITH_X11%%share/applications/yate-gtk2.desktop +share/doc/yate/COPYING +share/doc/yate/ChangeLog +share/doc/yate/README +share/doc/yate/README.too +@dirrm share/nls/en_US.US-ASCII +@dirrm share/nls/POSIX +@dirrm lib/yate/scripts +@dirrm lib/yate/modules/skin/tabbed +@dirrm lib/yate/modules/skin/default +@dirrm lib/yate/modules/skin +@dirrm lib/yate/modules/help +@dirrm lib/yate/modules +@dirrm lib/yate +%%WITH_X11%%@dirrm lib/menu +@dirrm include/yate +@dirrm etc/yate |