pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms asterisk*: Detect kqueue/timerfd through pkgsrc ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/690b61da9294
branches:  trunk
changeset: 769177:690b61da9294
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Nov 09 11:11:08 2021 +0000

description:
asterisk*: Detect kqueue/timerfd through pkgsrc infrastructure.

Fixes PLIST on NetBSD/current.

diffstat:

 comms/asterisk13/Makefile |  9 +++++++--
 comms/asterisk13/PLIST    |  3 ++-
 comms/asterisk16/Makefile |  6 +++---
 comms/asterisk18/Makefile |  6 +++---
 4 files changed, 15 insertions(+), 9 deletions(-)

diffs (97 lines):

diff -r 688ac38caabe -r 690b61da9294 comms/asterisk13/Makefile
--- a/comms/asterisk13/Makefile Tue Nov 09 11:09:04 2021 +0000
+++ b/comms/asterisk13/Makefile Tue Nov 09 11:11:08 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.73 2021/09/29 19:00:24 adam Exp $
+# $NetBSD: Makefile,v 1.74 2021/11/09 11:11:08 nia Exp $
 #
 # NOTE: when updating this package, there are two places that sound
 #       tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -117,10 +117,15 @@
 .endif
 
 PLIST_VARS+=   kqueue
-.if exists(/usr/include/sys/event.h)
+.if defined(PKG_HAVE_KQUEUE)
 PLIST.kqueue=  yes
 .endif
 
+PLIST_VARS+=   timerfd
+.if defined(PKG_HAVE_TIMERFD)
+PLIST.timerfd= yes
+.endif
+
 PLIST_VARS+=   mgcp
 # NOSIGPIPE is a temp variable, since PLIST.mgcp MUST remain undefined
 # if the grep fails
diff -r 688ac38caabe -r 690b61da9294 comms/asterisk13/PLIST
--- a/comms/asterisk13/PLIST    Tue Nov 09 11:09:04 2021 +0000
+++ b/comms/asterisk13/PLIST    Tue Nov 09 11:11:08 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2021/01/02 22:45:43 jnemeth Exp $
+@comment $NetBSD: PLIST,v 1.13 2021/11/09 11:11:08 nia Exp $
 include/asterisk.h
 include/asterisk/_private.h
 include/asterisk/abstract_jb.h
@@ -462,6 +462,7 @@
 lib/asterisk/modules/res_stun_monitor.so
 ${PLIST.kqueue}lib/asterisk/modules/res_timing_kqueue.so
 lib/asterisk/modules/res_timing_pthread.so
+${PLIST.timerfd}lib/asterisk/modules/res_timing_timerfd.so
 ${PLIST.jabber}lib/asterisk/modules/res_xmpp.so
 lib/libasteriskssl.so
 lib/libasteriskssl.so.1
diff -r 688ac38caabe -r 690b61da9294 comms/asterisk16/Makefile
--- a/comms/asterisk16/Makefile Tue Nov 09 11:09:04 2021 +0000
+++ b/comms/asterisk16/Makefile Tue Nov 09 11:11:08 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.82 2021/09/29 19:00:25 adam Exp $
+# $NetBSD: Makefile,v 1.83 2021/11/09 11:11:08 nia Exp $
 #
 # NOTE: when updating this package, there are two places that sound
 #       tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -120,7 +120,7 @@
 .endif
 
 PLIST_VARS+=   kqueue
-.if exists(/usr/include/sys/event.h)
+.if defined(PKG_HAVE_KQUEUE)
 PLIST.kqueue=  yes
 .endif
 
@@ -141,7 +141,7 @@
 .endif
 
 PLIST_VARS+=   timerfd
-.if ${OPSYS} == "Linux"
+.if defined(PKG_HAVE_TIMERFD)
 PLIST.timerfd= yes
 .endif
 
diff -r 688ac38caabe -r 690b61da9294 comms/asterisk18/Makefile
--- a/comms/asterisk18/Makefile Tue Nov 09 11:09:04 2021 +0000
+++ b/comms/asterisk18/Makefile Tue Nov 09 11:11:08 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.133 2021/11/08 00:58:50 jnemeth Exp $
+# $NetBSD: Makefile,v 1.134 2021/11/09 11:11:08 nia Exp $
 #
 # NOTE: when updating this package, there are two places that sound
 #       tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -119,7 +119,7 @@
 .endif
 
 PLIST_VARS+=   kqueue
-.if exists(/usr/include/sys/event.h)
+.if defined(PKG_HAVE_KQUEUE)
 PLIST.kqueue=  yes
 .endif
 
@@ -140,7 +140,7 @@
 .endif
 
 PLIST_VARS+=   timerfd
-.if ${OPSYS} == "Linux"
+.if defined(PKG_HAVE_TIMERFD)
 PLIST.timerfd= yes
 .endif
 



Home | Main Index | Thread Index | Old Index