tech-pkg archive

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

Building Asterisk with PostgreSQL support



I tried changing the package as shown below but it doesn't create the
required modules.  The changes are meant to follow these instructions
on the Asterisk page:

Configure asterisk with postgresql support:
./configure --with-postgres=<dir where postgresql is installed>

However, there is a further instruction:

Then issue the command:
make menuconfig
In the menu select 2.Call Detail Recording -> then check cdr_pgsql

I assume that make menuconfig is already run during the build but I
don't know how to run that second part.  Is there some magic for that?

Anyone have a problem if I commit these changes once I have it working?

Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/comms/asterisk/options.mk,v
retrieving revision 1.6
diff -u -r1.6 options.mk
--- options.mk  29 Jan 2015 21:54:33 -0000      1.6
+++ options.mk  20 Jun 2015 13:46:08 -0000
@@ -2,7 +2,7 @@
 
 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
 PKG_OPTIONS_LEGACY_OPTS+=      gtk:x11
 PKG_SUGGESTED_OPTIONS=         ldap jabber speex
 
@@ -105,3 +105,8 @@
 CONFIGURE_ARGS+=       --without-speex
 CONFIGURE_ARGS+=       --without-speexdsp
 .endif
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+.include "../../mk/pgsql.buildlink3.mk" 
+CONFIGURE_ARGS+=        --with-postgres=${PREFIX}
+.endif

-- 
D'Arcy J.M. Cain <darcy%NetBSD.org@localhost>
http://www.NetBSD.org/ IM:darcy%Vex.Net@localhost


Home | Main Index | Thread Index | Old Index