View previous topic :: View next topic |
Author |
Message |
BoBoeBoe n00b

Joined: 17 Feb 2004 Posts: 69
|
Posted: Wed Dec 06, 2006 11:04 am Post subject: Dansguardian Google Patch |
|
|
I've installed dansguardian succesfully together with privoxy and tor.
However when use google images to look for whatever I want to look for I don't find any thumbnails at all.
How can I make dansguardian to show the thumbnails for sites that arn''n blokked and of coarse have it block all other images.
There seems to be a patch for google: http://assets.e2bn.net/misc/patches/dg/v1.3/.
Two things related to this patch:
1) Is it already included in version dansguardian-2.8.0.6-r1 of dansguardian of Gentoo distribution (I suppose not, since the url above refers to cd dansguardian-2.8.0.x).
2) How can I install it. I am sure that is should be possible but I have no experience with patching sourcefiles under Gentoo/Linux.
Remark: So far I added google to the exceptionsitelist of dansguardian, but then all thumbnails show up. |
|
Back to top |
|
 |
massimo Veteran


Joined: 22 Jun 2003 Posts: 1226
|
Posted: Wed Dec 06, 2006 3:50 pm Post subject: Re: Dansguardian Google Patch |
|
|
BoBoeBoe wrote: |
1) Is it already included in version dansguardian-2.8.0.6-r1 of dansguardian of Gentoo distribution (I suppose not, since the url above refers to cd dansguardian-2.8.0.x).
|
I really don't know but since it does not do what you expect you will have to patch it.
BoBoeBoe wrote: |
2) How can I install it. I am sure that is should be possible but I have no experience with patching sourcefiles under Gentoo/Linux.
|
First of all check man ebuild. There you will find how to, step by step, fetch, unpack, compile and [q]merge a package (that's what emerge does for you). Thus, after the unpacking step you can patch the unpacked sources with the patch you've mentioned. man patch is worth a look. If that worked you could compile and merge the package.
patching might work like this:
Code: |
cd /var/tmp/portage/dansguardian-2.8.0.6-r1/work/dansguardian-2.8.0.6-r1
patch -p1 < /path/to/the/patch/google2.8.0.6g1.3.1.2
|
_________________ Hello 911? How are you? |
|
Back to top |
|
 |
BoBoeBoe n00b

Joined: 17 Feb 2004 Posts: 69
|
Posted: Wed Dec 06, 2006 11:09 pm Post subject: --- Invalid atom in |
|
|
Thanks for showing the way forward. However when I looked a little further it seems that there is already a beta version of dansguardian 2.9.8.0. The patch I referred to is already included in this beta version. So I would like to emerge that version or is it insane? the package is masked.
What I did to emerge it is the following: Code: | echo '=proxy-net/dansguardian/dansguardian--2.9.8.0_beta.ebuild ~x86'>> /etc/portage/package.keywords
emerge -av net-proxy/dansguardian/dansguardian-2.9.8.0_beta.ebuild |
This results in the following error:
Quote: | --- Invalid atom in /etc/portage/package.keywords: =proxy-net/dansguardian--2.9.8.0_beta |
Where did I go wrong? |
|
Back to top |
|
 |
massimo Veteran


Joined: 22 Jun 2003 Posts: 1226
|
Posted: Thu Dec 07, 2006 1:06 pm Post subject: |
|
|
Just put proxy-net/dansguardian ~x86 in /etc/portage/package.keywords and then run emerge -av dansguardian. _________________ Hello 911? How are you? |
|
Back to top |
|
 |
BoBoeBoe n00b

Joined: 17 Feb 2004 Posts: 69
|
Posted: Thu Dec 07, 2006 3:27 pm Post subject: |
|
|
Sorry but I'm still not succesfull at this point. I added the line in the /etc/portage/package.keywords file
Code: | proxy-net/dansguardian ~x86 |
When I try to emerge the file it still emerges the latest stable version that I already installed, instead of the masked package.
Code: | emerge -vp dansguardian
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] net-proxy/dansguardian-2.8.0.6-r1 0 kB
Total size of downloads: 0 kB |
When I specifically emerge the requested version by Code: | emerge -vp =dansguardian-2.9.8.0_beta
These are the packages that would be merged, in order:
Calculating dependencies
!!! All ebuilds that could satisfy "=dansguardian-2.9.8.0_beta" have been masked.
!!! One of the following masked packages is required to complete your request:
- net-proxy/dansguardian-2.9.8.0_beta (masked by: ~x86 keyword)
For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook. |
It seems to me that the package.keywords file is ignored. Is there somewhere an option that I need to tell Gentoo to look at this file or what could be wrong? |
|
Back to top |
|
 |
BoBoeBoe n00b

Joined: 17 Feb 2004 Posts: 69
|
Posted: Thu Dec 07, 2006 4:13 pm Post subject: Package.keywords file ignored |
|
|
Sorry it seems that there are some more problems with the package.keywords file being ignored. First search the forums! Yes I know! Sorry!
When I try Code: | ACCEPT_KEYWORDS=~x86 emerge -av dansguardian-2.9.8.0_beta |
Then it starts to emerge the package. Now let's see if my problem with dansguardian and images.google.com is resolved. I'll keep you informed. |
|
Back to top |
|
 |
BoBoeBoe n00b

Joined: 17 Feb 2004 Posts: 69
|
Posted: Thu Dec 07, 2006 4:23 pm Post subject: beta is beta and Masked with a reason |
|
|
beta is beta and Masked with a reason! when I emerge the package I get the following error:
Code: | !!! ERROR: net-proxy/dansguardian-2.9.8.0_beta failed.
Call stack:
ebuild.sh, line 1562: Called dyn_setup
ebuild.sh, line 665: Called pkg_setup
dansguardian-2.9.8.0_beta.ebuild, line 38: Called die
!!! Obsolete config files detected
!!! If you need support, post the topmost build error, and the call stack if relevant. |
I might start by just adding the patch as you explained massimo  |
|
Back to top |
|
 |
|