if (opt_cpmvrmlog)
then
    depends on fli4l version 3.0
    depends on cron version 3.0
    provides cpmvrmlog version 3.0.1c

    if (cpmvrmlog_compress == "yes")
    then
        stat("opt/files/bin/gzip", gzip_file)
        if(gzip_file_res == "OK")
        then
            add_to_opt "files/bin/gzip" "mode=555"
            add_to_opt "files/lib/libgcc_s.so.1"
        else
        error "cpmvrmlog: Missing gzip-binary from tools package. Please download the package 'tools' from www.fli4l.de and extract it." 
        fi
    fi
    
    foreach i in cpmvrmlog_n
    do
    	if (cpmvrmlog_%_action[i] != "delete")
    	then
    	    if (cpmvrmlog_%_destination[i] == "")
    	    then
    	        error "cpmvrmlog: wrong value of  variable CPMVRMLOG_${i}_DESTINATION: '' (may not be empty except for 'delete')"
    	    fi
    	fi
    	if (cpmvrmlog_%_action[i] != "backup")
    	then
    	    if (cpmvrmlog_%_crontime[i] == "")
    	    then
    	        error "cpmvrmlog: wrong value of  variable CPMVRMLOG_${i}_CRONTIME: '' (may not be empty except for 'backup')"
    	    fi
    	fi
    done
fi

