mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
o Don't call PIPSocket::SetDefaultIpAddressFamilyV6() - it causes all outgoing
TCP/UDP connections to be bound to IPv6 version of INADDR_ANY, which doesn't really work for PF_INET sockets. o use proper name for the shared library - libfoo.so.X, not libfoo.so.X.Y.
This commit is contained in:
parent
0c6b76e018
commit
611a734e77
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=167654
4 changed files with 41 additions and 9 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= asterisk-oh323
|
||||
PORTVERSION= 0.7.3
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.inaccessnetworks.com/projects/asterisk-oh323/download/
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
--- wrapper/Makefile.orig Wed Jan 18 11:00:26 2006
|
||||
+++ wrapper/Makefile Wed Jan 18 11:56:39 2006
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- wrapper/Makefile.orig
|
||||
+++ wrapper/Makefile
|
||||
@@ -62,7 +62,7 @@
|
||||
ifdef OH323_SUPPRESS_H235
|
||||
STDCCFLAGS += -DOH323_SUPPRESS_H235
|
||||
|
@ -9,7 +12,16 @@
|
|||
--no-print-directory -s \
|
||||
PWLIBDIR=$(PWLIBDIR) OPENH323DIR=$(OPENH323DIR) oh323ccflags)
|
||||
CPPFLAGS += $(OPENH323FLAGS)
|
||||
@@ -110,12 +110,12 @@
|
||||
@@ -103,22 +103,22 @@
|
||||
ifeq ($(OH323STAT),1)
|
||||
$(AR) rc liboh323wrap_s.a $(WRAPOBJECTS)
|
||||
else
|
||||
- $(CC) -shared -Wl,-soname,liboh323wrap.so -o liboh323wrap.so $(WRAPOBJECTS)
|
||||
+ $(CC) -shared -Wl,-soname,liboh323wrap.so.1 -o liboh323wrap.so.1 $(WRAPOBJECTS)
|
||||
+ ln -sfh liboh323wrap.so.1 liboh323wrap.so
|
||||
endif
|
||||
|
||||
strip:
|
||||
|
||||
install:
|
||||
if [ ! -d $(DESTDIR)$(OH323WRAPLIBDIR) ]; then \
|
||||
|
@ -21,7 +33,12 @@
|
|||
+ $(BSD_INSTALL_PROGRAM) liboh323wrap_s.a $(DESTDIR)$(OH323WRAPLIBDIR)
|
||||
else
|
||||
- $(INSTALL) liboh323wrap.so $(DESTDIR)$(OH323WRAPLIBDIR)
|
||||
+ $(BSD_INSTALL_PROGRAM) liboh323wrap.so $(DESTDIR)$(OH323WRAPLIBDIR)
|
||||
cd $(DESTDIR)$(OH323WRAPLIBDIR); rm -f ./liboh323wrap.so.1; rm -f ./liboh323wrap.so.1.1
|
||||
cd $(DESTDIR)$(OH323WRAPLIBDIR); ln -s liboh323wrap.so liboh323wrap.so.1
|
||||
cd $(DESTDIR)$(OH323WRAPLIBDIR); ln -s liboh323wrap.so liboh323wrap.so.1.1
|
||||
- cd $(DESTDIR)$(OH323WRAPLIBDIR); rm -f ./liboh323wrap.so.1; rm -f ./liboh323wrap.so.1.1
|
||||
- cd $(DESTDIR)$(OH323WRAPLIBDIR); ln -s liboh323wrap.so liboh323wrap.so.1
|
||||
- cd $(DESTDIR)$(OH323WRAPLIBDIR); ln -s liboh323wrap.so liboh323wrap.so.1.1
|
||||
+ $(BSD_INSTALL_PROGRAM) liboh323wrap.so.1 $(DESTDIR)$(OH323WRAPLIBDIR)
|
||||
+ cd $(DESTDIR)$(OH323WRAPLIBDIR); rm -f ./liboh323wrap.so
|
||||
+ cd $(DESTDIR)$(OH323WRAPLIBDIR); ln -s liboh323wrap.so.1 liboh323wrap.so
|
||||
endif
|
||||
|
||||
clean:
|
||||
|
|
16
net/asterisk-oh323/files/patch-wrapper::wrapper.cxx
Normal file
16
net/asterisk-oh323/files/patch-wrapper::wrapper.cxx
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
$FreeBSD$
|
||||
|
||||
--- wrapper/wrapper.cxx
|
||||
+++ wrapper/wrapper.cxx
|
||||
@@ -133,10 +133,6 @@
|
||||
{
|
||||
WRAPTRACE(4, "Starting...");
|
||||
PTrace::Initialise(log_lev, log_file);
|
||||
-#ifdef P_HAS_IPV6
|
||||
- if (PIPSocket::IsIpAddressFamilyV6Supported())
|
||||
- PIPSocket::SetDefaultIpAddressFamilyV6();
|
||||
-#endif
|
||||
endPoint = new WrapH323EndPoint(prefixes, prefix_num);
|
||||
//gkServer = new WrapGatekeeperServer((H323EndPoint &)*endPoint);
|
||||
gkServer = NULL;
|
|
@ -4,4 +4,3 @@ etc/asterisk/oh323.conf.sample
|
|||
lib/asterisk/modules/chan_oh323.so
|
||||
lib/liboh323wrap.so
|
||||
lib/liboh323wrap.so.1
|
||||
lib/liboh323wrap.so.1.1
|
||||
|
|
Loading…
Add table
Reference in a new issue