diff options
author | Jeroen Roovers <jer@gentoo.org> | 2013-11-12 22:31:09 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2013-11-12 22:31:09 +0000 |
commit | cab591c555ca8961a2b9eba61f7d4bf908f96a92 (patch) | |
tree | c05bfceba2163e87d0efc06b3bfc5c7da6934f29 /net-analyzer | |
parent | Version bump to 3.0.10.1; fixes bug #491082, reported by pierigno. (diff) | |
download | historical-cab591c555ca8961a2b9eba61f7d4bf908f96a92.tar.gz historical-cab591c555ca8961a2b9eba61f7d4bf908f96a92.tar.bz2 historical-cab591c555ca8961a2b9eba61f7d4bf908f96a92.zip |
Old.
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0xA792A613
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/wireshark/ChangeLog | 6 | ||||
-rw-r--r-- | net-analyzer/wireshark/Manifest | 24 | ||||
-rw-r--r-- | net-analyzer/wireshark/wireshark-1.10.2.ebuild | 223 | ||||
-rw-r--r-- | net-analyzer/wireshark/wireshark-1.8.10.ebuild | 212 |
4 files changed, 10 insertions, 455 deletions
diff --git a/net-analyzer/wireshark/ChangeLog b/net-analyzer/wireshark/ChangeLog index ae1d48930694..a6732c34464d 100644 --- a/net-analyzer/wireshark/ChangeLog +++ b/net-analyzer/wireshark/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-analyzer/wireshark # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.562 2013/11/12 20:12:40 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.563 2013/11/12 22:31:08 jer Exp $ + + 12 Nov 2013; Jeroen Roovers <jer@gentoo.org> -wireshark-1.10.2.ebuild, + -wireshark-1.8.10.ebuild: + Old. 12 Nov 2013; Agostino Sarubbo <ago@gentoo.org> wireshark-1.10.3.ebuild, wireshark-1.8.11.ebuild: diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest index e92230e15868..38cc3ab0ee22 100644 --- a/net-analyzer/wireshark/Manifest +++ b/net-analyzer/wireshark/Manifest @@ -1,35 +1,21 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA256 AUX wireshark-1.10.1-oldlibs.patch 795 SHA256 2ae88c478ea5c76cbb6eeb6fabb93ed85eba614a3cfa5a906a8989d76d3c2730 SHA512 1b147f3671fc96577612d8ef50b929ca1e255dbdedd47301dbfad964054880804317af5648fbbd2e86cddfd58d0b3560b57f9f62ddababec43b7ab6c52f02d96 WHIRLPOOL e2793c481dc43e1a4430206074a4f566b223d1a0f11f22d6a7ca0479899bf8fee42715b2fd28e9043c060ff1d01e11806ca6b521fa6e7a3ae44c71d2c42e4a33 AUX wireshark-1.11.0-oldlibs.patch 776 SHA256 0b4b23ad3ce7022809187ce970733a4c6bdb9fed31099853b399498fde8dee66 SHA512 dde2cbfd839409c594562b71783204279c37697939d44ee56ce4966d7dd43d04ab5837bd51551c416ec789b56f8efd0016e6ecc2311af8b3109e987da301bef6 WHIRLPOOL 57fb7f67166440208c5fe023f8c7e62a4f860ae5fecf02df6e9b8b45fe31c999f7eeeee83914bbfc26c656c69bfceee75c94f9ac80c64ebd0c1d6db792b66665 AUX wireshark-1.6.13-ldflags.patch 230 SHA256 bb56440fb9de9ed480b992d202feac93a53003e9fa47869f54c6f2f30d315720 SHA512 c4a2c66e6ea9b523ca9f5a3e37411221f5aa630de07d7bf84633855ac44da60b3b493671e578dbfd67de94e87ab1c79203f9b80b57f9460f2a81ee39f58171b3 WHIRLPOOL ca20e190c7a8d7ca69c6d90cfb28f8f1c8896b6793b9a026567ec4df4f7080ca6424ab249d01754db1059891d32362444178272489b4425e895f3031a0e1e0f7 -DIST wireshark-1.10.2.tar.bz2 26667284 SHA256 b7a83314424e13639c591de924aa240bc5f3d9cae01dde69bf858fa04b22a33d SHA512 fd2ad466b122e2044718d8b42d0b323293d2e7fe04af700a1e94d00c720f78ba664e9cdb9a7fb35a13a6f7d99d81e4345482ee8d98b7538972a3f23250a44702 WHIRLPOOL 41ca39120c7a3356bb221f1f2147d5dd278037c47c6613b8e8136e399455f04e16abfde7fd2561f95f4618afd5e9c341c1aff448f160624e6ae4f20f00e2c8d7 DIST wireshark-1.10.3.tar.bz2 26672853 SHA256 c1641b36aeb0ca2c1a95fb01d2c647888b65e00a215c9a6464b5fc61e0fd498c SHA512 38a0cb0382789d62acc273bd9751c7c06b4891313dbe3fbd8a4dfaa64a1b5b9f9649a539204053835a70951b259b4ae64f67d3a2064cfa7089ef1390bd0be2be WHIRLPOOL 768c480e9caf580bfdad5f265a13d967eefcfb4cee7607eca8c33c8f115fc2e4102fc1e994282d20da1a9c421d59db5fd56b4e08efedf3c9981b5b86395e1b65 DIST wireshark-1.11.0.tar.bz2 27492409 SHA256 aa38a12b8a52901d9006c80c0a41ec5734f32121e64f8ad80ba51e3b00696260 SHA512 fc8fb4e3ddf17db2b19de9f92ccb94af4a7a790602c9bc01d6255a754911b78f80c954c6b7c573328293c602126d89081216e70ecdd812d85e6a837b4d4a1355 WHIRLPOOL 941e0c5d3e68798f85bde89df394d05213addcb3c92619e24dbc00dff03a58cf82208c510beb46e57224ece4e982dc25cc32d2d82633475ce44a90fc94f5dc3c -DIST wireshark-1.8.10.tar.bz2 24125925 SHA256 27b67be9c8024c18899f1694698b01b589f3111f673f3e8da62cbe548cd2c242 SHA512 9ca4c320fd537e40a44ea5869217e0748c4cf9bf821a78bc46313621c8f43c5a4a0dd817cd2f919809c9136aefaa1bb7c8295f1cf0f24ddbfb4f7f61a9e996e7 WHIRLPOOL df6c8c5879e807eb8ecc3be6aa6868c57a845a1f68c6afdc2eb2b967556889e88afb280fb66f1417f28dbc1a744b969ac62cdc498b8296bf678c3c37cdb6ad6e DIST wireshark-1.8.11.tar.bz2 24131276 SHA256 fcba2bd7ccd85d0d68cda18d0d6422be45a7f04dcd897b59a4aa859ff48f8fdb SHA512 4b361e6750906c3680d443bbf7bafb3b882577b883e270835fecef541aaaef507230a4699fa3400f955244a0f6b2c724133d52ba8f013b7c8ed02486b733d411 WHIRLPOOL 7da0331c5a5506cb1056fc2c5903b57650b6acb3ca728fd656c8eeb2cfc308c870f82267b026a169b8c7ae927c7f876bba8f188efa3206e07bf9b82ec307e1d9 -EBUILD wireshark-1.10.2.ebuild 5692 SHA256 68d7ef153bc8b5d202111b54da73c2dfda1c676af0831bfe098e3a7e3997cb1f SHA512 bddeb0e250b1d22378e8b2fb163a85c2313ecad722e41c2a7a060fa2b0bed5c139178e223dcf93867b571d40b56f9dab8eea3f624f9c2bf663b208c85bab87f4 WHIRLPOOL 1d67afffcd82a613ebce186d47b03325e681208cfc2ba2ec811796c66bec24b2bb1c25b9f30eb1063b58403ae3b736807b4dd969ab6bd734160d1bb27614acfe EBUILD wireshark-1.10.3.ebuild 5691 SHA256 16617224d607b8640db7a67da3db7e1aa6931fdf10dae172e5a7e00591410788 SHA512 5cb52c350b6933b7ed23df9557b705aeb545dedfd6acd21a6a27e610281a46c38d6e549a343463214d2632b03aca78718ecc4f985530ec1e0bb8b58c30c29ae4 WHIRLPOOL ba1fc5ccf6bf4f6535e74864f2d7b031c861d5a4bfd14602ace0e6b599ff4ecff8f4c223f6b56a166ba8491cbaeb2f10689e470d2918f47d7925f9e6f1448678 EBUILD wireshark-1.11.0-r2.ebuild 5859 SHA256 9fc19e1e816fef6ba52ced8506368f0fbe58b31e924b3f9563095683f57a1e99 SHA512 3d8757d959f1e59b704913a1beeb543d3fafc1142ad88b2c4c7113d7840252884b3752fe7e10581a97fa8280149ee73b0fac7f03a7ab85d520b26d68d42e3873 WHIRLPOOL 840812ea66f5a50f491675e0915ab35f7accaa73fae05fbaa06d4325d531d384def7d028565c0bba918cc99bc60269850a7b900150bb338353179bbc5956adcf -EBUILD wireshark-1.8.10.ebuild 5498 SHA256 549a9ff307a9874a8f4b3b96ed5fa807ea7727de90d34e336a89d7c85343a0e6 SHA512 a1d7c7b0144148256c8077b9fa584557f8edd8a31b1287d9b0c9570732a371fca20ea345554ab3866fa410fb5c82225edd2be9bb4ec9646237f2766df733c19d WHIRLPOOL a33d920c6ff88cf30475edae063f0d0d065919812ae1eab4f985b3c799a23670a7331852c645577ab54bf00c4f8b093825a98af9bdcf283367318e0a0661d679 EBUILD wireshark-1.8.11.ebuild 5501 SHA256 5ef20f2a29b6ebd16eefebd81ee9256f2c1ec3282873895f668f723e3796a765 SHA512 587b65c9fcbf28a81db37752722002d5f58a49004e06789fe139464ec77b897dff4979f3624e4876d79bcb8b88a2fc727f4dc8da8e974e6ec7c3768c9af04a82 WHIRLPOOL 24da26cf51472e65a767911083d3a3367df3be3d14347bdb89172e9569e3f839b350fb4b6d959167ca491bf191e29a6742da3efbd83f4788af188bf348d3b068 -MISC ChangeLog 82115 SHA256 dec42a6a4a4a21f21bebcfb37cf021b2872d0a7aa1e9afdd8811ad04bd1986d1 SHA512 faffbabca18b360d888a2b94faaaef397fe86f008e9b906cb682cba261a1cd184241c892d8253cf279f52044ba31134e0c574d0150f96573b671cc42ed2fe9bc WHIRLPOOL 1dc381a7f0ac88f092afe6e903fdfe3a6d3465c888e74d21b1653731fcc76577f700423fd883653fd9d4594007ff55cac20a9ecb329132d5dfe10dbc1c1a4f5f +MISC ChangeLog 82224 SHA256 1d8f3ee9bfeb7ac3dcbc7e1436800ba8bd8cddf684bd0451a9dcf83ce95ba18a SHA512 fed005c107f95e4fd16d9c00ea399324bc0aba2883184f8d178b223b69ae76b2a6dba54d022152cd7a31481917883efe0563315db9ac088503055a934264e90f WHIRLPOOL 7c77d42fe1996bfe02648cee3227a6a4d67addf2a79c7193c8d0db9fe22087888930013fc8f37da9633f1071cac0dac916fd5afa012dd2c1c8495325d49e2cd2 MISC metadata.xml 2662 SHA256 aa3e958ce2704697a912374dfd9df72310353b54883e63de57b1f4e925f804eb SHA512 2eaf02dbd17d346b42dd2ecbb10318c08f8cba0e6bf0cd0dd76f145cc37c1eb35788c4a60d90c42b92c8b7e554315a40046b3b94c5d1a004ebb88650eb296dda WHIRLPOOL 21d6545372ed8aae96efb37f295904a3b14a721e754daf3bab74284d2e7527944fa6c75dc34c3229dea0c815641574f46f72b4b173d0653c6a92bf06341b81a5 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCgAGBQJSgou5AAoJELp701BxlEWfAcMP/2A5D5/RqiHJwUbkEvHKLKeQ -ez/MxnkHjauZumkry5y5hqmUwRf94R/cuvS/W63CcMndbpyGpHxsJRmvrlkTLns4 -/c08Yyg3KiYtDxzMJrZdbVVx07urEGMfWi1ZKioz8yH33jB1bBTXPr0f5FRUwYAG -RMwmwRSFvD3hOKqlTeW3c6faq0ML2JeriGHwpj4DdPSyQiO1hNTNl9+L19v2slCf -kZxDHMUVdNP2kWhHttrFYPUDkqz06fx3/vijNC4IhPtScfFH+rCLqtm5L46l33v1 -/x8dX1S7bP0hDSKT8XOTeOyJ7xfTd8NZ9+W6FCxhfO2KQUVrdigKI7ttGBsW9w6R -tXFhMucreNk8RaBilh286NTui+r+W/Vc/4Vtlmt2Q0PCpbc3aP4GRCF9RFQmvyG3 -UrcTSFiLOD2my1rmvgZ4K46+9OhmwMvpjx+HOL85pAIXnpz1Xa4og0zVJ22IJCZ4 -AKsbRM9F5vQCDupXs8gQjMRzMT4yiA0pbsYh9sWwgGLRivDpbWj6iIpwNYACCmfY -jK1URhrVptCXlmkqy+3NsUlWEC0QLdTaLksEsWsrPaAUtia1L9C+cf1mAKPjxIW0 -8N+lRTqTr14X9+57vLySBbes5cQdIN978uobmSmOYt8ei83nMRFmZaRQ5q1QMcZT -pab8GkJD+jmeVrkX6yBA -=KEMh +iEYEAREIAAYFAlKCrC0ACgkQVWmRsqeSphNEdwCdEl/n0EgKhvaMJskoy7jynfkZ +iA4An2Z3VlUOdNoq1NZwwI4sYyCnLTPU +=JaEl -----END PGP SIGNATURE----- diff --git a/net-analyzer/wireshark/wireshark-1.10.2.ebuild b/net-analyzer/wireshark/wireshark-1.10.2.ebuild deleted file mode 100644 index 362e91c1494c..000000000000 --- a/net-analyzer/wireshark/wireshark-1.10.2.ebuild +++ /dev/null @@ -1,223 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.10.2.ebuild,v 1.10 2013/10/24 15:07:01 jer Exp $ - -EAPI=5 -inherit autotools eutils fcaps user - -[[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && MY_P=${PN}-${PV/_} || MY_P=${P} -DESCRIPTION="A network protocol analyzer formerly known as ethereal" -HOMEPAGE="http://www.wireshark.org/" -SRC_URI="http://www.wireshark.org/download/src/all-versions/${MY_P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0/${PV}" -KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd" -IUSE=" - adns +caps crypt doc doc-pdf geoip +gtk2 gtk3 ipv6 kerberos libadns lua - +netlink +pcap portaudio qt4 selinux smi ssl zlib -" -REQUIRED_USE=" - ?? ( gtk2 gtk3 qt4 ) - ssl? ( crypt ) -" - -GTK_COMMON_DEPEND=" - x11-libs/gdk-pixbuf - x11-libs/pango - x11-misc/xdg-utils -" -RDEPEND=" - >=dev-libs/glib-2.14:2 - netlink? ( dev-libs/libnl ) - adns? ( !libadns? ( >=net-dns/c-ares-1.5 ) ) - crypt? ( dev-libs/libgcrypt ) - caps? ( sys-libs/libcap ) - geoip? ( dev-libs/geoip ) - gtk2? ( - ${GTK_COMMON_DEPEND} - >=x11-libs/gtk+-2.4.0:2 - ) - gtk3? ( - ${GTK_COMMON_DEPEND} - x11-libs/gtk+:3 - ) - kerberos? ( virtual/krb5 ) - libadns? ( net-libs/adns ) - lua? ( >=dev-lang/lua-5.1 ) - pcap? ( net-libs/libpcap[-netlink] ) - portaudio? ( media-libs/portaudio ) - qt4? ( - dev-qt/qtcore:4 - dev-qt/qtgui:4 - x11-misc/xdg-utils - ) - selinux? ( sec-policy/selinux-wireshark ) - smi? ( net-libs/libsmi ) - ssl? ( net-libs/gnutls ) - zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 ) -" - -DEPEND=" - ${RDEPEND} - doc? ( - app-doc/doxygen - app-text/asciidoc - dev-libs/libxml2 - dev-libs/libxslt - doc-pdf? ( dev-java/fop ) - www-client/lynx - ) - >=virtual/perl-Pod-Simple-3.170.0 - sys-devel/bison - sys-devel/flex - virtual/perl-Getopt-Long - virtual/perl-Time-Local - virtual/pkgconfig -" - -S=${WORKDIR}/${MY_P} - -pkg_setup() { - # Add group for users allowed to sniff. - enewgroup wireshark -} - -src_prepare() { - epatch \ - "${FILESDIR}"/${PN}-1.6.13-ldflags.patch \ - "${FILESDIR}"/${PN}-1.10.1-oldlibs.patch - - epatch_user - - eautoreconf -} - -src_configure() { - local myconf - - if use adns; then - if use libadns; then - myconf+=( "--with-adns --without-c-ares" ) - else - myconf+=( "--without-adns --with-c-ares" ) - fi - else - if use libadns; then - myconf+=( "--with-adns --without-c-ares" ) - else - myconf+=( "--without-adns --without-c-ares" ) - fi - fi - - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass - # --with-ssl to ./configure. (Mimics code from acinclude.m4). - if use kerberos; then - case $(krb5-config --libs) in - *-lcrypto*) - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." - ewarn "Note there are annoying license incompatibilities between the OpenSSL" - ewarn "license and the GPL, so do your check before distributing such package." - myconf+=( "--with-ssl" ) - ;; - esac - fi - - # Enable wireshark binary with any supported GUI toolkit (bug #473188) - if use gtk2 || use gtk3 || use qt4 ; then - myconf+=( "--enable-wireshark" ) - else - myconf+=( "--disable-wireshark" ) - fi - - # Hack around inability to disable doxygen/fop doc generation - use doc || export ac_cv_prog_HAVE_DOXYGEN=false - use doc-pdf || export ac_cv_prog_HAVE_FOP=false - - # dumpcap requires libcap, setuid-install requires dumpcap - # --disable-profile-build bugs #215806, #292991, #479602 - econf \ - $(use pcap && use_enable !caps setuid-install) \ - $(use pcap && use_enable caps setcap-install) \ - $(use_enable ipv6) \ - $(use_with caps libcap) \ - $(use_with crypt gcrypt) \ - $(use_with geoip) \ - $(use_with kerberos krb5) \ - $(use_with lua) \ - $(use_with netlink libnl) \ - $(use_with pcap dumpcap-group wireshark) \ - $(use_with pcap) \ - $(use_with portaudio) \ - $(use_with qt4 qt) \ - $(use_with smi libsmi) \ - $(use_with ssl gnutls) \ - $(use_with zlib) \ - $(usex gtk3 --with-gtk3=yes --with-gtk3=no) \ - --disable-extra-gcc-checks \ - --disable-profile-build \ - --disable-usr-local \ - --sysconfdir="${EPREFIX}"/etc/wireshark \ - ${myconf[@]} -} - -src_compile() { - default - use doc && emake -j1 -C docbook -} - -src_install() { - default - if use doc; then - dohtml -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}} - if use doc-pdf; then - insinto /usr/share/doc/${PF}/pdf/ - doins docbook/{{developer,user}-guide,release-notes}-{a4,us}.pdf - fi - fi - - # FAQ is not required as is installed from help/faq.txt - dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \ - doc/{randpkt.txt,README*} - - # install headers - local wsheader - for wsheader in $( echo $(< debian/wireshark-dev.header-files ) ); do - insinto /usr/include/wireshark/$( dirname ${wsheader} ) - doins ${wsheader} - done - - #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/ - insinto /usr/include/wiretap - doins wiretap/wtap.h - - if use gtk2 || use gtk3 || use qt4; then - local c d - for c in hi lo; do - for d in 16 32 48; do - insinto /usr/share/icons/${c}color/${d}x${d}/apps - newins image/${c}${d}-app-wireshark.png wireshark.png - done - done - domenu wireshark.desktop - fi - - use pcap && chmod o-x "${ED}"/usr/bin/dumpcap #357237 - - prune_libtool_files -} - -pkg_postinst() { - # Add group for users allowed to sniff. - enewgroup wireshark - - if use pcap; then - fcaps -o 0 -g wireshark -m 4550 -M 0750 \ - cap_dac_read_search,cap_net_raw,cap_net_admin \ - "${EROOT}"/usr/bin/dumpcap - fi - - ewarn "NOTE: To run wireshark as normal user you have to add yourself to" - ewarn "the wireshark group. This security measure ensures that only trusted" - ewarn "users are allowed to sniff your traffic." -} diff --git a/net-analyzer/wireshark/wireshark-1.8.10.ebuild b/net-analyzer/wireshark/wireshark-1.8.10.ebuild deleted file mode 100644 index c99830c137bc..000000000000 --- a/net-analyzer/wireshark/wireshark-1.8.10.ebuild +++ /dev/null @@ -1,212 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.8.10.ebuild,v 1.12 2013/10/24 15:07:01 jer Exp $ - -EAPI=5 -PYTHON_COMPAT=( python2_6 python2_7 ) -inherit autotools eutils fcaps flag-o-matic python-single-r1 user - -[[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && MY_P=${PN}-${PV/_} || MY_P=${P} -DESCRIPTION="A network protocol analyzer formerly known as ethereal" -HOMEPAGE="http://www.wireshark.org/" -SRC_URI="http://www.wireshark.org/download/src/all-versions/${MY_P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0/${PV}" -KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd" -IUSE=" - adns +caps crypt doc doc-pdf geoip gtk ipv6 kerberos libadns lua +pcap - portaudio python selinux smi ssl zlib -" -REQUIRED_USE=" - ssl? ( crypt ) -" -RDEPEND=" - >=dev-libs/glib-2.14:2 - adns? ( !libadns? ( >=net-dns/c-ares-1.5 ) ) - caps? ( sys-libs/libcap ) - crypt? ( dev-libs/libgcrypt ) - geoip? ( dev-libs/geoip ) - gtk? ( - >=x11-libs/gtk+-2.4.0:2 - dev-libs/atk - x11-libs/pango - x11-misc/xdg-utils - ) - kerberos? ( virtual/krb5 ) - libadns? ( net-libs/adns ) - lua? ( <dev-lang/lua-5.2 ) - pcap? ( net-libs/libpcap ) - portaudio? ( media-libs/portaudio ) - python? ( ${PYTHON_DEPS} ) - selinux? ( sec-policy/selinux-wireshark ) - smi? ( net-libs/libsmi ) - ssl? ( net-libs/gnutls ) - zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 ) -" - -DEPEND=" - ${RDEPEND} - doc? ( - app-doc/doxygen - dev-libs/libxml2 - dev-libs/libxslt - doc-pdf? ( dev-java/fop ) - ) - >=virtual/perl-Pod-Simple-3.170.0 - sys-devel/bison - sys-devel/flex - virtual/perl-Getopt-Long - virtual/perl-Time-Local - virtual/pkgconfig -" - -S=${WORKDIR}/${MY_P} - -pkg_setup() { - if ! use gtk; then - ewarn "USE=-gtk disables gtk-based gui called wireshark." - ewarn "Only command line utils will be built available" - fi - - if use python; then - python-single-r1_pkg_setup - fi - - # Add group for users allowed to sniff. - enewgroup wireshark -} - -src_prepare() { - epatch "${FILESDIR}"/${PN}-1.6.13-ldflags.patch - - sed -i -e '/^Icon/s|.png||g' ${PN}.desktop || die - - epatch_user - - eautoreconf -} - -src_configure() { - local myconf - - if use adns; then - if use libadns; then - myconf+=( "--with-adns --without-c-ares" ) - else - myconf+=( "--without-adns --with-c-ares" ) - fi - else - if use libadns; then - myconf+=( "--with-adns --without-c-ares" ) - else - myconf+=( "--without-adns --without-c-ares" ) - fi - fi - - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass - # --with-ssl to ./configure. (Mimics code from acinclude.m4). - if use kerberos; then - case `krb5-config --libs` in - *-lcrypto*) - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." - ewarn "Note there are annoying license incompatibilities between the OpenSSL" - ewarn "license and the GPL, so do your check before distributing such package." - myconf+=( "--with-ssl" ) - ;; - esac - fi - - # Hack around inability to disable doxygen/fop doc generation - use doc || export ac_cv_prog_HAVE_DOXYGEN=false - use doc-pdf || export ac_cv_prog_HAVE_FOP=false - - # dumpcap requires libcap, setuid-install requires dumpcap - # --disable-profile-build bugs #215806, #292991, #479602 - econf \ - $(use pcap && use_enable !caps setuid-install) \ - $(use pcap && use_enable caps setcap-install) \ - $(use_enable gtk wireshark) \ - $(use_enable ipv6) \ - $(use_with crypt gcrypt) \ - $(use_with caps libcap) \ - $(use_with geoip) \ - $(use_with kerberos krb5) \ - $(use_with lua) \ - $(use_with pcap dumpcap-group wireshark) \ - $(use_with pcap) \ - $(use_with portaudio) \ - $(use_with python) \ - $(use_with smi libsmi) \ - $(use_with ssl gnutls) \ - $(use_with zlib) \ - --disable-extra-gcc-checks \ - --disable-profile-build \ - --disable-usr-local \ - --sysconfdir="${EPREFIX}"/etc/wireshark \ - ${myconf[@]} -} - -src_compile() { - default - use doc && emake -C docbook -} - -src_install() { - default - if use doc; then - dohtml -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}} - if use doc-pdf; then - insinto /usr/share/doc/${PF}/pdf/ - doins docbook/{{developer,user}-guide,release-notes}-{a4,us}.pdf - fi - fi - - # FAQ is not required as is installed from help/faq.txt - dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \ - doc/{randpkt.txt,README*} - - # install headers - local wsheader - for wsheader in $( echo $(< debian/wireshark-dev.header-files ) ); do - insinto /usr/include/wireshark/$( dirname ${wsheader} ) - doins ${wsheader} - done - - #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/ - insinto /usr/include/wiretap - doins wiretap/wtap.h - - if use gtk; then - for c in hi lo; do - for d in 16 32 48; do - insinto /usr/share/icons/${c}color/${d}x${d}/apps - newins image/${c}${d}-app-wireshark.png wireshark.png - done - done - domenu wireshark.desktop - fi - - use pcap && chmod o-x "${ED}"/usr/bin/dumpcap #357237 - - if use python; then - python_optimize "${ED}"/usr/lib*/wireshark/python - fi - - prune_libtool_files -} - -pkg_postinst() { - # Add group for users allowed to sniff. - enewgroup wireshark - - if use pcap; then - fcaps -o 0 -g wireshark -m 4550 -M 0750 \ - cap_dac_read_search,cap_net_raw,cap_net_admin \ - "${EROOT}"/usr/bin/dumpcap - fi - - ewarn "NOTE: To run wireshark as normal user you have to add yourself to" - ewarn "the wireshark group. This security measure ensures that only trusted" - ewarn "users are allowed to sniff your traffic." -} |