From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E8529139BC7 for ; Tue, 29 Sep 2015 17:45:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B61D21C00F; Tue, 29 Sep 2015 17:45:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F26A521C00F for ; Tue, 29 Sep 2015 17:45:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 12F6A340A1B for ; Tue, 29 Sep 2015 17:45:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7C8D21F9 for ; Tue, 29 Sep 2015 17:45:26 +0000 (UTC) From: "Andrew Savchenko" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Savchenko" Message-ID: <1443548580.20bc65e1549a15131c7205b6479b007bde429716.bircoph@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/dropwatch/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/dropwatch/dropwatch-1.4-r1.ebuild X-VCS-Directories: dev-util/dropwatch/ X-VCS-Committer: bircoph X-VCS-Committer-Name: Andrew Savchenko X-VCS-Revision: 20bc65e1549a15131c7205b6479b007bde429716 X-VCS-Branch: master Date: Tue, 29 Sep 2015 17:45:26 +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-Archives-Salt: 1cb09ed0-6653-4342-99a9-6552d379708f X-Archives-Hash: 8985968ee2094c5b2022597ec8ed6226 commit: 20bc65e1549a15131c7205b6479b007bde429716 Author: Andrew Savchenko gmail com> AuthorDate: Tue Sep 29 17:43:00 2015 +0000 Commit: Andrew Savchenko gentoo org> CommitDate: Tue Sep 29 17:43:00 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20bc65e1 dev-util/dropwatch: fix dependencies - sys-devel/binutils -> sys-libs/binutils-libs migration - add subslot qualificator for sys-libs/readline Package-Manager: portage-2.2.22 Signed-off-by: Andrew Savchenko gentoo.org> dev-util/dropwatch/dropwatch-1.4-r1.ebuild | 47 ++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/dev-util/dropwatch/dropwatch-1.4-r1.ebuild b/dev-util/dropwatch/dropwatch-1.4-r1.ebuild new file mode 100644 index 0000000..077335f --- /dev/null +++ b/dev-util/dropwatch/dropwatch-1.4-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit linux-info toolchain-funcs + +DESCRIPTION="A utility to interface to the kernel to monitor for dropped network packets" +HOMEPAGE="https://fedorahosted.org/dropwatch/" +SRC_URI="https://fedorahosted.org/releases/d/r/dropwatch/${P}.tbz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-libs/libnl:3 + sys-libs/binutils-libs + sys-libs/readline:=" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +CONFIG_CHECK="~NET_DROP_MONITOR" + +PATCHES=( + "${FILESDIR}/${P}-makefile.patch" + "${FILESDIR}/${P}-binutils-2.23.patch" +) + +src_prepare() { + epatch ${PATCHES[@]} + epatch_user +} + +src_compile() { + emake CC="$(tc-getCC)" -C src +} + +src_install() { + dobin "src/${PN}" + doman "doc/${PN}.1" + dodoc README +} + +pkg_postinst() { + einfo "Ensure that 'drop_monitor' kernel module is loaded before running ${PN}" +}