Building RPMs for Squid, SquidGuard

Squid

Get a few dependencies to get the ball rolling:

yum -y groupinstall “Development Tools”
yum -y install rpm-build openjade linuxdoc-tools openldap-devel pam-devel openssl-devel httpd rpm-devel expat-devel db4-devel libpcap-devel

Browse http://www.jur-linux.com/rpms/el-updates/5Client/SRPMS/ and find the latest Source RPM for your architecture, then install the sprm e.g.

wget http://www.jur-linux.com/rpms/el-updates/5Client/SRPMS/squid-3.1.12-2.el5.src.rpm
rpm -ivh squid*.src.rpm

This does not actually install the rpm but puts the source files under: /usr/src/redhat

So the spec file we need to build the package will be at: /usr/src/redhat/SPECS/squid.spec

We can then build the rpm with:

rpmbuild –bb squid.spec

This builds the rpm and places it in /usr/src/redhat/RPMS/ which you can install as normal with rpm -Uvh squid*.rpm

SquidGuard

I wanted to use the ldap functionality of squidGuard version 1.4 so. There is a shell script to make and build a squidguard 1.4 rpm with ldap support at the following address:

https://gist.github.com/983064

 

 

One Response to “Building RPMs for Squid, SquidGuard”

  1. Squidblacklist

    Squidblacklist.org is the worlds leading publisher of native acl
    blacklists tailored specifically for Squid proxy, and alternative formats for all major third party plugins as well as
    many other filtering platforms. Including SquidGuard, DansGuardian, and ufDBGuard, as well as pfSense and more.

    There is room for better blacklists, we intend to fill that gap.

    It would be our pleasure to serve you.

    Signed,

    Benjamin E. Nichols
    http://www.squidblacklist.org

    Reply

Leave a Reply to Squidblacklist

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>