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
465 B

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