Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dansguardian Google Patch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
BoBoeBoe
n00b
n00b


Joined: 17 Feb 2004
Posts: 69

PostPosted: Wed Dec 06, 2006 11:04 am    Post subject: Dansguardian Google Patch Reply with quote

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
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Wed Dec 06, 2006 3:50 pm    Post subject: Re: Dansguardian Google Patch Reply with quote

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
View user's profile Send private message
BoBoeBoe
n00b
n00b


Joined: 17 Feb 2004
Posts: 69

PostPosted: Wed Dec 06, 2006 11:09 pm    Post subject: --- Invalid atom in Reply with quote

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
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Thu Dec 07, 2006 1:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
BoBoeBoe
n00b
n00b


Joined: 17 Feb 2004
Posts: 69

PostPosted: Thu Dec 07, 2006 3:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
BoBoeBoe
n00b
n00b


Joined: 17 Feb 2004
Posts: 69

PostPosted: Thu Dec 07, 2006 4:13 pm    Post subject: Package.keywords file ignored Reply with quote

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
View user's profile Send private message
BoBoeBoe
n00b
n00b


Joined: 17 Feb 2004
Posts: 69

PostPosted: Thu Dec 07, 2006 4:23 pm    Post subject: beta is beta and Masked with a reason Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum