aboutsummaryrefslogtreecommitdiff
path: root/net/yate/files
diff options
context:
space:
mode:
authorFlorian Smeets <flo@FreeBSD.org>2011-05-22 12:38:03 +0000
committerFlorian Smeets <flo@FreeBSD.org>2011-05-22 12:38:03 +0000
commitff837fa948fe421bfa2e0232e257f49f3a7c6c06 (patch)
treeed4b0e02c8a4e0ffee3ed16947454043adce464e /net/yate/files
parent316124566da7b18bbec39e55686cd7dac65f3f7d (diff)
downloadports-ff837fa948fe421bfa2e0232e257f49f3a7c6c06.tar.gz
ports-ff837fa948fe421bfa2e0232e257f49f3a7c6c06.zip
- add a current version of yate (3.3.2p1). This is not a repocopy of
net/yate-devel as net/yate already existed in the repository. - register in UIDs/GIDs (uses same UID/GID as yate-devel) PR: ports/156248 Submitted by: Valeriy Komaorv <komarov@valerka.net>
Notes
Notes: svn path=/head/; revision=274437
Diffstat (limited to 'net/yate/files')
-rw-r--r--net/yate/files/extra-patch-noalsa23
-rw-r--r--net/yate/files/extra-patch-noportdocs20
-rw-r--r--net/yate/files/patch-Makefile.in46
-rw-r--r--net/yate/files/patch-conf.d__Makefile.in19
-rw-r--r--net/yate/files/patch-configure.in47
-rw-r--r--net/yate/files/patch-modules__Makefile.in11
-rw-r--r--net/yate/files/patch-modules__h323chan.cpp11
-rw-r--r--net/yate/files/pkg-message.in15
-rw-r--r--net/yate/files/yate.sh.in46
9 files changed, 238 insertions, 0 deletions
diff --git a/net/yate/files/extra-patch-noalsa b/net/yate/files/extra-patch-noalsa
new file mode 100644
index 000000000000..a60023bd5426
--- /dev/null
+++ b/net/yate/files/extra-patch-noalsa
@@ -0,0 +1,23 @@
+--- ./configure.in.orig 2011-04-13 18:04:28.000000000 +0400
++++ ./configure.in 2011-04-13 18:04:59.000000000 +0400
+@@ -609,20 +609,6 @@
+
+ HAVE_ALSA=no
+ AC_MSG_CHECKING([for ALSA headers])
+-AC_TRY_COMPILE([
+-#if defined(__linux__)
+-#include <linux/soundcard.h>
+-#elif defined (__FreeBSD__)
+-#include <sys/soundcard.h>
+-#else
+-#include <soundcard.h>
+-#endif
+-
+-#define ALSA_PCM_NEW_HW_PARAMS_API
+-#include <alsa/asoundlib.h>
+-],[],
+-HAVE_ALSA="yes"
+-)
+ AC_MSG_RESULT([$HAVE_ALSA])
+ AC_SUBST(HAVE_ALSA)
+
diff --git a/net/yate/files/extra-patch-noportdocs b/net/yate/files/extra-patch-noportdocs
new file mode 100644
index 000000000000..a2576c624003
--- /dev/null
+++ b/net/yate/files/extra-patch-noportdocs
@@ -0,0 +1,20 @@
+--- Makefile.in.orig 2011-05-22 13:58:34.738173251 +0200
++++ Makefile.in 2011-05-22 13:59:26.136171443 +0200
+@@ -228,17 +228,9 @@
+ done
+ @for i in $(GENS) ; do \
+ install -m 0644 $$i "$(DESTDIR)$(incdir)/" ; \
+- done
+- @mkdir -p "$(DESTDIR)$(docdir)/api/" && \
+- for i in $(DOCS) ; do \
+- install -m 0644 @srcdir@/$$i "$(DESTDIR)$(docdir)/" ; \
+ done ;
+
+ install-api: $(APIDOCS)
+- @mkdir -p "$(DESTDIR)$(docdir)/api/" && \
+- install -m 0644 @srcdir@/docs/*.html "$(DESTDIR)$(docdir)/" && \
+- test -z "$(APIDOCS)" || \
+- install -m 0644 @srcdir@/docs/api/*.* "$(DESTDIR)$(docdir)/api/"
+
+ uninstall uninstall-root:
+ @-for i in $(SLIBS) ; do \
diff --git a/net/yate/files/patch-Makefile.in b/net/yate/files/patch-Makefile.in
new file mode 100644
index 000000000000..0a0c449059bc
--- /dev/null
+++ b/net/yate/files/patch-Makefile.in
@@ -0,0 +1,46 @@
+--- ./Makefile.in.orig 2011-03-18 22:46:29.000000000 +0300
++++ ./Makefile.in 2011-04-13 15:25:28.000000000 +0400
+@@ -20,7 +20,7 @@
+ MKDEPS := ./config.status
+ PROGS:= yate
+ YLIB := libyate.so.@PACKAGE_VERSION@
+-SLIBS:= $(YLIB) libyate.so \
++SLIBS:= $(YLIB) libyate.so libyate.so.3 \
+ libyatesig.so.@PACKAGE_VERSION@ libyatesig.so \
+ libyatemgcp.so.@PACKAGE_VERSION@ libyatemgcp.so \
+ libyatejabber.so.@PACKAGE_VERSION@ libyatejabber.so
+@@ -47,7 +47,7 @@
+ libdir = @libdir@
+ incdir = @includedir@/yate
+ mandir = @mandir@
+-docdir = @datadir@/doc/yate-@PACKAGE_VERSION@
++docdir = @datadir@/doc/yate
+ vardir = @localstatedir@/lib/yate
+ moddir = @libdir@/yate
+ shrdir = $(datadir)/yate
+@@ -221,7 +221,7 @@
+ install -m 0644 @srcdir@/docs/man/$$i "$(DESTDIR)$(mandir)/man8/" ; \
+ done
+ @mkdir -p "$(DESTDIR)$(libdir)/pkgconfig/" && \
+- install -m 0644 yate.pc "$(DESTDIR)$(libdir)/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)/" ; \
+@@ -249,7 +249,7 @@
+ @-for i in $(PROGS) yate-config ; do \
+ rm "$(DESTDIR)$(bindir)/$$i" ; \
+ done
+- @-rm "$(DESTDIR)$(libdir)/pkgconfig/yate.pc" && \
++ @-rm "$(DESTDIR)$(libdir)data/pkgconfig/yate.pc" && \
+ rmdir $(DESTDIR)$(libdir)/pkgconfig
+ @-for i in $(INCS) $(GENS) ; do \
+ rm "$(DESTDIR)$(incdir)/$$i" ; \
+@@ -324,6 +324,7 @@
+
+ libyate.so: $(YLIB)
+ ln -sf $^ $@
++ ln -sf $^ $@\.3
+
+ .PHONY: library
+ library $(YLIB): yatepaths.h
diff --git a/net/yate/files/patch-conf.d__Makefile.in b/net/yate/files/patch-conf.d__Makefile.in
new file mode 100644
index 000000000000..5a37e087e2d0
--- /dev/null
+++ b/net/yate/files/patch-conf.d__Makefile.in
@@ -0,0 +1,19 @@
+--- ./conf.d/Makefile.in.orig 2009-09-19 17:55:58.000000000 +0400
++++ ./conf.d/Makefile.in 2011-04-13 15:25:28.000000000 +0400
+@@ -20,14 +20,14 @@
+ lst="`ls -1 @srcdir@/*.conf @srcdir@/*.sample @srcdir@/*.default 2>/dev/null | 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 --git a/net/yate/files/patch-configure.in b/net/yate/files/patch-configure.in
new file mode 100644
index 000000000000..bfb8bb575a03
--- /dev/null
+++ b/net/yate/files/patch-configure.in
@@ -0,0 +1,47 @@
+--- ./configure.in.orig 2011-04-12 18:04:04.000000000 +0400
++++ ./configure.in 2011-04-13 15:25:28.000000000 +0400
+@@ -476,7 +476,7 @@
+ AC_SUBST(MYSQL_VER)
+
+ HAVE_ZAP=no
+-ZAP_FLAGS=""
++ZAP_FLAGS="-I/usr/local/include"
+ AC_ARG_ENABLE(dahdi,AC_HELP_STRING([--enable-dahdi],[Enable Dahdi driver (default: yes)]),want_dahdi=$enableval,want_dahdi=yes)
+ if [[ "x$want_dahdi" = "xyes" ]]; then
+ AC_MSG_CHECKING([for Dahdi generic headers])
+@@ -494,7 +494,7 @@
+ #include <zaptel/zaptel.h>
+ ],[],
+ HAVE_ZAP="yes"
+-ZAP_FLAGS="-DNEW_ZAPTEL_LOCATION -DHAVE_ZAP"
++ZAP_FLAGS="-DNEW_ZAPTEL_LOCATION -DHAVE_ZAP -I/usr/local/include"
+ )
+ AC_MSG_RESULT([$HAVE_ZAP])
+ if [[ "x$HAVE_ZAP" = "xno" ]]; then
+@@ -503,7 +503,7 @@
+ #include <linux/zaptel.h>
+ ],[],
+ HAVE_ZAP="yes"
+-ZAP_FLAGS="-DHAVE_ZAP"
++ZAP_FLAGS="-DHAVE_ZAP -I/usr/local/include"
+ )
+ AC_MSG_RESULT([$HAVE_ZAP])
+ fi
+@@ -731,7 +731,7 @@
+ )
+ CFLAGS="$SAVE_CFLAGS"
+ if [[ "x$HAVE_SPEEX" = "xyes" ]]; then
+- SPEEX_INC="-I$ac_cv_use_libspeex"
++ SPEEX_INC="-I$ac_cv_use_libspeex -I/usr/local/include"
+ fi
+ fi
+ AC_MSG_RESULT([$HAVE_SPEEX])
+@@ -911,7 +911,7 @@
+ PWLIB_INC="-I$ac_cv_use_pwlib/include" # Base dir, ok for ptlib
+ if [[ "$vpw" '<' "02.00.00" ]]; then
+ # Pwlib-1.xm no ptlib (2.x) install into ptlib
+- PWLIB_INC="$PWLIB_INC/ptlib"
++ PWLIB_INC="$PWLIB_INC $PWLIB_INC/ptlib"
+ if [[ "$vpw" '<' "01.06.00" ]]; then
+ # Very old pwlib needs more includes.
+ PWLIB_INC="$PWLIB_INC/unix/ptlib $PWLIB_INC/unix $PWLIB_INC"
diff --git a/net/yate/files/patch-modules__Makefile.in b/net/yate/files/patch-modules__Makefile.in
new file mode 100644
index 000000000000..5272d97495ea
--- /dev/null
+++ b/net/yate/files/patch-modules__Makefile.in
@@ -0,0 +1,11 @@
+--- ./modules/Makefile.in.orig 2011-03-03 17:48:39.000000000 +0300
++++ ./modules/Makefile.in 2011-04-13 15:26:16.000000000 +0400
+@@ -32,7 +32,7 @@
+ ZLIB_LIB := @ZLIB_LIB@
+ SED := sed
+ DEFS :=
+-INCLUDES := -I.. -I@top_srcdir@
++INCLUDES := -I.. -I@top_srcdir@ -I${LOCALBASE}/include
+ CFLAGS := @CFLAGS@ @MODULE_CFLAGS@ @INLINE_FLAGS@
+ CPPFLAGS := @CFLAGS@ @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@
diff --git a/net/yate/files/patch-modules__h323chan.cpp b/net/yate/files/patch-modules__h323chan.cpp
new file mode 100644
index 000000000000..6f91c4c3f7bd
--- /dev/null
+++ b/net/yate/files/patch-modules__h323chan.cpp
@@ -0,0 +1,11 @@
+--- ./modules/h323chan.cpp.orig 2011-03-31 14:30:48.000000000 +0400
++++ ./modules/h323chan.cpp 2011-04-13 15:25:28.000000000 +0400
+@@ -646,7 +646,7 @@
+ static void ListRegisteredCaps(int level)
+ {
+ PFactory<H323Capability>::KeyList_T list = PFactory<H323Capability>::GetKeyList();
+-#if (OPENH323_NUMVERSION >= 12000)
++#if (OPENH323_NUMVERSION >= 11900)
+ for (PFactory<H323Capability>::KeyList_T::const_iterator find = list.begin(); find != list.end(); ++find)
+ Debug(level,"Registed capability: '%s'",find->c_str());
+ #else
diff --git a/net/yate/files/pkg-message.in b/net/yate/files/pkg-message.in
new file mode 100644
index 000000000000..7b8fe2156ad0
--- /dev/null
+++ b/net/yate/files/pkg-message.in
@@ -0,0 +1,15 @@
+=========================================================================
+IMPORTANT! MAKE SURE TO READ THE FOLLOWING!
+
+To start the YATE sever automatically when the system is started, append
+the following in your /etc/rc.conf file:
+
+yate_enable="YES" # YATE iPBX/Softswitch server
+
+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
+
+=========================================================================
diff --git a/net/yate/files/yate.sh.in b/net/yate/files/yate.sh.in
new file mode 100644
index 000000000000..b006182240bd
--- /dev/null
+++ b/net/yate/files/yate.sh.in
@@ -0,0 +1,46 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: yate
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable the YATE:
+#
+# yate_enable="YES"
+#
+
+. /etc/rc.subr
+
+name=yate
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/bin/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)
+ mkdir -p $(dirname $logfile)
+ 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"