print FILE "\nnever_direct allow all\n\n";
}
- if (($proxysettings{'ENABLE_FILTER'} eq 'on') && ($proxysettings{'ENABLE_UPDXLRATOR'} eq 'on'))
+ if (($proxysettings{'ENABLE_FILTER'} eq 'on') || ($proxysettings{'ENABLE_UPDXLRATOR'} eq 'on') || ($proxysettings{'ENABLE_CLAMAV'} eq 'on'))
{
print FILE "url_rewrite_program /usr/sbin/redirect_wrapper\n";
if ($filtersettings{'CHILDREN'} > $xlratorsettings{'CHILDREN'})
} else {
print FILE "url_rewrite_children $xlratorsettings{'CHILDREN'}\n\n";
}
- } else
- {
-
- if ($proxysettings{'ENABLE_FILTER'} eq 'on')
- {
- print FILE <<END
-url_rewrite_program /usr/sbin/redirect_wrapper
-url_rewrite_children $filtersettings{'CHILDREN'}
-
-END
- ;
- }
- if ($proxysettings{'ENABLE_UPDXLRATOR'} eq 'on')
- {
- print FILE <<END
-url_rewrite_program /usr/sbin/redirect_wrapper
-url_rewrite_children $xlratorsettings{'CHILDREN'}
-
-END
- ;
- }
}
close FILE;
}
PROG = squidclamav
PAK_VER = 1
+DEPS = "clamav"
+
###############################################################################
# Top-level Rules
###############################################################################
md5 : $(subst %,%_MD5,$(objects))
+dist:
+ @$(PAK)
+
###############################################################################
# Downloading, checking, md5sum
###############################################################################
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
- cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/squidGuard-$(VER)-20071117.patch
cd $(DIR_APP) && ./configure --prefix=/usr
- cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
- cp -f $(DIR_SRC)/squidclamav/squidclamav.conf /etc/squidclamav.conf
+ cp -f $(DIR_CONF)/squidclamav/squidclamav.conf /etc/squidclamav.conf
@rm -rf $(DIR_APP)
@$(POSTBUILD)