Last active
October 7, 2022 06:21
-
-
Save nntu/99a3fda3a2db83a6894b147b011f316e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install build tools | |
apt-get -y install devscripts build-essential fakeroot debhelper dh-autoreconf dh-apparmor cdbs | |
# install additional header packages for squid 5 | |
apt-get -y install \ | |
libcppunit-dev \ | |
libsasl2-dev \ | |
libxml2-dev \ | |
libkrb5-dev \ | |
libdb-dev \ | |
libnetfilter-conntrack-dev \ | |
libexpat1-dev \ | |
libcap-dev \ | |
libldap2-dev \ | |
libpam0g-dev \ | |
libgnutls28-dev \ | |
libssl-dev \ | |
libdbi-perl \ | |
libecap3 \ | |
libecap3-dev \ | |
libsystemd-dev \ | |
libtdb-dev | |
$ git clone https://github.com/squid-cache/squid.git squid | |
Cloning into 'squid'... | |
$ cd squid | |
$ git branch -r | |
origin/HEAD -> origin/master | |
... | |
origin/v3.5 | |
origin/v4 | |
origin/v5 | |
$ git checkout v5 | |
Branch 'v5' set up to track remote branch 'v5' from 'origin'. | |
Switched to a new branch 'v5' | |
$ ./bootstrap.sh | |
automake (1.16.1) : automake | |
autoconf (2.69) : autoconf | |
libtool (2.4.6) : libtool | |
libtool path : /usr/bin | |
Bootstrapping | |
parallel-tests: installing 'cfgaux/test-driver' | |
Fixing configure recursion | |
Autotool bootstrapping complete. | |
./configure --prefix=/usr \ | |
--localstatedir=/var \ | |
--libexecdir=${prefix}/lib/squid \ | |
--datadir=${prefix}/share/squid \ | |
--sysconfdir=/etc/squid \ | |
--with-default-user=proxy \ | |
--with-logdir=/var/log/squid \ | |
--with-pidfile=/var/run/squid.pid \ | |
--enable-delay-pools --enable-linux-netfilter -enable-ssl \ | |
--with-build-environment=default "--enable-build-info=Debian linux" \ | |
--datadir=/usr/share/squid --sysconfdir=/etc/squid --libexecdir=/usr/lib/squid \ | |
--mandir=/usr/share/man --enable-inline --disable-arch-native \ | |
--enable-async-io=8 --enable-storeio=ufs,aufs,diskd,rock \ | |
--enable-removal-policies=lru,heap --enable-delay-pools --enable-cache-digests \ | |
--enable-icap-client --enable-follow-x-forwarded-for --enable-auth-basic=DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB \ | |
--enable-auth-digest=file,LDAP --enable-auth-negotiate=kerberos,wrapper \ | |
--enable-auth-ntlm=fake,SMB_LM \ | |
--enable-external-acl-helpers=file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,time_quota,unix_group,wbinfo_group \ | |
--enable-security-cert-validators=fake --enable-storeid-rewrite-helpers=file \ | |
--enable-url-rewrite-helpers=fake --enable-eui --enable-esi --enable-icmp \ | |
--enable-zph-qos --enable-ecap --disable-translation --with-swapdir=/var/spool/squid \ | |
--with-pidfile=/run/squid.pid --with-filedescriptors=65536 --with-large-files \ | |
--with-default-user=proxy --srcdir=. --disable-dependency-tracking \ | |
--with-systemd --with-gnutls | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment