From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 378AC1382C5 for ; Fri, 16 Apr 2021 05:33:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7F067E081B; Fri, 16 Apr 2021 05:33:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5CACDE081B for ; Fri, 16 Apr 2021 05:33:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 407A1335C30 for ; Fri, 16 Apr 2021 05:33:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 50D236BD for ; Fri, 16 Apr 2021 05:33:40 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1618551196.38f1aa26c80f353025a8e2763c397dc932a4d100.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/wireshark/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/wireshark/wireshark-3.4.4.ebuild net-analyzer/wireshark/wireshark-9999.ebuild X-VCS-Directories: net-analyzer/wireshark/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 38f1aa26c80f353025a8e2763c397dc932a4d100 X-VCS-Branch: master Date: Fri, 16 Apr 2021 05:33:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 40f53768-3248-427f-98af-a7492d25b117 X-Archives-Hash: 277ee128382a2f69cf8f754d3eb2fed7 commit: 38f1aa26c80f353025a8e2763c397dc932a4d100 Author: Sam James gentoo org> AuthorDate: Fri Apr 16 05:17:54 2021 +0000 Commit: Sam James gentoo org> CommitDate: Fri Apr 16 05:33:16 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38f1aa26 net-analyzer/wireshark: use live template Signed-off-by: Sam James gentoo.org> net-analyzer/wireshark/wireshark-3.4.4.ebuild | 27 +++++++++------ net-analyzer/wireshark/wireshark-9999.ebuild | 49 +++++++++++++++++---------- 2 files changed, 47 insertions(+), 29 deletions(-) diff --git a/net-analyzer/wireshark/wireshark-3.4.4.ebuild b/net-analyzer/wireshark/wireshark-3.4.4.ebuild index d1606cdc102..9b251700aaf 100644 --- a/net-analyzer/wireshark/wireshark-3.4.4.ebuild +++ b/net-analyzer/wireshark/wireshark-3.4.4.ebuild @@ -10,20 +10,25 @@ inherit fcaps flag-o-matic lua-single python-any-r1 qmake-utils xdg-utils cmake DESCRIPTION="A network protocol analyzer formerly known as ethereal" HOMEPAGE="https://www.wireshark.org/" -SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz" -SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-glib-2.68-patches.tar.gz" -S="${WORKDIR}/${P/_/}" + +if [[ ${PV} == *9999* ]] ; then + EGIT_REPO_URI="https://gitlab.com/wireshark/wireshark" + inherit git-r3 +else + SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz" + SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-glib-2.68-patches.tar.gz" + S="${WORKDIR}/${P/_/}" + + KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc64 x86" +fi LICENSE="GPL-2" SLOT="0/${PV}" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc64 x86" -IUSE=" - androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon - +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb - +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt - +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl - sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd -" +IUSE="androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon" +IUSE+=" +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb" +IUSE+=" +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt" +IUSE+=" +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl" +IUSE+=" sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd" CDEPEND=" acct-group/pcap diff --git a/net-analyzer/wireshark/wireshark-9999.ebuild b/net-analyzer/wireshark/wireshark-9999.ebuild index 0854e2e8254..9e293f6104b 100644 --- a/net-analyzer/wireshark/wireshark-9999.ebuild +++ b/net-analyzer/wireshark/wireshark-9999.ebuild @@ -6,23 +6,29 @@ EAPI=7 LUA_COMPAT=( lua5-{1..2} ) PYTHON_COMPAT=( python3_{7..9} ) -inherit fcaps flag-o-matic git-r3 lua-single python-any-r1 qmake-utils xdg-utils cmake +inherit fcaps flag-o-matic lua-single python-any-r1 qmake-utils xdg-utils cmake DESCRIPTION="A network protocol analyzer formerly known as ethereal" HOMEPAGE="https://www.wireshark.org/" -EGIT_REPO_URI="https://gitlab.com/wireshark/wireshark" -LICENSE="GPL-2" +if [[ ${PV} == *9999* ]] ; then + EGIT_REPO_URI="https://gitlab.com/wireshark/wireshark" + inherit git-r3 +else + SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz" + SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-glib-2.68-patches.tar.gz" + S="${WORKDIR}/${P/_/}" + + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~x86" +fi + +LICENSE="GPL-2" SLOT="0/${PV}" -KEYWORDS="" -IUSE=" - androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon - +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb - +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt - +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl - sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd -" -S=${WORKDIR}/${P/_/} +IUSE="androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon" +IUSE+=" +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb" +IUSE+=" +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt" +IUSE+=" +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl" +IUSE+=" sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd" CDEPEND=" acct-group/pcap @@ -94,7 +100,9 @@ REQUIRED_USE=" lua? ( ${LUA_REQUIRED_USE} ) plugin-ifdemo? ( plugins ) " -RESTRICT="!test? ( test )" + +RESTRICT="test" + PATCHES=( "${FILESDIR}"/${PN}-2.6.0-redhat.patch "${FILESDIR}"/${PN}-3.4.2-cmake-lua-version.patch @@ -187,7 +195,12 @@ src_configure() { src_test() { cmake_build test-programs - myctestargs=( --disable-capture --skip-missing-programs=all --verbose ) + myctestargs=( + --disable-capture + --skip-missing-programs=all + --verbose + ) + cmake_src_test } @@ -212,8 +225,8 @@ src_install() { wiretap wsutil ) - for dir in "${dirs[@]}" - do + + for dir in "${dirs[@]}" ; do insinto /usr/include/wireshark/${dir} doins ${dir}/*.h done @@ -235,8 +248,8 @@ src_install() { done fi - if [[ -d "${D}"/usr/share/appdata ]]; then - rm -r "${D}"/usr/share/appdata || die + if [[ -d "${ED}"/usr/share/appdata ]]; then + rm -r "${ED}"/usr/share/appdata || die fi }