summaryrefslogtreecommitdiffstats
path: root/ftp/vsftpd/PRE_BUILD
diff options
context:
space:
mode:
authorVlad Glagolev2021-02-07 04:51:06 +0000
committerVlad Glagolev2021-02-07 23:40:01 +0000
commit712056ec9727a6658e2671d24feee642dc4a9e3e (patch)
tree51ba1632076fb468b4f30cae841c70a097e33dc2 /ftp/vsftpd/PRE_BUILD
parent4d9a7e3196739d63ed6f78c01a66b386326c7109 (diff)
vsftpd: correct dependency handling
Diffstat (limited to 'ftp/vsftpd/PRE_BUILD')
-rwxr-xr-xftp/vsftpd/PRE_BUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/ftp/vsftpd/PRE_BUILD b/ftp/vsftpd/PRE_BUILD
index 8dbe1a04ae..8cd9204cd0 100755
--- a/ftp/vsftpd/PRE_BUILD
+++ b/ftp/vsftpd/PRE_BUILD
@@ -22,17 +22,17 @@ sedit '
# the package is installed, but this is the easy way
# I'm doing it for now. :)
#
-if spell_ok tcp_wrappers; then
+if is_depends_enabled ${SPELL} tcp_wrappers; then
sedit "/^#undef VSF_BUILD_TCPWRAPPERS/{s/undef/define/}" builddefs.h
fi &&
-if spell_ok openssl; then
+if is_depends_enabled ${SPELL} $(get_spell_provider ${SPELL} SSL); then
sedit "/^#undef VSF_BUILD_SSL/{s/undef/define/}" builddefs.h
fi &&
#
# builddefs.h defaults to using Linux-PAM
#
-if ! spell_ok linux-pam; then
+if ! is_depends_enabled ${SPELL} linux-pam; then
sedit "/^#define VSF_BUILD_PAM/{s/define/undef/}" builddefs.h
fi