if (opt_httpd)
then
    provides httpd version 3.0.1
    depends on fli4l version 3.0.1

    set files="calls connections main status syslog timetable support conntrack"
    
    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
        split (files, files_tmp_%, ' ', numeric)
        foreach file in files_tmp_%
        do
            stat("opt/files/srv/www/lang/$file.$lang", langfile)
            if(langfile_res == "OK")
            then
                add_to_opt "files/srv/www/lang/$file.$lang" "mode=444 flags=sh"
            else
                error "could not find 'files/srv/www/lang/$file.$lang', perhaps this file isn't translated yet."    
            fi    
        done    
    done 
    
    foreach i in httpd_user_n
    do
        crypt (httpd_user_%_password[i])
    done
    
    if ( (opt_isdn) && (opt_telmond) && (telmond_log) )
    then
        add_to_opt "etc/phonebook" "flags=utxt"
    fi

fi
