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?

RCS file: /cvsroot/pkgsrc/comms/asterisk/,v
retrieving revision 1.6
diff -u -r1.6
---  29 Jan 2015 21:54:33 -0000      1.6
+++  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_SUGGESTED_OPTIONS=         ldap jabber speex
@@ -105,3 +105,8 @@
 CONFIGURE_ARGS+=       --without-speex
 CONFIGURE_ARGS+=       --without-speexdsp
+.if !empty(PKG_OPTIONS:Mpgsql)
+.include "../../mk/" 
+CONFIGURE_ARGS+=        --with-postgres=${PREFIX}

D'Arcy J.M. Cain <> IM:darcy%Vex.Net@localhost

Home | Main Index | Thread Index | Old Index