Browse Source

sendmail: enable LDAP support if openldap is installed

user/chris/next/0.4
Christian Wiese 12 years ago
committed by Christian Wiese
parent
commit
1826fe7204
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      mail/sendmail/sendmail.conf

+ 8
- 0
mail/sendmail/sendmail.conf

@ -55,6 +55,14 @@ sm_main() {
sm_appenddef "confINCDIR" "-L$( pkgprefix -r includedir openssl )" sm_appenddef "confINCDIR" "-L$( pkgprefix -r includedir openssl )"
fi fi
# LDAP support
if pkginstalled -f openldap; then
sm_appenddef "confENVDEF" "-DLDAPMAP"
sm_appenddef "confLIBS" "-lldap -llber"
sm_appenddef "confLIBDIR" "-L$( pkgprefix -r libdir openldap )"
sm_appenddef "confINCDIR" "-L$( pkgprefix -r includedir openldap )"
fi
cd ..; ./Build; ./Build install cd ..; ./Build; ./Build install
install_setmailer sendmail install_setmailer sendmail
} }

Loading…
Cancel
Save