Instantly share code, notes, and snippets.

@higebu /build.sh
Last active Feb 25, 2016

Embed
What would you like to do?
Install squid 3.5.15 to VyOS
#!/bin/bash
apt-get install build-essential libdb4.8-dev libcppunit-dev libntlm0-dev libldap2-dev libxml2-dev libpam0g-dev libc6-dev
version=3.5.15
cd squid-$version
./configure \
--build=x86_64-linux-gnu \
--prefix=/usr \
--includedir=${prefix}/include \
--mandir=${prefix}/share/man \
--infodir=${prefix}/share/info \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=${prefix}/lib/squid3 \
--disable-maintainer-mode \
--disable-dependency-tracking \
--disable-silent-rules \
--srcdir=. \
--datadir=/usr/share/squid3 \
--sysconfdir=/etc/squid3 \
--mandir=/usr/share/man \
--with-cppunit-basedir=/usr \
--enable-inline \
--enable-async-io=8 \
--enable-storeio="ufs,aufs,diskd" \
--enable-removal-policies="lru,heap" \
--enable-delay-pools \
--enable-cache-digests \
--enable-underscores \
--enable-icap-client \
--enable-follow-x-forwarded-for \
--enable-auth \
--enable-basic-auth-helpers="LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,DB,POP3,getpwnam,squid_radius_auth,multi-domain-NTLM" \
--enable-ntlm-auth-helpers=smb_lm \
--enable-digest-auth-helpers="ldap,password" \
--enable-negotiate-auth-helpers=squid_kerb_auth \
--enable-external-acl-helpers="file_userip,LDAP_group,session,unix_group,wbinfo_group" \
--enable-arp-acl \
--enable-esi \
--disable-translation \
--with-logdir=/var/log/squid3 \
--with-pidfile=/var/run/squid3.pid \
--with-filedescriptors=65536 \
--with-large-files \
--with-default-user=proxy \
--enable-linux-netfilter
make && make install
cp -pb /usr/sbin/squid /usr/sbin/squid3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment