Browse Source

ulogd: improved database detection

stable/0.6
Christian Wiese 11 years ago
parent
commit
d9fb5ea4a3
  1. 16
      network/ulogd/ulogd.conf

16
network/ulogd/ulogd.conf

@ -18,11 +18,17 @@ hook_add preconf 5 'autoreconf -vfi'
prefix= prefix=
set_confopt set_confopt
# postgresql support # database output plugin support
tuples="postgresql:pgsql mysql:mysql libdbi:dbi"
for tuple in $tuples; do
tuplepkg=${tuple%:*}
tupledb=${tuple#*:}
if pkginstalled -f postgres; then if pkginstalled -f postgres; then
var_append extraconfopt ' ' "--with-pgsql=$( pkgprefix -r postgresql )" var_append extraconfopt ' ' "--with-$tupledb=$( pkgprefix -r $tuplepkg )"
var_append extraconfopt ' ' "--with-pgsql-inc=$( pkgprefix -r includedir postgresql )" var_append extraconfopt ' ' "--with-$tupledb-inc=$( pkgprefix -r includedir $tuplepkg )"
var_append extraconfopt ' ' "--with-pgsql-lib=$( pkgprefix -r libdir postgresql )" var_append extraconfopt ' ' "--with-$tupledb-lib=$( pkgprefix -r libdir $tuplepkg )"
else else
var_append extraconfopt ' ' "--without-pgsql" var_append extraconfopt ' ' "--without-$tupledb"
fi fi
done

Loading…
Cancel
Save