Thu Aug 13 09:24:25 2020 UTC ()
asterisk16: Update to 16.12.0

Changelog:
 Bugs fixed in this release:

-----------------------------------
[ASTERISK-28878] -
		chan_pjsip: PJSIP_MEDIA_OFFER Broken asterisk 16
(Reported by Joseph Ades)
[ASTERISK-28965] -
		res_pjsip: Apply outbound proxy to static contacts on AOR
(Reported by Joshua C. Colp)
[ASTERISK-28930] -
		./configure --without-ssl build failure
(Reported by Jaco Kroon)
[ASTERISK-28886] -
		chan_pjsip: PJSIP_SC_NULL does not exist in pjproject 2.7.2
(Reported by Jared Smith)
[ASTERISK-28957] -
		chan_sip: chan_sip does not process 400 response to an INVITE.
(Reported by Frederic LE FOLL)
[ASTERISK-28888] -
		res_corosync: causes asterisk crash in huge distributed environment.
(Reported by Università di Bologna - CESIA VoIP)
[ASTERISK-28955] -
		"setvar" doesn't work properly in dahdi-channels.conf
(Reported by Marin Odrljin)
[ASTERISK-28954] -
		StreamEcho() only returns 1 active stream
(Reported by Bill Kervaski)
[ASTERISK-28942] -
		res_sorcery_memory_cache: Individual object expiration behaves unexpectedly with full backend caching
(Reported by Joshua C. Colp)
[ASTERISK-28953] -
		res_pjsip_session: Preserve stream label
(Reported by Joshua C. Colp)
[ASTERISK-28952] -
		Queue wrapuptime sometimes not respected (based on stale lastcall time)
(Reported by Walter Doekes)
[ASTERISK-28950] -
		Stale code in app_queue to check untouched channel
(Reported by Walter Doekes)
[ASTERISK-28644] -
		Stale comment in app_queue about ring_entry exception
(Reported by Walter Doekes)
[ASTERISK-28948] -
		ARI channel create doesn't referencing the channel_id parameter
(Reported by sungtae kim)
[ASTERISK-28938] -
		core_unreal / core_local: Add support for multistream and re-negotiation
(Reported by Joshua C. Colp)
[ASTERISK-28939] -
		res_rtp_asterisk: Don't have send/receive buffers on non-WebRTC
(Reported by Joshua C. Colp)
[ASTERISK-28944] -
		bridge_softmix: Transitioning a stream from inactive -> sendrecv/sendonly doesn't re-negotiation
(Reported by Joshua C. Colp)
[ASTERISK-28923] -
		T.38 Segfaults in chan_pjsip_queryoption
(Reported by Yury Kirsanov)
[ASTERISK-28940] -
		/channels/create doesn't get any parameters from the body
(Reported by sungtae kim)
[ASTERISK-28936] -
		res_pjsip: crash when dialing non-sip uri
(Reported by Walter Doekes)
[ASTERISK-28900] -
		res_fax: Double frame free when gateway in use with off-nominal format usage
(Reported by Gregory Massel)
[ASTERISK-28929] -
		pjproject_bundled: Honor --without-pjproject.
(Reported by Alexander Traud)
[ASTERISK-28932] -
		res_pjsip_logger writing too big packets
(Reported by nappsoft)
[ASTERISK-28921] -
		Wrong return value check for fwrite when writing to pcap file
(Reported by nappsoft)

Improvements made in this release:

-----------------------------------
[ASTERISK-28959] -
		res_pjsip: Added option for disable rport parameter set
(Reported by sungtae kim)
[ASTERISK-28958] -
		Continue reading string when ping received by websocket
(Reported by Nickolay V. Shmyrev)
[ASTERISK-28945] -
		AMI SendText - add Content-Type parameter
(Reported by Kevin Harwell)
[ASTERISK-28949] -
		res_http_websocket: Add masking to websocket client
(Reported by Moises Silva)
[ASTERISK-28899] -
		Upgrade Asterisk to bundled pjproject 2.10
(Reported by Kevin Harwell)


(ryoon)
diff -r1.66 -r1.67 pkgsrc/comms/asterisk16/Makefile
diff -r1.35 -r1.36 pkgsrc/comms/asterisk16/distinfo
diff -r1.2 -r1.3 pkgsrc/comms/asterisk16/patches/patch-configure
diff -r1.1 -r1.2 pkgsrc/comms/asterisk16/patches/patch-configure.ac

cvs diff -r1.66 -r1.67 pkgsrc/comms/asterisk16/Makefile (switch to unified diff)

--- pkgsrc/comms/asterisk16/Makefile 2020/06/12 16:23:53 1.66
+++ pkgsrc/comms/asterisk16/Makefile 2020/08/13 09:24:25 1.67
@@ -1,312 +1,312 @@ @@ -1,312 +1,312 @@
1# $NetBSD: Makefile,v 1.66 2020/06/12 16:23:53 ryoon Exp $ 1# $NetBSD: Makefile,v 1.67 2020/08/13 09:24:25 ryoon Exp $
2# 2#
3# NOTE: when updating this package, there are two places that sound 3# NOTE: when updating this package, there are two places that sound
4# tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile 4# tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
5# to find out the current sound file versions 5# to find out the current sound file versions
6 6
7DISTNAME= asterisk-16.11.0 7DISTNAME= asterisk-16.12.0
8CATEGORIES= comms net audio 8CATEGORIES= comms net audio
9MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ 9MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/
10MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ 10MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
11MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/sounds/releases/ 11MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/sounds/releases/
12DIST_SUBDIR= ${PKGNAME_NOREV} 12DIST_SUBDIR= ${PKGNAME_NOREV}
13DISTFILES= ${DEFAULT_DISTFILES} 13DISTFILES= ${DEFAULT_DISTFILES}
14 14
15COMMENT= The Asterisk Software PBX 15COMMENT= The Asterisk Software PBX
16LICENSE= gnu-gpl-v2 16LICENSE= gnu-gpl-v2
17 17
18EXTRACT_ONLY= ${DISTNAME}.tar.gz 18EXTRACT_ONLY= ${DISTNAME}.tar.gz
19MAINTAINER= ryoon@NetBSD.org 19MAINTAINER= ryoon@NetBSD.org
20HOMEPAGE= https://www.asterisk.org/ 20HOMEPAGE= https://www.asterisk.org/
21 21
22MAKE_JOBS_SAFE= NO 22MAKE_JOBS_SAFE= NO
23 23
24# known to have issues on i386, block the package until the bug is fixed 24# known to have issues on i386, block the package until the bug is fixed
25BROKEN_ON_PLATFORM= NetBSD-*-i386 25BROKEN_ON_PLATFORM= NetBSD-*-i386
26 26
27CONFLICTS+= asterisk-sounds-extra-[0-9]* 27CONFLICTS+= asterisk-sounds-extra-[0-9]*
28 28
29.include "../../mk/bsd.prefs.mk" 29.include "../../mk/bsd.prefs.mk"
30 30
31USE_TOOLS+= bison gmake perl:run pkg-config tar bash:run 31USE_TOOLS+= bison gmake perl:run pkg-config tar bash:run
32USE_LANGUAGES= c c++ 32USE_LANGUAGES= c c++
33REPLACE_BASH+= contrib/scripts/astversion 33REPLACE_BASH+= contrib/scripts/astversion
34REPLACE_BASH+= contrib/scripts/ast_coredumper 34REPLACE_BASH+= contrib/scripts/ast_coredumper
35REPLACE_BASH+= contrib/scripts/ast_logescalator 35REPLACE_BASH+= contrib/scripts/ast_logescalator
36REPLACE_BASH+= contrib/scripts/ast_loggrabber 36REPLACE_BASH+= contrib/scripts/ast_loggrabber
37REPLACE_PERL+= agi/DialAnMp3.agi agi/agi-test.agi 37REPLACE_PERL+= agi/DialAnMp3.agi agi/agi-test.agi
38REPLACE_PERL+= agi/fastagi-test agi/jukebox.agi agi/numeralize 38REPLACE_PERL+= agi/fastagi-test agi/jukebox.agi agi/numeralize
39REPLACE_PERL+= contrib/scripts/vmail.cgi 39REPLACE_PERL+= contrib/scripts/vmail.cgi
40REPLACE_PYTHON+= contrib/scripts/*.py 40REPLACE_PYTHON+= contrib/scripts/*.py
41 41
42CHECK_INTERPRETER_SKIP+= libdata/asterisk/scripts/refcounter.py 42CHECK_INTERPRETER_SKIP+= libdata/asterisk/scripts/refcounter.py
43 43
44GNU_CONFIGURE= yes 44GNU_CONFIGURE= yes
45CONFIGURE_ARGS+= --datarootdir=${PREFIX}/libdata 45CONFIGURE_ARGS+= --datarootdir=${PREFIX}/libdata
46CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} 46CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
47CONFIGURE_ARGS+= --without-gtk2 47CONFIGURE_ARGS+= --without-gtk2
48# XXX remove when lang/lua gets builtin.mk 48# XXX remove when lang/lua gets builtin.mk
49CONFIGURE_ARGS+= --without-lua 49CONFIGURE_ARGS+= --without-lua
50 50
51PLIST_VARS+= srtp 51PLIST_VARS+= srtp
52.if (${OPSYS} == "NetBSD" && \ 52.if (${OPSYS} == "NetBSD" && \
53 (empty(OS_VERSION:M6.99.[4-9]?) && empty(OS_VERSION:M[7-9].*))) 53 (empty(OS_VERSION:M6.99.[4-9]?) && empty(OS_VERSION:M[7-9].*)))
54CONFIGURE_ARGS+= --without-srtp 54CONFIGURE_ARGS+= --without-srtp
55.else 55.else
56CONFIGURE_ARGS+= --with-srtp 56CONFIGURE_ARGS+= --with-srtp
57PLIST.srtp= YES 57PLIST.srtp= YES
58.include "../../comms/srtp/buildlink3.mk" 58.include "../../comms/srtp/buildlink3.mk"
59.endif 59.endif
60 60
61INSTALL_TARGET= install samples 61INSTALL_TARGET= install samples
62INSTALLATION_DIRS+= lib/pkgconfig share/doc/${PKGBASE} 62INSTALLATION_DIRS+= lib/pkgconfig share/doc/${PKGBASE}
63INSTALLATION_DIRS+= share/examples/asterisk share/examples/rc.d 63INSTALLATION_DIRS+= share/examples/asterisk share/examples/rc.d
64INSTALLATION_DIRS+= ${ASTDATADIR}/sounds/en ${ASTDATADIR}/moh 64INSTALLATION_DIRS+= ${ASTDATADIR}/sounds/en ${ASTDATADIR}/moh
65 65
66BUILD_DEFS+= VARBASE 66BUILD_DEFS+= VARBASE
67 67
68ASTERISK_USER?= asterisk 68ASTERISK_USER?= asterisk
69ASTERISK_GROUP?= asterisk 69ASTERISK_GROUP?= asterisk
70PKG_GROUPS= ${ASTERISK_GROUP} 70PKG_GROUPS= ${ASTERISK_GROUP}
71PKG_USERS= ${ASTERISK_USER}:${ASTERISK_GROUP} 71PKG_USERS= ${ASTERISK_USER}:${ASTERISK_GROUP}
72PKG_GECOS.${ASTERISK_USER}= Asterisk PBX 72PKG_GECOS.${ASTERISK_USER}= Asterisk PBX
73PKG_GROUPS_VARS= ASTERISK_GROUP 73PKG_GROUPS_VARS= ASTERISK_GROUP
74PKG_USERS_VARS= ASTERISK_USER 74PKG_USERS_VARS= ASTERISK_USER
75FILES_SUBST+= ASTERISK_USER=${ASTERISK_USER} 75FILES_SUBST+= ASTERISK_USER=${ASTERISK_USER}
76FILES_SUBST+= ASTERISK_GROUP=${ASTERISK_GROUP} 76FILES_SUBST+= ASTERISK_GROUP=${ASTERISK_GROUP}
77MESSAGE_SUBST+= ASTERISK_USER=${ASTERISK_USER} 77MESSAGE_SUBST+= ASTERISK_USER=${ASTERISK_USER}
78MESSAGE_SUBST+= ASTERISK_GROUP=${ASTERISK_GROUP} 78MESSAGE_SUBST+= ASTERISK_GROUP=${ASTERISK_GROUP}
79 79
80# Various path settings for Asterisk 80# Various path settings for Asterisk
81PKG_SYSCONFSUBDIR= asterisk 81PKG_SYSCONFSUBDIR= asterisk
82PKG_SYSCONFDIR_PERMS= ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 82PKG_SYSCONFDIR_PERMS= ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
83ASTETCDIR= ${PKG_SYSCONFDIR} 83ASTETCDIR= ${PKG_SYSCONFDIR}
84ASTEXAMPLEDIR= ${PREFIX}/share/examples/asterisk 84ASTEXAMPLEDIR= ${PREFIX}/share/examples/asterisk
85ASTDBDIR= ${VARBASE}/db/asterisk 85ASTDBDIR= ${VARBASE}/db/asterisk
86ASTSPOOLDIR= ${VARBASE}/spool/asterisk 86ASTSPOOLDIR= ${VARBASE}/spool/asterisk
87ASTLOGDIR= ${VARBASE}/log/asterisk 87ASTLOGDIR= ${VARBASE}/log/asterisk
88MESSAGE_SUBST+= ASTDBDIR=${ASTDBDIR} 88MESSAGE_SUBST+= ASTDBDIR=${ASTDBDIR}
89MESSAGE_SUBST+= ASTSPOOLDIR=${ASTSPOOLDIR} 89MESSAGE_SUBST+= ASTSPOOLDIR=${ASTSPOOLDIR}
90MESSAGE_SUBST+= ASTLOGDIR=${ASTLOGDIR} 90MESSAGE_SUBST+= ASTLOGDIR=${ASTLOGDIR}
91ASTVARRUNDIR= ${VARBASE}/run/asterisk 91ASTVARRUNDIR= ${VARBASE}/run/asterisk
92FILES_SUBST+= ASTVARRUNDIR=${ASTVARRUNDIR} 92FILES_SUBST+= ASTVARRUNDIR=${ASTVARRUNDIR}
93ASTDATADIR= ${PREFIX}/libdata/asterisk 93ASTDATADIR= ${PREFIX}/libdata/asterisk
94MAKE_FLAGS+= ASTLIBDIR=${PREFIX}/lib/asterisk 94MAKE_FLAGS+= ASTLIBDIR=${PREFIX}/lib/asterisk
95MAKE_FLAGS+= ASTVARLIBDIR=${ASTDATADIR} 95MAKE_FLAGS+= ASTVARLIBDIR=${ASTDATADIR}
96MAKE_FLAGS+= ASTKEYDIR=${ASTDATADIR} 96MAKE_FLAGS+= ASTKEYDIR=${ASTDATADIR}
97MAKE_FLAGS+= ASTDATADIR=${ASTDATADIR} 97MAKE_FLAGS+= ASTDATADIR=${ASTDATADIR}
98MAKE_FLAGS+= ASTSPOOLDIR=${ASTSPOOLDIR} 98MAKE_FLAGS+= ASTSPOOLDIR=${ASTSPOOLDIR}
99MAKE_FLAGS+= ASTLOGDIR=${ASTLOGDIR} 99MAKE_FLAGS+= ASTLOGDIR=${ASTLOGDIR}
100MAKE_FLAGS+= ASTHEADERDIR=${PREFIX}/include/asterisk 100MAKE_FLAGS+= ASTHEADERDIR=${PREFIX}/include/asterisk
101MAKE_FLAGS+= ASTCONFPATH=${ASTETCDIR}/asterisk.conf 101MAKE_FLAGS+= ASTCONFPATH=${ASTETCDIR}/asterisk.conf
102MAKE_FLAGS+= ASTBINDIR=${PREFIX}/bin 102MAKE_FLAGS+= ASTBINDIR=${PREFIX}/bin
103MAKE_FLAGS+= ASTSBINDIR=${PREFIX}/sbin 103MAKE_FLAGS+= ASTSBINDIR=${PREFIX}/sbin
104MAKE_FLAGS+= ASTVARRUNDIR=${ASTVARRUNDIR} 104MAKE_FLAGS+= ASTVARRUNDIR=${ASTVARRUNDIR}
105MAKE_FLAGS+= ASTMANDIR=${PREFIX}/${PKGMANDIR} 105MAKE_FLAGS+= ASTMANDIR=${PREFIX}/${PKGMANDIR}
106MAKE_FLAGS+= ASTETCDIR=${ASTETCDIR} 106MAKE_FLAGS+= ASTETCDIR=${ASTETCDIR}
107MAKE_FLAGS+= ASTDBDIR=${ASTDBDIR} 107MAKE_FLAGS+= ASTDBDIR=${ASTDBDIR}
108MAKE_FLAGS+= AGI_DIR=${PREFIX}/libexec/agi-bin 108MAKE_FLAGS+= AGI_DIR=${PREFIX}/libexec/agi-bin
109MAKE_FLAGS+= ASTEXAMPLEDIR=${ASTEXAMPLEDIR} 109MAKE_FLAGS+= ASTEXAMPLEDIR=${ASTEXAMPLEDIR}
110MAKE_FLAGS+= WRKSRC=${WRKSRC} 110MAKE_FLAGS+= WRKSRC=${WRKSRC}
111MAKE_FLAGS+= LDOPTS=${LDFLAGS:M*:Q} 111MAKE_FLAGS+= LDOPTS=${LDFLAGS:M*:Q}
112MAKE_FLAGS+= HTTP_DOCSDIR=${PREFIX}/share/httpd/htdocs 112MAKE_FLAGS+= HTTP_DOCSDIR=${PREFIX}/share/httpd/htdocs
113MAKE_FLAGS+= HTTP_CGIDIR=${PREFIX}/libexec/cgi-bin 113MAKE_FLAGS+= HTTP_CGIDIR=${PREFIX}/libexec/cgi-bin
114MAKE_FLAGS+= OPTIMIZE=-O3 114MAKE_FLAGS+= OPTIMIZE=-O3
115 115
116.if !empty(MACHINE_PLATFORM:MSunOS-*-i386) 116.if !empty(MACHINE_PLATFORM:MSunOS-*-i386)
117BUILDLINK_TRANSFORM+= rm:-march=i386 117BUILDLINK_TRANSFORM+= rm:-march=i386
118.endif 118.endif
119 119
120PLIST_VARS+= kqueue 120PLIST_VARS+= kqueue
121.if exists(/usr/include/sys/event.h) 121.if exists(/usr/include/sys/event.h)
122PLIST.kqueue= yes 122PLIST.kqueue= yes
123.endif 123.endif
124 124
125PLIST_VARS+= mgcp 125PLIST_VARS+= mgcp
126# NOSIGPIPE is a temp variable, since PLIST.mgcp MUST remain undefined 126# NOSIGPIPE is a temp variable, since PLIST.mgcp MUST remain undefined
127# if the grep fails 127# if the grep fails
128.for dir in ${COMPILER_INCLUDE_DIRS} 128.for dir in ${COMPILER_INCLUDE_DIRS}
129. if (exists(${dir}/sys/socket.h)) 129. if (exists(${dir}/sys/socket.h))
130NOSIGPIPE!= ${GREP} SO_NOSIGPIPE ${dir}/sys/socket.h || echo "" 130NOSIGPIPE!= ${GREP} SO_NOSIGPIPE ${dir}/sys/socket.h || echo ""
131. if ${NOSIGPIPE} != "" 131. if ${NOSIGPIPE} != ""
132PLIST.mgcp= yes 132PLIST.mgcp= yes
133. endif 133. endif
134. endif 134. endif
135.endfor 135.endfor
136 136
137.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" 137.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
138PLIST.mgcp= yes 138PLIST.mgcp= yes
139.endif 139.endif
140 140
141PLIST_VARS+= timerfd 141PLIST_VARS+= timerfd
142.if ${OPSYS} == "Linux" 142.if ${OPSYS} == "Linux"
143PLIST.timerfd= yes 143PLIST.timerfd= yes
144.endif 144.endif
145 145
146PLIST_VARS+= unbound 146PLIST_VARS+= unbound
147# unbound 1.5 or later is required.` 147# unbound 1.5 or later is required.`
148.if exists(/usr/include/unbound.h) && !empty(OS_VERSION:M9.*) 148.if exists(/usr/include/unbound.h) && !empty(OS_VERSION:M9.*)
149PLIST.unbound= yes 149PLIST.unbound= yes
150.else 150.else
151CONFIGURE_ARGS+= --without-unbound 151CONFIGURE_ARGS+= --without-unbound
152.endif 152.endif
153 153
154.include "options.mk" 154.include "options.mk"
155 155
156# check sounds/Makefile for current version when upgrading package 156# check sounds/Makefile for current version when upgrading package
157DISTFILES+= asterisk-extra-sounds-en-gsm-1.5.2.tar.gz 157DISTFILES+= asterisk-extra-sounds-en-gsm-1.5.2.tar.gz
158 158
159# pjproject 159# pjproject
160PJPROJ_VERSION= 2.9 160PJPROJ_VERSION= 2.10
161SITES.pjproject-${PJPROJ_VERSION}.tar.bz2= \ 161SITES.pjproject-${PJPROJ_VERSION}.tar.bz2= \
162 -https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/${PJPROJ_VERSION}/pjproject-${PJPROJ_VERSION}.tar.bz2 162 -https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/${PJPROJ_VERSION}/pjproject-${PJPROJ_VERSION}.tar.bz2
163SITES.pjproject-${PJPROJ_VERSION}.md5= \ 163SITES.pjproject-${PJPROJ_VERSION}.md5= \
164 -https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/${PJPROJ_VERSION}/MD5SUM.TXT 164 -https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/${PJPROJ_VERSION}/MD5SUM.TXT
165DISTFILES+= pjproject-${PJPROJ_VERSION}.tar.bz2 pjproject-${PJPROJ_VERSION}.md5 165DISTFILES+= pjproject-${PJPROJ_VERSION}.tar.bz2 pjproject-${PJPROJ_VERSION}.md5
166ALL_ENV+= EXTERNALS_CACHE_DIR=${DISTDIR}/${DIST_SUBDIR} 166ALL_ENV+= EXTERNALS_CACHE_DIR=${DISTDIR}/${DIST_SUBDIR}
167 167
168# Override default paths in config files 168# Override default paths in config files
169SUBST_CLASSES+= configs 169SUBST_CLASSES+= configs
170SUBST_STAGE.configs= pre-configure 170SUBST_STAGE.configs= pre-configure
171SUBST_FILES.configs= configs/samples/cli_aliases.conf.sample 171SUBST_FILES.configs= configs/samples/cli_aliases.conf.sample
172SUBST_FILES.configs+= configs/samples/festival.conf.sample 172SUBST_FILES.configs+= configs/samples/festival.conf.sample
173SUBST_FILES.configs+= configs/samples/http.conf.sample 173SUBST_FILES.configs+= configs/samples/http.conf.sample
174SUBST_FILES.configs+= configs/samples/iax.conf.sample 174SUBST_FILES.configs+= configs/samples/iax.conf.sample
175SUBST_FILES.configs+= configs/samples/musiconhold.conf.sample 175SUBST_FILES.configs+= configs/samples/musiconhold.conf.sample
176SUBST_FILES.configs+= configs/samples/osp.conf.sample 176SUBST_FILES.configs+= configs/samples/osp.conf.sample
177SUBST_FILES.configs+= configs/samples/phoneprov.conf.sample 177SUBST_FILES.configs+= configs/samples/phoneprov.conf.sample
178SUBST_FILES.configs+= configs/samples/res_config_sqlite.conf.sample 178SUBST_FILES.configs+= configs/samples/res_config_sqlite.conf.sample
179SUBST_FILES.configs+= configs/samples/sla.conf.sample 179SUBST_FILES.configs+= configs/samples/sla.conf.sample
180SUBST_SED.configs+= -e 's|doc/|${PREFIX}/share/doc/${PKGBASE}/|' 180SUBST_SED.configs+= -e 's|doc/|${PREFIX}/share/doc/${PKGBASE}/|'
181SUBST_SED.configs+= -e 's|/etc/asterisk|${ASTETCDIR}|' 181SUBST_SED.configs+= -e 's|/etc/asterisk|${ASTETCDIR}|'
182SUBST_SED.configs+= -e 's|/var/lib/asterisk|${ASTVARLIBDIR}|' 182SUBST_SED.configs+= -e 's|/var/lib/asterisk|${ASTVARLIBDIR}|'
183SUBST_SED.configs+= -e "s|/usr/local/man|${ASTMANDIR}|" 183SUBST_SED.configs+= -e "s|/usr/local/man|${ASTMANDIR}|"
184SUBST_SED.configs+= -e "s|/usr/local|${PREFIX}|" 184SUBST_SED.configs+= -e "s|/usr/local|${PREFIX}|"
185SUBST_SED.configs+= -e "s|/var|${VARBASE}|" 185SUBST_SED.configs+= -e "s|/var|${VARBASE}|"
186 186
187# XXX gross hack, remove when item is fixed 187# XXX gross hack, remove when item is fixed
188SUBST_CLASSES.NetBSD+= autoconfig 188SUBST_CLASSES.NetBSD+= autoconfig
189SUBST_STAGE.autoconfig= post-configure 189SUBST_STAGE.autoconfig= post-configure
190SUBST_FILES.autoconfig= include/asterisk/autoconfig.h 190SUBST_FILES.autoconfig= include/asterisk/autoconfig.h
191SUBST_SED.autoconfig= -e "s|^\#define HAVE_GCC_ATOMICS 1|\#undef HAVE_GCC_ATOMICS|" 191SUBST_SED.autoconfig= -e "s|^\#define HAVE_GCC_ATOMICS 1|\#undef HAVE_GCC_ATOMICS|"
192SUBST_SED.autoconfig+= -e "s|^\#define HAVE_GETHOSTBYNAME_R_6 1|\#undef HAVE_GETHOSTBYNAME_R_6|" 192SUBST_SED.autoconfig+= -e "s|^\#define HAVE_GETHOSTBYNAME_R_6 1|\#undef HAVE_GETHOSTBYNAME_R_6|"
193 193
194# XXX gross hack, IP_PKTINFO in NetBSD isn't compatible with anything else 194# XXX gross hack, IP_PKTINFO in NetBSD isn't compatible with anything else
195SUBST_CLASSES.NetBSD+= pktinfo 195SUBST_CLASSES.NetBSD+= pktinfo
196SUBST_STAGE.pktinfo= post-configure 196SUBST_STAGE.pktinfo= post-configure
197SUBST_FILES.pktinfo= include/asterisk/autoconfig.h 197SUBST_FILES.pktinfo= include/asterisk/autoconfig.h
198SUBST_SED.pktinfo= -e "s|^\#define HAVE_PKTINFO 1|\#undef HAVE_PKTINFO|" 198SUBST_SED.pktinfo= -e "s|^\#define HAVE_PKTINFO 1|\#undef HAVE_PKTINFO|"
199 199
200# XXX gross hack, gethostbyname_r on NETBSD is for internal use only 200# XXX gross hack, gethostbyname_r on NETBSD is for internal use only
201SUBST_CLASSES.NetBSD+= gethostbyname_r 201SUBST_CLASSES.NetBSD+= gethostbyname_r
202SUBST_STAGE.gethostbyname_r= post-configure 202SUBST_STAGE.gethostbyname_r= post-configure
203SUBST_FILES.gethostbyname_r= include/asterisk/autoconfig.h 203SUBST_FILES.gethostbyname_r= include/asterisk/autoconfig.h
204SUBST_SED.gethostbyname_r= -e "s|^\#define HAVE_GETHOSTBYNAME_R_5 1|\#undef HAVE_GETHOSTBYNAME_R_5|" 204SUBST_SED.gethostbyname_r= -e "s|^\#define HAVE_GETHOSTBYNAME_R_5 1|\#undef HAVE_GETHOSTBYNAME_R_5|"
205SUBST_SED.gethostbyname_r+= -e "s|^\#define HAVE_GETHOSTBYNAME_R_6 1|\#undef HAVE_GETHOSTBYNAME_R_6|" 205SUBST_SED.gethostbyname_r+= -e "s|^\#define HAVE_GETHOSTBYNAME_R_6 1|\#undef HAVE_GETHOSTBYNAME_R_6|"
206 206
207RCD_SCRIPTS= asterisk 207RCD_SCRIPTS= asterisk
208OWN_DIRS_PERMS+= ${ASTDBDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 208OWN_DIRS_PERMS+= ${ASTDBDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
209OWN_DIRS_PERMS+= ${ASTSPOOLDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 209OWN_DIRS_PERMS+= ${ASTSPOOLDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
210OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/dictate ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 210OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/dictate ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
211OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/meetme ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 211OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/meetme ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
212OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/monitor ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 212OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/monitor ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
213OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/outgoing ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 213OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/outgoing ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
214OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/system ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 214OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/system ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
215OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/tmp ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 215OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/tmp ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
216OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 216OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
217OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 217OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
218OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234 ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 218OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234 ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
219OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 219OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
220OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 220OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
221SPECIAL_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en/busy.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644 221SPECIAL_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en/busy.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
222SPECIAL_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en/unavail.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644 222SPECIAL_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en/unavail.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
223OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 223OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
224OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 224OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
225OWN_DIRS_PERMS+= ${ASTLOGDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 225OWN_DIRS_PERMS+= ${ASTLOGDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
226OWN_DIRS_PERMS+= ${ASTLOGDIR}/cdr-csv ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 226OWN_DIRS_PERMS+= ${ASTLOGDIR}/cdr-csv ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
227OWN_DIRS_PERMS+= ${ASTLOGDIR}/cdr-custom ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 227OWN_DIRS_PERMS+= ${ASTLOGDIR}/cdr-custom ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
228 228
229CONF_FILES_PERMS= # empty 229CONF_FILES_PERMS= # empty
230.for f in asterisk.conf extensions.conf 230.for f in asterisk.conf extensions.conf
231CONF_FILES_PERMS+= ${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644 231CONF_FILES_PERMS+= ${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
232.endfor 232.endfor
233 233
234.if !empty(PKG_OPTIONS:Masterisk-config) 234.if !empty(PKG_OPTIONS:Masterisk-config)
235# if we put all the files in $CONF_FILES, the message is _way_ too long. 235# if we put all the files in $CONF_FILES, the message is _way_ too long.
236. for f in acl.conf adsi.conf agents.conf alarmreceiver.conf alsa.conf \ 236. for f in acl.conf adsi.conf agents.conf alarmreceiver.conf alsa.conf \
237 amd.conf app_mysql.conf app_skel.conf ari.conf \ 237 amd.conf app_mysql.conf app_skel.conf ari.conf \
238 ast_debug_tools.conf asterisk.adsi calendar.conf ccss.conf \ 238 ast_debug_tools.conf asterisk.adsi calendar.conf ccss.conf \
239 cdr.conf cdr_adaptive_odbc.conf cdr_beanstalkd.conf \ 239 cdr.conf cdr_adaptive_odbc.conf cdr_beanstalkd.conf \
240 cdr_custom.conf \ 240 cdr_custom.conf \
241 cdr_manager.conf cdr_mysql.conf cdr_odbc.conf cdr_pgsql.conf \ 241 cdr_manager.conf cdr_mysql.conf cdr_odbc.conf cdr_pgsql.conf \
242 cdr_sqlite3_custom.conf cdr_syslog.conf cdr_tds.conf cel.conf \ 242 cdr_sqlite3_custom.conf cdr_syslog.conf cdr_tds.conf cel.conf \
243 cel_beanstalkd.conf cel_custom.conf cel_odbc.conf \ 243 cel_beanstalkd.conf cel_custom.conf cel_odbc.conf \
244 cel_pgsql.conf \ 244 cel_pgsql.conf \
245 cel_sqlite3_custom.conf cel_tds.conf chan_dahdi.conf \ 245 cel_sqlite3_custom.conf cel_tds.conf chan_dahdi.conf \
246 chan_mobile.conf cli.conf cli_aliases.conf cli_permissions.conf \ 246 chan_mobile.conf cli.conf cli_aliases.conf cli_permissions.conf \
247 codecs.conf confbridge.conf console.conf dbsep.conf dnsmgr.conf \ 247 codecs.conf confbridge.conf console.conf dbsep.conf dnsmgr.conf \
248 dsp.conf dundi.conf enum.conf extconfig.conf extensions.ael \ 248 dsp.conf dundi.conf enum.conf extconfig.conf extensions.ael \
249 extensions.lua extensions_minivm.conf \ 249 extensions.lua extensions_minivm.conf \
250 features.conf festival.conf followme.conf func_odbc.conf \ 250 features.conf festival.conf followme.conf func_odbc.conf \
251 hep.conf http.conf iax.conf iaxprov.conf indications.conf \ 251 hep.conf http.conf iax.conf iaxprov.conf indications.conf \
252 logger.conf manager.conf meetme.conf mgcp.conf minivm.conf \ 252 logger.conf manager.conf meetme.conf mgcp.conf minivm.conf \
253 misdn.conf modules.conf motif.conf musiconhold.conf muted.conf \ 253 misdn.conf modules.conf motif.conf musiconhold.conf muted.conf \
254 ooh323.conf osp.conf oss.conf phone.conf phoneprov.conf \ 254 ooh323.conf osp.conf oss.conf phone.conf phoneprov.conf \
255 pjproject.conf pjsip.conf pjsip_notify.conf pjsip_wizard.conf \ 255 pjproject.conf pjsip.conf pjsip_notify.conf pjsip_wizard.conf \
256 queuerules.conf queues.conf res_config_mysql.conf \ 256 queuerules.conf queues.conf res_config_mysql.conf \
257 res_config_sqlite.conf res_config_sqlite3.conf \ 257 res_config_sqlite.conf res_config_sqlite3.conf \
258 res_corosync.conf res_curl.conf res_fax.conf res_ldap.conf \ 258 res_corosync.conf res_curl.conf res_fax.conf res_ldap.conf \
259 res_odbc.conf res_parking.conf res_pgsql.conf res_pktccops.conf \ 259 res_odbc.conf res_parking.conf res_pgsql.conf res_pktccops.conf \
260 res_snmp.conf res_stun_monitor.conf resolver_unbound.conf \ 260 res_snmp.conf res_stun_monitor.conf resolver_unbound.conf \
261 rtp.conf say.conf sip.conf sip_notify.conf skinny.conf sla.conf \ 261 rtp.conf say.conf sip.conf sip_notify.conf skinny.conf sla.conf \
262 smdi.conf sorcery.conf ss7.timers stasis.conf statsd.conf \ 262 smdi.conf sorcery.conf ss7.timers stasis.conf statsd.conf \
263 telcordia-1.adsi udptl.conf unistim.conf users.conf \ 263 telcordia-1.adsi udptl.conf unistim.conf users.conf \
264 voicemail.conf vpb.conf xmpp.conf 264 voicemail.conf vpb.conf xmpp.conf
265CONF_FILES_PERMS+= ${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644 265CONF_FILES_PERMS+= ${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
266. endfor 266. endfor
267.endif 267.endif
268 268
269PTHREAD_OPTS+= require native 269PTHREAD_OPTS+= require native
270 270
271.if (${OPSYS} == "Darwin" && exists(/usr/include/sys/poll.h)) 271.if (${OPSYS} == "Darwin" && exists(/usr/include/sys/poll.h))
272post-patch: 272post-patch:
273 ${ECHO} "#include <sys/poll.h>" > ${WRKSRC}/include/asterisk/poll-compat.h 273 ${ECHO} "#include <sys/poll.h>" > ${WRKSRC}/include/asterisk/poll-compat.h
274.endif 274.endif
275 275
276post-install: 276post-install:
277# check sounds directory for current versions when upgrading package 277# check sounds directory for current versions when upgrading package
278 ${TAR} xzf ${WRKSRC}/sounds/asterisk-core-sounds-en-gsm-1.6.1.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en 278 ${TAR} xzf ${WRKSRC}/sounds/asterisk-core-sounds-en-gsm-1.6.1.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en
279 ${TAR} xzf ${WRKSRC}/sounds/asterisk-moh-opsound-wav-2.03.tar.gz -C ${DESTDIR}${ASTDATADIR}/moh 279 ${TAR} xzf ${WRKSRC}/sounds/asterisk-moh-opsound-wav-2.03.tar.gz -C ${DESTDIR}${ASTDATADIR}/moh
280 ${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en 280 ${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en
281 ${INSTALL_DATA} ${WRKSRC}/BUGS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 281 ${INSTALL_DATA} ${WRKSRC}/BUGS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
282 ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 282 ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
283 ${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 283 ${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
284 ${INSTALL_DATA} ${WRKSRC}/CREDITS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 284 ${INSTALL_DATA} ${WRKSRC}/CREDITS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
285 ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 285 ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
286 ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 286 ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
287 ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 287 ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
288 ${INSTALL_DATA} ${WRKSRC}/README-SERIOUSLY.bestpractices.md ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 288 ${INSTALL_DATA} ${WRKSRC}/README-SERIOUSLY.bestpractices.md ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
289 ${INSTALL_DATA} ${WRKSRC}/Zaptel-to-DAHDI.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 289 ${INSTALL_DATA} ${WRKSRC}/Zaptel-to-DAHDI.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
290 ${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 290 ${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
291 ${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 291 ${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
292 ${INSTALL_DATA} ${WRKSRC}/doc/README.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 292 ${INSTALL_DATA} ${WRKSRC}/doc/README.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
293 293
294.if ${OPSYS} != "Darwin" && ${PKGSRC_COMPILER:Mclang} 294.if ${OPSYS} != "Darwin" && ${PKGSRC_COMPILER:Mclang}
295.include "../../lang/libBlocksRuntime/buildlink3.mk" 295.include "../../lang/libBlocksRuntime/buildlink3.mk"
296LDFLAGS+= -L${PREFIX}/lib 296LDFLAGS+= -L${PREFIX}/lib
297.endif 297.endif
298 298
299.include "../../databases/sqlite3/buildlink3.mk" 299.include "../../databases/sqlite3/buildlink3.mk"
300.include "../../devel/editline/buildlink3.mk" 300.include "../../devel/editline/buildlink3.mk"
301.include "../../devel/libuuid/buildlink3.mk" 301.include "../../devel/libuuid/buildlink3.mk"
302.include "../../devel/zlib/buildlink3.mk" 302.include "../../devel/zlib/buildlink3.mk"
303.include "../../lang/python/application.mk" 303.include "../../lang/python/application.mk"
304.include "../../textproc/jansson/buildlink3.mk" 304.include "../../textproc/jansson/buildlink3.mk"
305.include "../../security/openssl/buildlink3.mk" 305.include "../../security/openssl/buildlink3.mk"
306.include "../../textproc/libxml2/buildlink3.mk" 306.include "../../textproc/libxml2/buildlink3.mk"
307.include "../../www/curl/buildlink3.mk" 307.include "../../www/curl/buildlink3.mk"
308.include "../../mk/curses.buildlink3.mk" 308.include "../../mk/curses.buildlink3.mk"
309.include "../../mk/oss.buildlink3.mk" 309.include "../../mk/oss.buildlink3.mk"
310.include "../../mk/pthread.buildlink3.mk" 310.include "../../mk/pthread.buildlink3.mk"
311.include "../../mk/termcap.buildlink3.mk" 311.include "../../mk/termcap.buildlink3.mk"
312.include "../../mk/bsd.pkg.mk" 312.include "../../mk/bsd.pkg.mk"

cvs diff -r1.35 -r1.36 pkgsrc/comms/asterisk16/distinfo (switch to unified diff)

--- pkgsrc/comms/asterisk16/distinfo 2020/06/12 16:23:53 1.35
+++ pkgsrc/comms/asterisk16/distinfo 2020/08/13 09:24:25 1.36
@@ -1,37 +1,37 @@ @@ -1,37 +1,37 @@
1$NetBSD: distinfo,v 1.35 2020/06/12 16:23:53 ryoon Exp $ 1$NetBSD: distinfo,v 1.36 2020/08/13 09:24:25 ryoon Exp $
2 2
3SHA1 (asterisk-16.11.0/asterisk-16.11.0.tar.gz) = 9a9d1c7a45210d94e266686462203405e5d34dda 3SHA1 (asterisk-16.12.0/asterisk-16.12.0.tar.gz) = 85f67fbba2401f45ace3d47eff6affa36521682c
4RMD160 (asterisk-16.11.0/asterisk-16.11.0.tar.gz) = 74036bece29f9865f1110d8f69621e6e8cb2d79f 4RMD160 (asterisk-16.12.0/asterisk-16.12.0.tar.gz) = 99779e3f6e977752c1e2a851ee5360c9b0215d04
5SHA512 (asterisk-16.11.0/asterisk-16.11.0.tar.gz) = 1b138c6a4ac442504d05c1f9a327cdc1396669a328f86678252fe578dc0e3cccf5b4d7856937862f7cc531a0618e3b7e6eebc041ab435efe676cd89e6d877ee6 5SHA512 (asterisk-16.12.0/asterisk-16.12.0.tar.gz) = 1fc41b92d070efd4a7ea5db1a36c83bdb6dbbe7d9b5087b0a887ba3d6875e81ba1b71a79b216138b242f0349a176baf6745480ff6fb7ed47c62dda4b09b6a891
6Size (asterisk-16.11.0/asterisk-16.11.0.tar.gz) = 27708591 bytes 6Size (asterisk-16.12.0/asterisk-16.12.0.tar.gz) = 27727347 bytes
7SHA1 (asterisk-16.11.0/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz) = 0207e289404704c42941759db9660269599044f9 7SHA1 (asterisk-16.12.0/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz) = 0207e289404704c42941759db9660269599044f9
8RMD160 (asterisk-16.11.0/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz) = 5d660e7664a56086bd60ad49196e1b622a60f106 8RMD160 (asterisk-16.12.0/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz) = 5d660e7664a56086bd60ad49196e1b622a60f106
9SHA512 (asterisk-16.11.0/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz) = 3f2f7bf3d5bce3544bc013f913c352f0204a3ce96239987403eb9dce8bc87e64a61d437762323a422a87b2fad1f3bf3e7a5f3d0d340f912a1b1dbfea9479d41d 9SHA512 (asterisk-16.12.0/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz) = 3f2f7bf3d5bce3544bc013f913c352f0204a3ce96239987403eb9dce8bc87e64a61d437762323a422a87b2fad1f3bf3e7a5f3d0d340f912a1b1dbfea9479d41d
10Size (asterisk-16.11.0/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz) = 4253587 bytes 10Size (asterisk-16.12.0/asterisk-extra-sounds-en-gsm-1.5.2.tar.gz) = 4253587 bytes
11SHA1 (asterisk-16.11.0/pjproject-2.9.md5) = f8162e9ab7e4de130c166d9ac2f4271ded408ab0 11SHA1 (asterisk-16.12.0/pjproject-2.10.md5) = 1f91cf11ef1df14344817905e165cc1908668d18
12RMD160 (asterisk-16.11.0/pjproject-2.9.md5) = 71f1173138a806451480180ab4147bbddae259d8 12RMD160 (asterisk-16.12.0/pjproject-2.10.md5) = c33bbef404923860a41e34520871c0fa7533a01d
13SHA512 (asterisk-16.11.0/pjproject-2.9.md5) = bfc8fb4ecb6fcb6b9fe2c088e3236ccab74f09bda163c7f1a9b548b0c514228b20ca15c734ff53ed88810b32e904743b396fffdf5d1a6e0c8d66427f0216c0cd 13SHA512 (asterisk-16.12.0/pjproject-2.10.md5) = bd24048c9c2fdaf06468e44bceca92bd02848d759ef98285d20b50174f865b1aec2928f1ce6c092862397ba83dd1a74da4a7e479eca881df1e9f9d1c211a7054
14Size (asterisk-16.11.0/pjproject-2.9.md5) = 107 bytes 14Size (asterisk-16.12.0/pjproject-2.10.md5) = 110 bytes
15SHA1 (asterisk-16.11.0/pjproject-2.9.tar.bz2) = 4b7690e90a9fbe757ac7c5b0db9a2d3db8927824 15SHA1 (asterisk-16.12.0/pjproject-2.10.tar.bz2) = 0c691fa3562d4daad4b4374df61e8325ac15cc55
16RMD160 (asterisk-16.11.0/pjproject-2.9.tar.bz2) = 7333d158e05b4bee16af0a91d4432c6f9e570bf5 16RMD160 (asterisk-16.12.0/pjproject-2.10.tar.bz2) = 9ffe871976a67e4d29d45fdb2c1fc26b2925ef86
17SHA512 (asterisk-16.11.0/pjproject-2.9.tar.bz2) = a65823a86ad0cd76890cf7dd2485f7547fd90aea2ef631c5420c009b35f39eda3b78551a42fc2816c2470de9eb728c26497774a8494824472ecaa1d2889cc20b 17SHA512 (asterisk-16.12.0/pjproject-2.10.tar.bz2) = fe29edccc63a8e72323e1b6f955a8c3475e26aba9cb8f5125546da4409fecc19a09a7950eee6b8e4a3c908943bc043d95130f878ad52958c5eccc617e3bcfb4e
18Size (asterisk-16.11.0/pjproject-2.9.tar.bz2) = 5009546 bytes 18Size (asterisk-16.12.0/pjproject-2.10.tar.bz2) = 7339188 bytes
19SHA1 (patch-Makefile) = f7630acc724e1beb422226318611d5f3f79be82b 19SHA1 (patch-Makefile) = f7630acc724e1beb422226318611d5f3f79be82b
20SHA1 (patch-build__tools_mkpkgconfig) = 7fab8fcf46d9f8a3b98455674fec6307ec472b23 20SHA1 (patch-build__tools_mkpkgconfig) = 7fab8fcf46d9f8a3b98455674fec6307ec472b23
21SHA1 (patch-channels_Makefile) = b32bb8439ae07ed361ab7cb811b4766a27f09ec9 21SHA1 (patch-channels_Makefile) = b32bb8439ae07ed361ab7cb811b4766a27f09ec9
22SHA1 (patch-configure) = b25ac1178eb77a1d0ecb57f5b37813cf1a4ad5c6 22SHA1 (patch-configure) = 65da4b46faae700c39b316cc88f6757f8b023657
23SHA1 (patch-configure.ac) = 63a54b310ea38216861206f07116614ddfb90e20 23SHA1 (patch-configure.ac) = 91a080a5190eb397021676ba2f579990939b40e8
24SHA1 (patch-contrib_scripts_vmail.cgi) = 7935ce96ea319eb19cc2ce999813eb837d5357c0 24SHA1 (patch-contrib_scripts_vmail.cgi) = 7935ce96ea319eb19cc2ce999813eb837d5357c0
25SHA1 (patch-include_asterisk_autoconfig.h.in) = 2f8a986bd3b35ebb384280f0dbf81c32d689ddd2 25SHA1 (patch-include_asterisk_autoconfig.h.in) = 2f8a986bd3b35ebb384280f0dbf81c32d689ddd2
26SHA1 (patch-include_asterisk_sha1.h) = 9b233ef82b50b8d94177616e1382991656ce1ebf 26SHA1 (patch-include_asterisk_sha1.h) = 9b233ef82b50b8d94177616e1382991656ce1ebf
27SHA1 (patch-main_Makefile) = d8b2cdd76dbf4dfa3ae082ce39cc0f8396b368aa 27SHA1 (patch-main_Makefile) = d8b2cdd76dbf4dfa3ae082ce39cc0f8396b368aa
28SHA1 (patch-main_acl.c) = 06a9d247b19d648e9ff54ac2a234dc8ac8c023bb 28SHA1 (patch-main_acl.c) = 06a9d247b19d648e9ff54ac2a234dc8ac8c023bb
29SHA1 (patch-main_pbx__builtins.c) = 7c1d518f05afc1523b247f50b0363e25832c8636 29SHA1 (patch-main_pbx__builtins.c) = 7c1d518f05afc1523b247f50b0363e25832c8636
30SHA1 (patch-main_stdtime_localtime.c) = d530bea8f93667a07b707e6fb01c6744aa264d40 30SHA1 (patch-main_stdtime_localtime.c) = d530bea8f93667a07b707e6fb01c6744aa264d40
31SHA1 (patch-main_utils.c) = ab85be3687dd7f39b742bd5e4036f9e297f3e272 31SHA1 (patch-main_utils.c) = ab85be3687dd7f39b742bd5e4036f9e297f3e272
32SHA1 (patch-pbx_pbx__dundi.c) = d2a50650a19463304c81fc19c460565b94f91b72 32SHA1 (patch-pbx_pbx__dundi.c) = d2a50650a19463304c81fc19c460565b94f91b72
33SHA1 (patch-res_res__rtp__asterisk.c) = ea63841700ca31653c7ddcc8d296348b9ee68964 33SHA1 (patch-res_res__rtp__asterisk.c) = ea63841700ca31653c7ddcc8d296348b9ee68964
34SHA1 (patch-sounds_Makefile) = acc15088ae2545f2822246466bfe783b5215fc54 34SHA1 (patch-sounds_Makefile) = acc15088ae2545f2822246466bfe783b5215fc54
35SHA1 (patch-tests_test__locale.c) = f3f1edc86356f2a7b4d3493433c772e164c77f66 35SHA1 (patch-tests_test__locale.c) = f3f1edc86356f2a7b4d3493433c772e164c77f66
36SHA1 (patch-utils_Makefile) = 4b4be483c20768d640efae5c18fc6f6770eb8c0c 36SHA1 (patch-utils_Makefile) = 4b4be483c20768d640efae5c18fc6f6770eb8c0c
37SHA1 (patch-utils_db1-ast_include_db.h) = 03b43353b7967f999ace3eb160828c530e2e8fae 37SHA1 (patch-utils_db1-ast_include_db.h) = 03b43353b7967f999ace3eb160828c530e2e8fae

cvs diff -r1.2 -r1.3 pkgsrc/comms/asterisk16/patches/patch-configure (switch to unified diff)

--- pkgsrc/comms/asterisk16/patches/patch-configure 2019/12/21 23:29:05 1.2
+++ pkgsrc/comms/asterisk16/patches/patch-configure 2020/08/13 09:24:25 1.3
@@ -1,49 +1,58 @@ @@ -1,49 +1,58 @@
1$NetBSD: patch-configure,v 1.2 2019/12/21 23:29:05 joerg Exp $ 1$NetBSD: patch-configure,v 1.3 2020/08/13 09:24:25 ryoon Exp $
2 2
3--- configure.orig 2019-07-25 09:38:14.000000000 +0000 3--- configure.orig 2020-07-16 16:00:28.000000000 +0000
4+++ configure 4+++ configure
5@@ -9120,7 +9120,7 @@ $as_echo_n "checking for clang -fblocks. 5@@ -8960,7 +8960,7 @@ $as_echo_n "checking for clang -fblocks.
6 AST_CLANG_BLOCKS="-Wno-unknown-warning-option -fblocks" 6 AST_CLANG_BLOCKS="-Wno-unknown-warning-option -fblocks"
7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8 $as_echo "yes" >&6; } 8 $as_echo "yes" >&6; }
9- elif test "`echo 'int main(){return ^{return 42;}();}' | ${CC} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then 9- elif test "`echo 'int main(){return ^{return 42;}();}' | ${CC} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then
10+ elif test "`echo 'int main(){return ^{return 42;}();}' | ${CC} ${LDFLAGS} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then 10+ elif test "`echo 'int main(){return ^{return 42;}();}' | ${CC} ${LDFLAGS} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then
11 AST_CLANG_BLOCKS_LIBS="-lBlocksRuntime" 11 AST_CLANG_BLOCKS_LIBS="-lBlocksRuntime"
12 AST_CLANG_BLOCKS="-fblocks" 12 AST_CLANG_BLOCKS="-fblocks"
13 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14@@ -14838,7 +14838,7 @@ fi 14@@ -9057,7 +9057,7 @@ if test "${with_pjproject_bundled+set}"
 15 fi
 16
 17
 18-if test "${with_pjproject}" == "no" || test "${with_pjproject}" == "n" ; then
 19+if test "${with_pjproject}" = "no" || test "${with_pjproject}" = "n" ; then
 20 PJPROJECT_BUNDLED=no
 21 fi
 22
 23@@ -14689,7 +14689,7 @@ fi
15  24
16  25
17  26
18-if test "${PERMANENT_DLOPEN}" == "yes"; then 27-if test "${PERMANENT_DLOPEN}" == "yes"; then
19+if test "${PERMANENT_DLOPEN}" = "yes"; then 28+if test "${PERMANENT_DLOPEN}" = "yes"; then
20  29
21 $as_echo "#define HAVE_PERMANENT_DLOPEN 1" >>confdefs.h 30 $as_echo "#define HAVE_PERMANENT_DLOPEN 1" >>confdefs.h
22  31
23@@ -14872,7 +14872,7 @@ fi 32@@ -14723,7 +14723,7 @@ fi
24 done 33 done
25  34
26  35
27-ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" 36-ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
28+ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" 37+ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
29 if test "x$ac_cv_header_sys_poll_h" = xyes; then : 38 if test "x$ac_cv_header_sys_poll_h" = xyes; then :
30  39
31 else 40 else
32@@ -16887,7 +16887,7 @@ fi 41@@ -16738,7 +16738,7 @@ fi
33 done 42 done
34  43
35  44
36-for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap newlocale pipe2 ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv uselocale utime vasprintf getpeereid sysctl swapctl malloc_trim 45-for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap newlocale pipe2 ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv uselocale utime vasprintf getpeereid sysctl swapctl malloc_trim
37+for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap newlocale pipe2 ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv uselocale utime vasprintf getpeereid sysctl swapctl malloc_trim strftime_l strptime_l 46+for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap newlocale pipe2 ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv uselocale utime vasprintf getpeereid sysctl swapctl malloc_trim strftime_l strptime_l
38 do : 47 do :
39 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 48 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 49 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
41@@ -17122,7 +17122,7 @@ rm -f core conftest.err conftest.$ac_obj 50@@ -16973,7 +16973,7 @@ rm -f core conftest.err conftest.$ac_obj
42 LDFLAGS=${old_LDFLAGS} 51 LDFLAGS=${old_LDFLAGS}
43 rm -f conftest.dynamics 52 rm -f conftest.dynamics
44  53
45-ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" 54-ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
46+ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" 55+ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
47 if test "x$ac_cv_header_sys_poll_h" = xyes; then : 56 if test "x$ac_cv_header_sys_poll_h" = xyes; then :
48 HAS_POLL=1 57 HAS_POLL=1
49  58

cvs diff -r1.1 -r1.2 pkgsrc/comms/asterisk16/patches/patch-configure.ac (switch to unified diff)

--- pkgsrc/comms/asterisk16/patches/patch-configure.ac 2019/08/20 13:47:42 1.1
+++ pkgsrc/comms/asterisk16/patches/patch-configure.ac 2020/08/13 09:24:25 1.2
@@ -1,43 +1,52 @@ @@ -1,43 +1,52 @@
1$NetBSD: patch-configure.ac,v 1.1 2019/08/20 13:47:42 ryoon Exp $ 1$NetBSD: patch-configure.ac,v 1.2 2020/08/13 09:24:25 ryoon Exp $
2 2
3--- configure.ac.orig 2019-07-25 09:38:14.000000000 +0000 3--- configure.ac.orig 2020-07-16 16:00:28.000000000 +0000
4+++ configure.ac 4+++ configure.ac
5@@ -738,7 +738,7 @@ AC_ARG_ENABLE([permanent-dlopen], 5@@ -452,7 +452,7 @@ AC_ARG_WITH([pjproject-bundled],
 6 *) PJPROJECT_BUNDLED=yes ;;
 7 esac])
 8
 9-if test "${with_pjproject}" == "no" || test "${with_pjproject}" == "n" ; then
 10+if test "${with_pjproject}" = "no" || test "${with_pjproject}" = "n" ; then
 11 PJPROJECT_BUNDLED=no
 12 fi
 13
 14@@ -740,7 +740,7 @@ AC_ARG_ENABLE([permanent-dlopen],
6 esac], [PERMANENT_DLOPEN=no]) 15 esac], [PERMANENT_DLOPEN=no])
7  16
8 AC_SUBST([PERMANENT_DLOPEN]) 17 AC_SUBST([PERMANENT_DLOPEN])
9-if test "${PERMANENT_DLOPEN}" == "yes"; then 18-if test "${PERMANENT_DLOPEN}" == "yes"; then
10+if test "${PERMANENT_DLOPEN}" = "yes"; then 19+if test "${PERMANENT_DLOPEN}" = "yes"; then
11 AC_DEFINE([HAVE_PERMANENT_DLOPEN], 1, [Define to support libc with permanent dlopen.]) 20 AC_DEFINE([HAVE_PERMANENT_DLOPEN], 1, [Define to support libc with permanent dlopen.])
12 fi 21 fi
13  22
14@@ -747,7 +747,7 @@ AC_CHECK_HEADERS([xlocale.h]) 23@@ -749,7 +749,7 @@ AC_CHECK_HEADERS([xlocale.h])
15  24
16 AC_CHECK_HEADERS([winsock.h winsock2.h]) 25 AC_CHECK_HEADERS([winsock.h winsock2.h])
17  26
18-AC_CHECK_HEADER([sys/poll.h], 27-AC_CHECK_HEADER([sys/poll.h],
19+AC_CHECK_HEADER([poll.h], 28+AC_CHECK_HEADER([poll.h],
20 [], 29 [],
21 AC_DEFINE([AST_POLL_COMPAT], 1, [Define to 1 if internal poll should be used.])) 30 AC_DEFINE([AST_POLL_COMPAT], 1, [Define to 1 if internal poll should be used.]))
22  31
23@@ -799,7 +799,7 @@ AC_FUNC_STRNLEN 32@@ -801,7 +801,7 @@ AC_FUNC_STRNLEN
24 AC_FUNC_STRTOD 33 AC_FUNC_STRTOD
25 AC_FUNC_UTIME_NULL 34 AC_FUNC_UTIME_NULL
26 AC_FUNC_VPRINTF 35 AC_FUNC_VPRINTF
27-AC_CHECK_FUNCS([asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap newlocale pipe2 ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv uselocale utime vasprintf getpeereid sysctl swapctl malloc_trim]) 36-AC_CHECK_FUNCS([asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap newlocale pipe2 ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv uselocale utime vasprintf getpeereid sysctl swapctl malloc_trim])
28+AC_CHECK_FUNCS([asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap newlocale pipe2 ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv uselocale utime vasprintf getpeereid sysctl swapctl malloc_trim strftime_l strptime_l]) 37+AC_CHECK_FUNCS([asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap newlocale pipe2 ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv uselocale utime vasprintf getpeereid sysctl swapctl malloc_trim strftime_l strptime_l])
29  38
30 AC_MSG_CHECKING(for htonll) 39 AC_MSG_CHECKING(for htonll)
31 AC_LINK_IFELSE( 40 AC_LINK_IFELSE(
32@@ -868,9 +868,9 @@ AC_SUBST(PBX_DYNAMIC_LIST) 41@@ -870,9 +870,9 @@ AC_SUBST(PBX_DYNAMIC_LIST)
33 LDFLAGS=${old_LDFLAGS} 42 LDFLAGS=${old_LDFLAGS}
34 rm -f conftest.dynamics 43 rm -f conftest.dynamics
35  44
36-AC_CHECK_HEADER([sys/poll.h], 45-AC_CHECK_HEADER([sys/poll.h],
37+AC_CHECK_HEADER([poll.h], 46+AC_CHECK_HEADER([poll.h],
38 [HAS_POLL=1] 47 [HAS_POLL=1]
39- AC_DEFINE([HAVE_SYS_POLL_H], 1, [Define to 1 if your system has working sys/poll.h]), 48- AC_DEFINE([HAVE_SYS_POLL_H], 1, [Define to 1 if your system has working sys/poll.h]),
40+ AC_DEFINE([HAVE_SYS_POLL_H], 1, [Define to 1 if your system has working poll.h]), 49+ AC_DEFINE([HAVE_SYS_POLL_H], 1, [Define to 1 if your system has working poll.h]),
41 ) 50 )
42  51
43 AC_ARG_ENABLE([internal-poll], 52 AC_ARG_ENABLE([internal-poll],