From 9fc0218ec6fdce06f6db04560fe98750e6ebf392 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sun, 8 Mar 2009 01:43:03 +0200 Subject: [PATCH] asterisk: do postgresql hackery only if postgresql is installed --- network/asterisk/asterisk.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/network/asterisk/asterisk.conf b/network/asterisk/asterisk.conf index 897535c67..086f6ea48 100644 --- a/network/asterisk/asterisk.conf +++ b/network/asterisk/asterisk.conf @@ -2,6 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../asterisk/asterisk.conf +# Copyright (C) 2009 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2004 Clifford Wolf # @@ -33,5 +34,7 @@ makeinstopt="$makeopt install" var_append makeinstopt " " "samples" -var_append GCC_WRAPPER_INSERT " " "-I/opt/postgresql/include" -var_append GCC_WRAPPER_INSERT " " "-L/opt/postgresql/lib" +if pkginstalled postgresql; then + var_append GCC_WRAPPER_INSERT " " "-I/opt/postgresql/include" + var_append GCC_WRAPPER_INSERT " " "-L/opt/postgresql/lib" +fi