Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing dsniff without pulling in X
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
dperik
n00b
n00b


Joined: 19 Apr 2006
Posts: 2

PostPosted: Wed Apr 19, 2006 3:24 pm    Post subject: Installing dsniff without pulling in X Reply with quote

When I went to emerge -pvuD world today on my headless Internet Gateway / router machine, for some reason it wanted to pull in X. Being a headless router/machine, I didn't want X installed. I found the culprit was an updated dsniff ebuild.

It seems the >=dsniff 2.3-r7 ebuilds want to depend on either X or libXmu. I didn't want an X server on this machine, so I went to figuring out how to get libXmu on there instead. Here's how I did it:

In /etc/portage/package.keywords:
Code:
# This is all for dsniff
=sys-apps/man-1.6b-r2   ~x86
=x11-misc/util-macros-1.0.1  ~x86
=x11-proto/kbproto-1.0.2  ~x86
=x11-proto/xextproto-7.0.2  ~x86
=x11-proto/xproto-7.0.4  ~x86
=x11-proto/xf86bigfontproto-1.1.2  ~x86
=x11-proto/inputproto-1.3.2  ~x86
=x11-libs/libXau-1.0.0  ~x86
=x11-proto/bigreqsproto-1.0.2  ~x86
=x11-libs/libXdmcp-1.0.0  ~x86
=x11-proto/xcmiscproto-1.1.2  ~x86
=x11-libs/xtrans-1.0.0  ~x86
=x11-libs/libX11-1.0.0-r2  ~x86
=x11-libs/libICE-1.0.0  ~x86
=x11-libs/libSM-1.0.0  ~x86
=x11-libs/libXt-1.0.0-r1  ~x86
=x11-libs/libXext-1.0.0-r1  ~x86
=x11-libs/libXmu-1.0.0  ~x86


That allows libXmu to be installed. Still, the order of dependency checks in the dsniff ebuild still wants to pull in virtual/x11. So we need to put this is /etc/portage/package.mask:
Code:
virtual/x11


After that, and emerge of dsniff should pull in libXmu and required dependencies instead of X. I assume that at some point these dependent packages may change their version numbers and still be masked, which means an update later may break. But I like to put version numbers in my package.keywords to keep from using masked packages forever.

Hope this helps someone.

- Dan
Back to top
View user's profile Send private message
BasketCase
n00b
n00b


Joined: 02 Sep 2003
Posts: 67
Location: Orlando, FL

PostPosted: Wed Apr 19, 2006 4:56 pm    Post subject: Reply with quote

I simply deleted the requirement from the ebuild file and it compiled fine. It didn't even complain that X wasn't installed.

Any special reason why this isn't a USE flag?
Back to top
View user's profile Send private message
dperik
n00b
n00b


Joined: 19 Apr 2006
Posts: 2

PostPosted: Wed Apr 19, 2006 6:17 pm    Post subject: Reply with quote

Good point. I just searched bugs and saw this. I suppose they'll come out with the use flag soon enough:
Back to top
View user's profile Send private message
BasketCase
n00b
n00b


Joined: 02 Sep 2003
Posts: 67
Location: Orlando, FL

PostPosted: Wed Apr 19, 2006 6:47 pm    Post subject: Reply with quote

I am pretty sure it used to have an X USE flag but for some reason that has been removed.
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