Search squid archive

Re: simple script to get squid 3.5.12 from Debian sid on Jessie.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
 
To immediately solve every problem just enough to build squid with all dependencies from sources. :) It takes approx 1 hour. :)

25.01.16 0:18, startrekfan пишет:
> 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:
>
>
>    1. root@debian123:/home/ich/tmp# squid3 -v
>    2. Squid Cache: Version 3.4.8
>
>
>
>    1. root@debian123:/home/ich/tmp# dir /var/www/html/mydebs/
>    2. c-icap_0.4.2-2_amd64.deb              libicapapi4_0.4.2-2_amd64.deb
>    3. libc-icap-mod-clamav_0.4.2-1_all.deb
>    libicapapi4-dbg_0.4.2-2_amd64.deb
>    4. libc-icap-mod-contentfiltering_0.4.2-1_amd64.deb
>     libicapapi-dev_0.4.2-2_amd64.deb
>    5. libc-icap-mod-urlcheck_0.4.2-1_amd64.deb      Packages.gz
>    6. libc-icap-mod-virus-scan_0.4.2-1_amd64.deb
>
>
>
>    1. dpkg-buildpackage: Quellpaket squid3
>    2. dpkg-buildpackage: Quellversion 3.5.12-1
>    3. dpkg-buildpackage: Quelldistribution unstable
>    4. dpkg-buildpackage: Quellen geändert durch Luigi Gangitano <
>    luigi@xxxxxxxxxx>
>    5. dpkg-buildpackage: Host-Architektur amd64
>    6.  dpkg-source --before-build squid3-3.5.12
>    7. dpkg-checkbuilddeps: Nicht erfüllte Bauabhängigkeiten: libecap3-dev
>    (>= 1.0.1-2) libgnutls28-dev
>    8. dpkg-buildpackage: Warnung: Bauabhängigkeiten/-konflikte nicht
>    erfüllt; Abbruch
>    9. dpkg-buildpackage: Warnung: (Verwenden Sie -d, um sich darüber
>    hinwegzusetzen.)
>    10. Build-Befehl »cd squid3-3.5.12 && dpkg-buildpackage -b -uc«
>    fehlgeschlagen.
>    11. 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..
>>
>>
>>
>> Op 22 jan. 2016 om 19:15 heeft startrekfan <startrekfan75@xxxxxxxxxx> het
>> volgende geschreven:
>>
>> 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


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iQEcBAEBCAAGBQJWpRdKAAoJENNXIZxhPexGiy0H/2a+VaciND4LAYAecfPqWBfG
7k2hAgPbQsYYgAJ0ZZUXvrDBYjbuP+i8H2BhIkhcN0rU92spI3wiDbdhWvKMcGg/
X9C3/v9+VpDuz7nC01vb6WF1VLSHqxZiqPnsgKlIRu9Fu4oJjgcDdZI9PvCa2ywn
yPCK3EdpoQJs8WtIq5IT3fpZOyNPiDY1SA4Oq4/xOomrifnzmGmE2j5vqYc9aYmI
Yh56NJfcvgR5VisnTxLGDcaXawBphwy9o1tZS9Unuddvdkt652MOzBopxnozzSs0
dJqC/hbR5gM86gc8fq34Hs/9AytQOkM5cYlVtxZIdJLRTXHuP7T3H9uZFo9Nujk=
=8soM
-----END PGP SIGNATURE-----

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux