Browse Source

dspam: fixed to check if a needed package is effectively installed before enabling the coresponding storage driver

user/chris/wip/linux37
Christian Wiese 12 years ago
parent
commit
f8191169f5
  1. 4
      mail/dspam/dspam.conf

4
mail/dspam/dspam.conf

@ -39,7 +39,7 @@ var_append confopt ' ' "--with-dspam-owner=dspam"
var_append confopt ' ' "--with-dspam-group=dspam"
for x in postgresql:pgsql mysql:mysql; do
if pkginstalled "${x%:*}"; then
if pkginstalled -f "${x%:*}"; then
pkgprefix -t "${x%:*}"
var_append confopt ' ' "--with-${x#*:}-includes=$root$( pkgprefix includedir ${x%:*} )"
var_append confopt ' ' "--with-${x#*:}-libraries=$root$( pkgprefix libdir ${x%:*} )"
@ -49,7 +49,7 @@ for x in postgresql:pgsql mysql:mysql; do
fi
done
if pkginstalled sqlite; then
if pkginstalled -f sqlite; then
pkgprefix -t sqlite
var_append confopt ' ' "--with-sqlite-includes=$root$( pkgprefix includedir sqlite )"
var_append confopt ' ' "--with-sqlite-libraries=$root$( pkgprefix libdir sqlite )"

Loading…
Cancel
Save