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

 

 

Post comment