Building Squid 3.0 RPMs with ESI support

I'm not 100% certain these are required to build: rpm-build openjade linuxdoc-tools openldap-devel pam-devel openssl-devel rpm-devel. I'm also not certain all build dependencies are listed.

  • Download a Squid source RPM
  • Extract the SRPM (possibly with --no-md5 option):
    rpm -ivh squid-3.0.STABLE15-2.fc11.src.rpm
    
  • Add build option --enable-esi to /usr/src/redhat/SPECS/squid.spec.
  • Install build loan modification dependencies:
    yum install rpm-build openjade linuxdoc-tools openldap-devel pam-devel openssl-devel \
    rpm-devel gcc-c++ expat-devel libxml2-devel krb5-devel e2fsprogs-devel
    
  • Run the build:
    rpmbuild -bb /usr/src/redhat/SPECS/squid.spec
    
  • Install the new Squid RPM in /usr/src/redhat/RPMS/x86_64.