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 213F31382C5 for ; Fri, 2 Mar 2018 22:22:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 029A6E0A5E; Fri, 2 Mar 2018 22:22:54 +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 D388BE0A5E for ; Fri, 2 Mar 2018 22:22:53 +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 1985B335C30 for ; Fri, 2 Mar 2018 22:22:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9CC50213 for ; Fri, 2 Mar 2018 22:22:50 +0000 (UTC) From: "Andreas Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Hüttel" Message-ID: <1520029350.3e087566f12985f32416c815e864d7bff867059d.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nsat/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/nsat/nsat-1.5-r5.ebuild X-VCS-Directories: net-analyzer/nsat/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas Hüttel X-VCS-Revision: 3e087566f12985f32416c815e864d7bff867059d X-VCS-Branch: master Date: Fri, 2 Mar 2018 22:22:50 +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: c728f518-ca64-4932-8d02-e929b4b79458 X-Archives-Hash: 67f552da87f6369a8ff76fd95821cc3f commit: 3e087566f12985f32416c815e864d7bff867059d Author: Andreas K. Hüttel gentoo org> AuthorDate: Fri Mar 2 22:22:00 2018 +0000 Commit: Andreas Hüttel gentoo org> CommitDate: Fri Mar 2 22:22:30 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e087566 net-analyzer/nsat: Remove libtirpc automagic and depend on it instead Bug: https://bugs.gentoo.org/371025 Package-Manager: Portage-2.3.24, Repoman-2.3.6 net-analyzer/nsat/nsat-1.5-r5.ebuild | 75 ++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/net-analyzer/nsat/nsat-1.5-r5.ebuild b/net-analyzer/nsat/nsat-1.5-r5.ebuild new file mode 100644 index 00000000000..87d30b46c18 --- /dev/null +++ b/net-analyzer/nsat/nsat-1.5-r5.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools toolchain-funcs + +DESCRIPTION="Network Security Analysis Tool, an application-level network security scanner" +HOMEPAGE="http://nsat.sourceforge.net/" +SRC_URI="mirror://sourceforge/nsat/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="X" + +RDEPEND=" + dev-libs/libmix + net-libs/libnsl:0= + net-libs/libpcap + net-libs/libtirpc + net-libs/rpcsvc-proto + X? ( + dev-lang/tk:* + x11-libs/libX11 + ) +" +DEPEND="$RDEPEND" +S="${WORKDIR}/${PN}" +PATCHES=( + "${FILESDIR}"/${P}-configure.patch + "${FILESDIR}"/${P}-lvalue-gcc4.patch + "${FILESDIR}"/${P}-strip.patch + "${FILESDIR}"/${P}-misc.patch + "${FILESDIR}"/${P}-va_list.patch + "${FILESDIR}"/${P}-libtirpc.patch + "${FILESDIR}"/${P}-amd64-compat.patch +) + +src_prepare() { + default + + sed -i \ + -e "s:^#CGIFile /usr/local/share/nsat/nsat.cgi$:#CGIFile /usr/share/nsat/nsat.cgi:g" \ + nsat.conf || die + sed -i -e "s:/usr/local:/usr:g" tools/xnsat || die + sed -i \ + -e "s:/usr/local/share/nsat/nsat.conf:/etc/nsat/nsat.conf:g" \ + -e "s:/usr/local/share/nsat/nsat.cgi:/usr/share/nsat/nsat.cgi:g" \ + src/lang.h || die + + eautoreconf +} + +src_configure() { + tc-export CC + econf $(use_with X x) +} + +src_compile() { + emake MIXOBJ=-lmix++ +} + +src_install () { + dobin nsat smb-ns + use X && dobin tools/xnsat + + insinto /usr/share/nsat + doins nsat.cgi + + insinto /etc/nsat + doins nsat.conf + + dodoc README doc/CHANGES + doman doc/nsat.8 +}