pkgsrc-Bugs archive

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

pkg/49661: comms/asterisk patch to add pgsql and snmp options



>Number:         49661
>Category:       pkg
>Synopsis:       comms/asterisk patch to add pgsql and snmp options
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 12 19:45:00 +0000 2015
>Originator:     Mike Bowie
>Release:        NetBSD 6.1.5
>Organization:
RocketSpace, Inc.
>Environment:
NetBSD netbsd6-1-5-amd64.restricted.sfo5.rocketstre.am 6.1.5 NetBSD 6.1.5 (XEN3_DOMU+pf+carp) #0: Mon Oct 20 16:40:53 UTC 2014  root%netbsd6-1-5-amd64.restricted.sfo3.rocketstre.am@localhost:/usr/obj/sys/arch/amd64/compile/XEN3_DOMU+pf+carp amd64
>Description:
Adds support for including pgsql and snmp modules for Asterisk
>How-To-Repeat:
n/a
>Fix:
netbsd6-1-5-amd64$ diff -ru asterisk.orig asterisk
diff -ru asterisk.orig/Makefile asterisk/Makefile
--- asterisk.orig/Makefile      2015-02-10 14:36:03.000000000 +0000
+++ asterisk/Makefile   2015-02-12 14:05:56.000000000 +0000
@@ -4,6 +4,7 @@
 #       tarballs need to be checked
 
 DISTNAME=      asterisk-11.15.1
+PKGREVISION=   1
 DIST_SUBDIR=   ${PKGNAME_NOREV}
 DISTFILES=     ${DEFAULT_DISTFILES}
 EXTRACT_ONLY=  ${DISTNAME}.tar.gz
diff -ru asterisk.orig/PLIST asterisk/PLIST
--- asterisk.orig/PLIST 2014-10-15 01:04:21.000000000 +0000
+++ asterisk/PLIST      2015-02-12 14:16:19.000000000 +0000
@@ -222,6 +222,7 @@
 lib/asterisk/modules/cdr_custom.so
 lib/asterisk/modules/cdr_manager.so
 ${PLIST.unixodbc}lib/asterisk/modules/cdr_odbc.so
+${PLIST.pgsql}lib/asterisk/modules/cdr_pgsql.so
 lib/asterisk/modules/cdr_sqlite3_custom.so
 lib/asterisk/modules/cdr_syslog.so
 lib/asterisk/modules/cel_custom.so
@@ -350,6 +351,7 @@
 lib/asterisk/modules/res_rtp_multicast.so
 lib/asterisk/modules/res_security_log.so
 lib/asterisk/modules/res_smdi.so
+${PLIST.snmp}lib/asterisk/modules/res_snmp.so
 lib/asterisk/modules/res_speech.so
 lib/asterisk/modules/res_stun_monitor.so
 ${PLIST.kqueue}lib/asterisk/modules/res_timing_kqueue.so
diff -ru asterisk.orig/options.mk asterisk/options.mk
--- asterisk.orig/options.mk    2015-02-10 16:09:39.000000000 +0000
+++ asterisk/options.mk 2015-02-12 14:24:43.000000000 +0000
@@ -2,14 +2,14 @@
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.asterisk
 PKG_SUPPORTED_OPTIONS=         zaptel x11 unixodbc ilbc webvmail ldap spandsp
-PKG_SUPPORTED_OPTIONS+=                jabber speex
+PKG_SUPPORTED_OPTIONS+=                jabber speex pgsql snmp
 PKG_OPTIONS_LEGACY_OPTS+=      gtk:x11
 PKG_SUGGESTED_OPTIONS=         ldap jabber speex
 
 .include "../../mk/bsd.options.mk"
 
 PLIST_VARS+=           zaptel x11 unixodbc webvmail ldap spandsp jabber
-PLIST_VARS+=           speex
+PLIST_VARS+=           speex pgsql snmp
 
 # Asterisk now uses DAHDI, not zaptel; not implemented yet...
 #.if !empty(PKG_OPTIONS:Mzaptel)
@@ -105,3 +105,19 @@
 CONFIGURE_ARGS+=       --without-speex
 CONFIGURE_ARGS+=       --without-speexdsp
 .endif
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+.include "../../mk/pgsql.buildlink3.mk"
+CONFIGURE_ARGS+=       --with-postgres
+PLIST.pgsql=           yes
+.else
+CONFIGURE_ARGS+=       --without-postgres
+.endif
+
+.if !empty(PKG_OPTIONS:Msnmp)
+.include "../../net/net-snmp/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-snmp
+PLIST.snmp=            yes
+.else
+CONFIGURE_ARGS+=       --without-snmp
+.endif



Home | Main Index | Thread Index | Old Index