From 7cc52e3fb60410bdbc6578cd9f5909652a18b3c0 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Thu, 10 Apr 2014 01:46:18 +0200 Subject: [PATCH] ulogd: fixed postgresql lookup support --- network/ulogd/ulogd.conf | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/network/ulogd/ulogd.conf b/network/ulogd/ulogd.conf index b04fbbb81..5b136604b 100644 --- a/network/ulogd/ulogd.conf +++ b/network/ulogd/ulogd.conf @@ -1,8 +1,8 @@ # --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # -# Filename: package/.../ulogd2/ulogd2.conf -# Copyright (C) 2013 The OpenSDE Project +# Filename: package/.../ulogd/ulogd.conf +# Copyright (C) 2013 - 2014 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -17,3 +17,12 @@ hook_add preconf 5 'autoreconf -vfi' prefix= set_confopt + +# postgresql support +if pkginstalled -f postgres; then + var_append extraconfopt ' ' "--with-pgsql=$( pkgprefix -r postgresql )" + var_append extraconfopt ' ' "--with-pgsql-inc=$( pkgprefix -r includedir postgresql )" + var_append extraconfopt ' ' "--with-pgsql-lib=$( pkgprefix -r libdir postgresql )" +else + var_append extraconfopt ' ' "--without-pgsql" +fi