summaryrefslogtreecommitdiffstats
path: root/ftp/proftpd/DEPENDS
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/proftpd/DEPENDS')
-rwxr-xr-xftp/proftpd/DEPENDS29
1 files changed, 21 insertions, 8 deletions
diff --git a/ftp/proftpd/DEPENDS b/ftp/proftpd/DEPENDS
index a45290b0c9..203f7bb549 100755
--- a/ftp/proftpd/DEPENDS
+++ b/ftp/proftpd/DEPENDS
@@ -1,5 +1,12 @@
-if list_find "$PROFTPD_MODS" "mod_deflate"; then
- depends zlib
+# handle 'n' selection for modules in CONFIGURE
+if [[ $PROFTPD_MOD == n ]]; then
+ persistent_add PROFTPD_MODS
+fi
+
+optional_depends zlib "" "" "to build mod_deflate module" &&
+
+if is_depends_enabled $SPELL zlib; then
+ list_add "PROFTPD_MODS" "mod_deflate"
fi &&
if list_find "$PROFTPD_MODS" "mod_sql"; then
@@ -33,22 +40,28 @@ if list_find "$PROFTPD_MODS" "mod_wrap" || list_find "$PROFTPD_MODS" "mod_wrap2"
fi &&
if list_find "$PROFTPD_MODS" "mod_tls" || list_find "$PROFTPD_MODS" "mod_sftp" || list_find "$PROFTPD_MODS" "mod_sql_passwd"; then
- depends openssl '--enable-openssl'
+ depends SSL '--enable-openssl'
else
- optional_depends openssl \
- "--enable-openssl" \
- "--disable-openssl" \
+ optional_depends SSL \
+ "--enable-SSL" \
+ "--disable-SSL" \
"for OpenSSL support"
fi &&
-if list_find "$PROFTPD_OPTS" "mod_sftp_pam"; then
+if list_find "$PROFTPD_MODS" "mod_sftp_pam"; then
depends linux-pam
fi &&
-if list_find "$PROFTPD_OPTS" "mod_tls_memcache"; then
+if list_find "$PROFTPD_MODS" "mod_tls_memcache"; then
depends libmemcached
fi &&
+optional_depends geoip "" "" "to build mod_geoip module" &&
+
+if is_depends_enabled $SPELL geoip; then
+ list_add "PROFTPD_MODS" "mod_geoip"
+fi &&
+
optional_depends openldap "" "" "to build mod_ldap module" &&
if is_depends_enabled $SPELL openldap; then