<div dir="ltr">I'm not sure that this script will work. The script isn't doing much more then adding an unstable entry to the sources list and trying to <b>_install_</b> the dependencies (Yes, apt-get build-deb squid will install the depencies directly on my debian jessie system)<div><br></div><div>As I described before: This will not work, because of the missing libecap3 that could not be installed on a stable debian without installing a bunch of other dependencies.<br><div><br><br><div class="gmail_quote"><div dir="ltr">L.P.H. van Belle <<a href="mailto:belle@bazuin.nl">belle@bazuin.nl</a>> schrieb am Fr., 22. Jan. 2016 um 16:46 Uhr:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">No, this is NOT a problem at all.<br>
You need 4 ! files and no other sid depends, just debian Jessie.<br>
Its a quick write, but should be error free, tested until the squid compile.<br>
<br>
I use a separated VM for this and all my created debs are available throuh webaccess, like normal, below is based on "local install" if you want to have is network available, look het het apt/sources.list.d/lcoalrepo.list,<br>
change to needed hostname for your webserver etc.. not explained here..<br>
but should be easy to do.<br>
<br>
Create a file, add content below ( sed CODE ),<br>
chmod +x and run it. (as root)<br>
<br>
In the end you have a compiled squid 3.5.12, ready to instal with ssl enabled. Which is just a apt-get install squid then.<br>
And !! all squid3 is now changed to squid !!<br>
<br>
Enjoy, and have a nice weekend,<br>
<br>
Greetz,<br>
<br>
Louis<br>
<br>
<br>
### CODE, run as root, can be beter, but a quicky for you.<br>
#!/bin/bash<br>
<br>
SETPATH=`pwd`<br>
if [ ! -e /etc/apt/sources.list.d/sid.list ]; then<br>
# adding sid repo<br>
cat << EOF >> /etc/apt/sources.list.d/sid.list<br>
#<br>
#deb <a href="http://ftp.nl.debian.org/debian/" rel="noreferrer" target="_blank">http://ftp.nl.debian.org/debian/</a> sid main non-free contrib<br>
deb-src <a href="http://ftp.nl.debian.org/debian/" rel="noreferrer" target="_blank">http://ftp.nl.debian.org/debian/</a> sid main non-free contrib<br>
EOF<br>
fi<br>
<br>
if [ ! -e /etc/apt/sources.list.d/localrepo.list ]; then<br>
# adding local repo ( webserver based )<br>
cat << EOF >> /etc/apt/sources.list.d/localrepo.list<br>
#<br>
# change if you done have a webserver.<br>
#file:/var/www/mydebs ./<br>
deb <a href="http://localhost/mydebs/" rel="noreferrer" target="_blank">http://localhost/mydebs/</a> ./<br>
EOF<br>
<br>
fi<br>
<br>
if [ ! -e /var/www/mydebs ]; then<br>
# get dependes, sources and build sources, setup local apt.<br>
mkdir -p  /var/www/mydebs<br>
apt-get install dpkg-dev -y<br>
fi<br>
<br>
for x in c-icap c-icap-modules libecap squid ; do<br>
apt-get build-dep $x<br>
apt-get source $x<br>
if [ $x = squid ]; then<br>
        sed -i 's/--with-default-user=proxy/--with-default-user=proxy \\/g' squid3-3.5.12/debian/rules<br>
        sed -i '/with-default-user=proxy/a \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ --enable-ssl \\'  squid3-3.5.12/debian/rules<br>
        sed -i '/enable-ssl/a \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ --with-open-ssl=/etc/ssl/openssl.cnf \\'  squid3-3.5.12/debian/rules<br>
        sed -i '/with-open-ssl/a \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ --enable-linux-netfilter'  squid3-3.5.12/debian/rules<br>
fi<br>
apt-get source $x -b<br>
<br>
cp *.deb /var/www/mydebs<br>
cd /var/www/mydebs<br>
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz<br>
cd $SETPATH<br>
echo "Running apt-get update, please wait."<br>
apt-get update 2> /dev/null<br>
sleep 1<br>
done<br>
<br>
## CODE ENDS,.<br>
<br>
<br>
</blockquote></div></div></div></div>