public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/mtr/
Date: Sat,  4 Feb 2017 21:16:12 +0000 (UTC)	[thread overview]
Message-ID: <1486242956.e5099643edcd981586507f486a885fd797cd7be3.grobian@gentoo> (raw)

commit:     e5099643edcd981586507f486a885fd797cd7be3
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  4 21:15:03 2017 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Feb  4 21:15:56 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5099643

net-analyzer/mtr: fix filecaps problem in Prefix, bug #599604

Package-Manager: portage-2.3.3

 net-analyzer/mtr/mtr-0.87-r1.ebuild | 60 +++++++++++++++++++++++++++++++++++++
 net-analyzer/mtr/mtr-9999.ebuild    | 10 ++++++-
 2 files changed, 69 insertions(+), 1 deletion(-)

diff --git a/net-analyzer/mtr/mtr-0.87-r1.ebuild b/net-analyzer/mtr/mtr-0.87-r1.ebuild
new file mode 100644
index 00000000..50bfe44
--- /dev/null
+++ b/net-analyzer/mtr/mtr-0.87-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils fcaps flag-o-matic
+
+DESCRIPTION="My TraceRoute, an Excellent network diagnostic tool"
+HOMEPAGE="http://www.bitwizard.nl/mtr/"
+SRC_URI="ftp://ftp.bitwizard.nl/mtr/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="gtk ipv6"
+
+RDEPEND="
+	sys-libs/ncurses:0=
+	gtk? (
+		dev-libs/glib:2
+		x11-libs/gtk+:2
+	)
+"
+DEPEND="
+	${RDEPEND}
+	sys-devel/autoconf
+	virtual/pkgconfig
+"
+
+DOCS=( AUTHORS FORMATS NEWS README SECURITY TODO )
+FILECAPS=( cap_net_raw usr/sbin/mtr )
+PATCHES=(
+	"${FILESDIR}"/${PN}-0.80-impl-dec.patch
+	"${FILESDIR}"/${PN}-0.87-ipv6.patch
+	"${FILESDIR}"/${PN}-0.87-tinfo.patch
+)
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_configure() {
+	# In the source's configure script -lresolv is commented out. Apparently it
+	# is needed for 64bit macos still.
+	[[ ${CHOST} == *-darwin* ]] && append-libs -lresolv
+
+	econf \
+		$(use_enable ipv6) \
+		$(use_with gtk) \
+		--disable-gtktest
+}
+
+pkg_postinst() {
+	if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
+		ewarn "mtr needs root privileges to run.  To grant them:"
+		ewarn " % sudo chown root ${EPREFIX}/usr/sbin/mtr"
+		ewarn " % sudo chmod u+s ${EPREFIX}/usr/sbin/mtr"
+	fi
+}

diff --git a/net-analyzer/mtr/mtr-9999.ebuild b/net-analyzer/mtr/mtr-9999.ebuild
index 797b07c..47d97b0 100644
--- a/net-analyzer/mtr/mtr-9999.ebuild
+++ b/net-analyzer/mtr/mtr-9999.ebuild
@@ -29,7 +29,7 @@ DEPEND="
 "
 
 DOCS=( AUTHORS FORMATS NEWS README SECURITY TODO )
-FILECAPS=( cap_net_raw /usr/sbin/mtr )
+FILECAPS=( cap_net_raw usr/sbin/mtr )
 PATCHES=(
 	"${FILESDIR}"/${PN}-9999-tinfo.patch
 )
@@ -58,3 +58,11 @@ src_configure() {
 		$(use_with gtk) \
 		$(use_with ncurses)
 }
+
+pkg_postinst() {
+	if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
+		ewarn "mtr needs root privileges to run.  To grant them:"
+		ewarn " % sudo chown root ${EPREFIX}/usr/sbin/mtr"
+		ewarn " % sudo chmod u+s ${EPREFIX}/usr/sbin/mtr"
+	fi
+}


             reply	other threads:[~2017-02-04 21:16 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-04 21:16 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-11-25  6:36 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/mtr/ Sam James
2023-07-28 14:29 Sam James
2022-04-17 16:44 Sam James
2022-02-16 20:24 Arthur Zamarin
2022-02-16 19:57 Arthur Zamarin
2022-02-15  7:11 Agostino Sarubbo
2022-02-15  7:10 Agostino Sarubbo
2022-02-14 20:50 Sam James
2022-02-14 16:55 Jakov Smolić
2022-02-14 16:55 Jakov Smolić
2021-09-25 19:08 Sam James
2021-08-04 14:26 Yixun Lan
2021-01-06 14:35 Fabian Groffen
2021-01-02 11:11 Sam James
2020-12-29 23:35 Sam James
2020-11-07 20:37 Sergei Trofimovich
2020-11-07 20:34 Sergei Trofimovich
2020-11-07 20:22 Sergei Trofimovich
2020-11-07 20:10 Sergei Trofimovich
2020-11-07  1:23 Sam James
2020-11-07  1:23 Sam James
2020-11-04  6:54 Sam James
2020-11-04  6:54 Sam James
2020-11-04  3:12 Sam James
2020-11-04  3:12 Sam James
2020-10-04  7:17 Jeroen Roovers
2020-09-24  9:47 Jeroen Roovers
2020-09-24  9:46 Jeroen Roovers
2020-09-22  8:32 Jeroen Roovers
2020-09-22  8:31 Jeroen Roovers
2020-09-22  7:08 Jeroen Roovers
2020-07-04 13:18 Benda XU
2019-10-14  8:07 Jeroen Roovers
2019-10-14  7:54 Jeroen Roovers
2019-08-07  7:25 Jeroen Roovers
2019-08-07  7:25 Jeroen Roovers
2019-08-06  5:53 Jeroen Roovers
2019-02-25  9:44 Jeroen Roovers
2017-06-12  5:09 Jeroen Roovers
2017-06-12  5:09 Jeroen Roovers
2017-06-07 10:02 Jeroen Roovers
2017-06-04 21:21 Jeroen Roovers
2017-02-22  7:47 Fabian Groffen
2017-02-08 10:41 Jeroen Roovers
2016-12-21 11:23 Thomas Deutschmann
2016-12-20 19:21 Tobias Klausmann
2016-10-28  4:52 Markus Meier
2016-10-16 17:45 Tobias Klausmann
2016-10-10 15:01 Jeroen Roovers
2016-10-02  7:23 Jeroen Roovers
2016-08-04 10:08 Jeroen Roovers
2015-08-21  8:34 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1486242956.e5099643edcd981586507f486a885fd797cd7be3.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox