Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
An Example of Local Overlay Install: Wireshark
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Mon Nov 23, 2015 10:52 am    Post subject: An Example of Local Overlay Install: Wireshark Reply with quote

title: An Example of Local Overlay Install: Wireshark
---

I am dying to see the solution to my issue at:

How to extract content from tshark-saved streams? (current title)
https://forums.gentoo.org/viewtopic-t-1033844.html

And, the 10 hours wait for the changes to propagate looked too long for me...

I looked up:

https://packages.gentoo.org/packages/net-analyzer/wireshark

where I followed the link under "Changelog" to:

https://gitweb.gentoo.org/repo/gentoo.git/log/net-analyzer/wireshark?showmsg=1

where the latest commit message:

net-analyzer/wireshark: Version bump (bug #566180 by Pavel Půlpán).

contains the link:

https://gitweb.gentoo.org/repo/gentoo.git/commit/net-analyzer/wireshark?id=76079176be6a22502c25090057341fa96c93feb8

and looking a bit around, I managed to download the ebuild:

Code:

$ wget https://gitweb.gentoo.org/repo/gentoo.git/plain/net-analyzer/wireshark/wireshark-2.0.0.ebuild?id=76079176be6a22502c25090057341fa96c93feb8


The package must be in the machine's distfiles:
Code:

cp -iav /my-local-mirror/distfiles/wireshark-2.0.0.tar.bz2 /usr/portage/distfiles/
chown portage:portage /usr/portage/distfiles/wireshark-2.0.0.tar.bz2


Next I created (seeing there is /usr/portage/net-analyzer/wireshark/, but for
local overlay, pls. see on the Wiki:

Overlay/Local overlay
https://wiki.gentoo.org/wiki/Overlay/Local_overlay

):

[Next I created]... and read what the commands do without my comments ( ;-) ):
Code:

mkdir -p /usr/local/portage/net-analyzer/wireshark/
cp -iav /where-I-downloaded-it/wireshark-2.0.0.ebuild\?id\=76079176be6a22502c25090057341fa96c93feb8 /usr/local/portage/net-analyzer/wireshark/wireshark-2.0.0.ebuild
mkdir /usr/local/portage/net-analyzer/wireshark/files/
chown -R portage:portage /usr/local/portage/net-analyzer/


Before posting, I'll check this again on my Air-Gapped (part of this I did in the online, wearable, clone):
Code:

for i in $(cat /usr/local/portage/net-analyzer/wireshark/wireshark-2.0.0.ebuild \
   | grep '\.patch' | cut -d} -f3 | sed 's/ \\//'); \
   do cp -iav /usr/portage/net-analyzer/wireshark/files/*$i \
   /usr/local/portage/net-analyzer/wireshark/files/ ;\
done ;

( I checked, it is correct, but pls. should you have problems, see:

phpBB Strange White Space problem
https://forums.gentoo.org/viewtopic-t-1032010.html

)

And check that the necessary patches are there:
Code:

ls -l /usr/local/portage/net-analyzer/wireshark/files/


Now the system does what it needs with:
Code:

cd /usr/local/portage/net-analyzer/wireshark/
repoman manifest


And now:

Code:

gbn ~ # emerge -tuDN wireshark |& tee /Cmn/BAK_/emerge.d/emerge-tuDN_wireshark_$(date +%s)

These are the packages that would be merged, in reverse order:

Calculating dependencies  . ... done!
[ebuild     U  ] net-analyzer/wireshark-2.0.0:0/2.0.0::miro [1.12.8-r1:0/1.12.8::gentoo] USE="caps crypt doc filecaps gtk3 ipv6 lua netlink pcap qt4 smi ssl zlib -adns -doc-pdf -geoip -kerberos -portaudio -qt5 -sbc (-selinux)" CPU_FLAGS_X86="-sse4_2%" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB
...


And it installed.
Code:

# equery l wireshark
[I-O] [  ] net-analyzer/wireshark-2.0.0:0/2.0.0
#


I know this is not much, but I thought it would be useful to newbies.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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