I tried your script in a VM aaaaand.....it fails because of the missing libcap3 dependencie.
I tried to run the script serveral times.
Here are the interesting outputs of the last run:
- root@debian123:/home/ich/tmp# squid3 -v
- Squid Cache: Version 3.4.8
- root@debian123:/home/ich/tmp# dir /var/www/html/mydebs/
- c-icap_0.4.2-2_amd64.deb libicapapi4_0.4.2-2_amd64.deb
- libc-icap-mod-clamav_0.4.2-1_all.deb libicapapi4-dbg_0.4.2-2_amd64.deb
- libc-icap-mod-contentfiltering_0.4.2-1_amd64.deb libicapapi-dev_0.4.2-2_amd64.deb
- libc-icap-mod-urlcheck_0.4.2-1_amd64.deb Packages.gz
- libc-icap-mod-virus-scan_0.4.2-1_amd64.deb
- dpkg-buildpackage: Quellpaket squid3
- dpkg-buildpackage: Quellversion 3.5.12-1
- dpkg-buildpackage: Quelldistribution unstable
- dpkg-buildpackage: Quellen geändert durch Luigi Gangitano <luigi@xxxxxxxxxx>
- dpkg-buildpackage: Host-Architektur amd64
- dpkg-source --before-build squid3-3.5.12
- dpkg-checkbuilddeps: Nicht erfüllte Bauabhängigkeiten: libecap3-dev (>= 1.0.1-2) libgnutls28-dev
- dpkg-buildpackage: Warnung: Bauabhängigkeiten/-konflikte nicht erfüllt; Abbruch
- dpkg-buildpackage: Warnung: (Verwenden Sie -d, um sich darüber hinwegzusetzen.)
- Build-Befehl »cd squid3-3.5.12 && dpkg-buildpackage -b -uc« fehlgeschlagen.
- E: Kindprozess fehlgeschlagen
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.
Of course I used apt-get upgrade after the script finished...no upgrade packages available. If you still don`t believe me I can send you screenshots.
I'm sure that it's possible to get it to work this way, if you spend enough time.
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, ...)
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.
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.
L.P.H. van Belle <belle@xxxxxxxxx> schrieb am Sa., 23. Jan. 2016 um 09:10 Uhr:
i wrote you.. i tested it...yes it works....i have installed 2 x squid 3.5.10 from sid. and updated these 3.5.12.both servers are my production proxys...Your not reading or trying.libecap3 is replaced by libecap4 !!!!go try this or go compile yourself...im done..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 _install_ the dependencies (Yes, apt-get build-deb squid will install the depencies directly on my debian jessie system)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.L.P.H. van Belle <belle@xxxxxxxxx> schrieb am Fr., 22. Jan. 2016 um 16:46 Uhr:No, this is NOT a problem at all.
You need 4 ! files and no other sid depends, just debian Jessie.
Its a quick write, but should be error free, tested until the squid compile.
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,
change to needed hostname for your webserver etc.. not explained here..
but should be easy to do.
Create a file, add content below ( sed CODE ),
chmod +x and run it. (as root)
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.
And !! all squid3 is now changed to squid !!
Enjoy, and have a nice weekend,
Greetz,
Louis
### CODE, run as root, can be beter, but a quicky for you.
#!/bin/bash
SETPATH=`pwd`
if [ ! -e /etc/apt/sources.list.d/sid.list ]; then
# adding sid repo
cat << EOF >> /etc/apt/sources.list.d/sid.list
#
#deb http://ftp.nl.debian.org/debian/ sid main non-free contrib
deb-src http://ftp.nl.debian.org/debian/ sid main non-free contrib
EOF
fi
if [ ! -e /etc/apt/sources.list.d/localrepo.list ]; then
# adding local repo ( webserver based )
cat << EOF >> /etc/apt/sources.list.d/localrepo.list
#
# change if you done have a webserver.
#file:/var/www/mydebs ./
deb http://localhost/mydebs/ ./
EOF
fi
if [ ! -e /var/www/mydebs ]; then
# get dependes, sources and build sources, setup local apt.
mkdir -p /var/www/mydebs
apt-get install dpkg-dev -y
fi
for x in c-icap c-icap-modules libecap squid ; do
apt-get build-dep $x
apt-get source $x
if [ $x = squid ]; then
sed -i 's/--with-default-user=proxy/--with-default-user=proxy \\/g' squid3-3.5.12/debian/rules
sed -i '/with-default-user=proxy/a \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ --enable-ssl \\' squid3-3.5.12/debian/rules
sed -i '/enable-ssl/a \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ --with-open-ssl=/etc/ssl/openssl.cnf \\' squid3-3.5.12/debian/rules
sed -i '/with-open-ssl/a \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ --enable-linux-netfilter' squid3-3.5.12/debian/rules
fi
apt-get source $x -b
cp *.deb /var/www/mydebs
cd /var/www/mydebs
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
cd $SETPATH
echo "Running apt-get update, please wait."
apt-get update 2> /dev/null
sleep 1
done
## CODE ENDS,.
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users