if (opt_pftpd)
then
  provides pftpd version 3.2.3
  
  if (opt_pftpd_control && !opt_httpd) 
  then
    error "OPT_PFTPD_CONTROL needs OPT_HTTPD - please install http package and see httpd.txt"
  fi

  if (opt_pftpd_control && !opt_tail) 
  then
    error "OPT_PFTPD_CONTROL needs OPT_TAIL - please install tools package and see tools.txt"
  fi
  
  if (pftpd_allow_system_user) 
  then
    warning "PFTPD_ALLOW_SYSTEM_USER='yes' - this may be a security risk!"
  fi

  if (pftpd_allow_symlinks) 
  then
    warning "PFTPD_ALLOW_SYMLINKS='yes' - this may be a security risk!"
  fi

  if (opt_pftpd_control)
  then
    if defined (httpd_gui_lang) 
    then
      if httpd_gui_lang == "auto"
      then
        set gui_lang=locale
      else
        set gui_lang=httpd_gui_lang    
      fi

      split (gui_lang, lang_tmp_%, ' ', numeric)
      foreach lang in lang_tmp_%
      do
        stat("opt/files/srv/www/lang/pftpd.$lang", langfile)
        if(langfile_res == "OK")
        then
          add_to_opt "files/srv/www/lang/pftpd.$lang" "mode=444 flags=sh"
        else
          error "could not find 'files/srv/www/lang/pftpd.$lang', perhaps this file isn't translated yet."    
        fi    
      done    
    fi
  fi
fi
