<div dir="ltr">I tried your script in a VM aaaaand.....it fails because of the missing libcap3 dependencie.<div><br></div><div>I tried to run the script serveral times.</div><div><br></div><div>Here are the interesting outputs of the last run:</div><div><br></div><div><ol class="text" style="color:rgb(172,172,172);margin:0px;padding:0px 0px 0px 55px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;font-size:12px;line-height:24px;background:rgb(247,247,247)"><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">root@debian123:/home/ich/tmp# squid3 -v</div></li><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">Squid Cache: Version 3.4.8</div></li></ol></div><div><br></div><div><ol class="text" style="color:rgb(172,172,172);margin:0px;padding:0px 0px 0px 55px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;font-size:12px;line-height:24px;background:rgb(247,247,247)"><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">root@debian123:/home/ich/tmp# dir /var/www/html/mydebs/</div></li><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">c-icap_0.4.2-2_amd64.deb              libicapapi4_0.4.2-2_amd64.deb</div></li><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">libc-icap-mod-clamav_0.4.2-1_all.deb          libicapapi4-dbg_0.4.2-2_amd64.deb</div></li><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">libc-icap-mod-contentfiltering_0.4.2-1_amd64.deb  libicapapi-dev_0.4.2-2_amd64.deb</div></li><li class="li2" style="background:rgb(255,255,255)"><div class="de2" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">libc-icap-mod-urlcheck_0.4.2-1_amd64.deb      Packages.gz</div></li><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">libc-icap-mod-virus-scan_0.4.2-1_amd64.deb</div></li></ol></div><div><br></div><div><ol class="text" style="color:rgb(172,172,172);margin:0px;padding:0px 0px 0px 55px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;font-size:12px;line-height:24px;background:rgb(247,247,247)"><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">dpkg-buildpackage: Quellpaket squid3</div></li><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">dpkg-buildpackage: Quellversion 3.5.12-1</div></li><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">dpkg-buildpackage: Quelldistribution unstable</div></li><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">dpkg-buildpackage: Quellen geändert durch Luigi Gangitano <<a href="mailto:luigi@debian.org">luigi@debian.org</a>></div></li><li class="li2" style="background:rgb(255,255,255)"><div class="de2" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">dpkg-buildpackage: Host-Architektur amd64</div></li><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial"> dpkg-source --before-build squid3-3.5.12</div></li><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">dpkg-checkbuilddeps: Nicht erfüllte Bauabhängigkeiten: libecap3-dev (>= 1.0.1-2) libgnutls28-dev</div></li><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">dpkg-buildpackage: Warnung: Bauabhängigkeiten/-konflikte nicht erfüllt; Abbruch</div></li><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">dpkg-buildpackage: Warnung: (Verwenden Sie -d, um sich darüber hinwegzusetzen.)</div></li><li class="li2" style="background:rgb(255,255,255)"><div class="de2" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">Build-Befehl »cd squid3-3.5.12 && dpkg-buildpackage -b -uc« fehlgeschlagen.</div></li><li class="li1" style="background:rgb(255,255,255)"><div class="de1" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-position:initial;background-repeat:initial">E: Kindprozess fehlgeschlagen</div></li></ol><div><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace, serif"><span style="font-size:12px;line-height:24px"><br></span></font></div><div><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace, serif"><span style="font-size:12px;line-height:24px">I also tried to change "libecap" to "libecap3" within the script and I also tried to add "libecap-dev"/"libecap3-dev" to the script: Without any result. </span></font></div></div><div><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace, serif"><span style="font-size:12px;line-height:24px">Of course I used apt-get upgrade after the script finished...no upgrade packages available. </span></font><span style="font-size:12px;line-height:24px;color:rgb(51,51,51);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif">If you still don`t believe me I can send you screenshots.</span></div><div><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace, serif"><span style="font-size:12px;line-height:24px"><br></span></font></div><div><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace, serif"><span style="font-size:12px;line-height:24px">I'm sure that it's possible to get it to work this way, if you spend enough time.</span></font></div><div><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace, serif"><span style="font-size:12px;line-height:24px"><br></span></font></div><div><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace, serif"><span style="font-size:12px;line-height:24px">But I still think that this isn't a good way to do it. When I get it to work after hours of trying and squid releases a new version with new dependencies I have to do the work again(and it's not capable to auto/apt upgrade). On the other hand this way is prone to failure(unstable software, custom installation path, ...) </span></font></div><div><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace, serif"><span style="font-size:12px;line-height:24px"><br></span></font></div><div><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace, serif"><span style="font-size:12px;line-height:24px">At the end this should be a productive system not a tinker pc. It should run without doing a lot of tricks that can fail at any time. </span></font></div><div><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace, serif"><span style="font-size:12px;line-height:24px"><br></span></font></div><div><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace, serif"><span style="font-size:12px;line-height:24px"><b><u>So the only _good_ solution is a modification of the license so that the debian team can build squid with ssl support. This will solve every problem immediately.</u></b></span></font></div><div><font color="#333333" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace, serif"><span style="font-size:12px;line-height:24px"><br></span></font></div><div><br></div><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 Sa., 23. Jan. 2016 um 09:10 Uhr:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div></div><div><br></div><div><br></div><div>i wrote you.. i tested it...</div><div>yes it works....</div><div>i have installed 2 x squid 3.5.10 from sid. and updated these 3.5.12. </div><div><br></div><div>both servers are my production proxys...</div><div><br></div><div>Your not reading or trying. </div><div><br></div><div>libecap3 is replaced by libecap4 !!!!</div><div><br></div><div>go try this or go compile yourself...</div><div><br></div><div>im done..</div></div><div dir="auto"><div><br></div><div><br></div><div><br>Op 22 jan. 2016 om 19:15 heeft startrekfan <<a href="mailto:startrekfan75@freenet.de" target="_blank">startrekfan75@freenet.de</a>> het volgende geschreven:<br><br></div><blockquote type="cite"><div><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" target="_blank">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>
</div></blockquote></div></blockquote></div></div></div>