mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
453 B

if [ "$ROCKCFG_PKG_DANSGUARDIAN_SQUID" == 1 ]; then
function dg_squid_preconf() {
# Add the X-Forwarded-For patch
echo "Adding Follow X-Forwarded-For patch"
bunzip2 -c $base/download/mirror/f/follow_xff-2.5-rediff-1.patch.bz2 \
| patch -p1
# Need to regenerate the config files
./bootstrap.sh||true
# Add X-Forwarded-For support
var_append confopt " " "--enable-follow-x-forwarded-for"
}
hook_add preconf 3 "dg_squid_preconf"
fi