Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nsat/
Date: Fri, 02 Mar 2018 22:22:55
Message-Id: 1520029350.3e087566f12985f32416c815e864d7bff867059d.dilfridge@gentoo
1 commit: 3e087566f12985f32416c815e864d7bff867059d
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 2 22:22:00 2018 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 2 22:22:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e087566
7
8 net-analyzer/nsat: Remove libtirpc automagic and depend on it instead
9
10 Bug: https://bugs.gentoo.org/371025
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 net-analyzer/nsat/nsat-1.5-r5.ebuild | 75 ++++++++++++++++++++++++++++++++++++
14 1 file changed, 75 insertions(+)
15
16 diff --git a/net-analyzer/nsat/nsat-1.5-r5.ebuild b/net-analyzer/nsat/nsat-1.5-r5.ebuild
17 new file mode 100644
18 index 00000000000..87d30b46c18
19 --- /dev/null
20 +++ b/net-analyzer/nsat/nsat-1.5-r5.ebuild
21 @@ -0,0 +1,75 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +inherit autotools toolchain-funcs
27 +
28 +DESCRIPTION="Network Security Analysis Tool, an application-level network security scanner"
29 +HOMEPAGE="http://nsat.sourceforge.net/"
30 +SRC_URI="mirror://sourceforge/nsat/${P}.tgz"
31 +
32 +LICENSE="GPL-2"
33 +SLOT="0"
34 +KEYWORDS="~amd64 ~ppc ~x86"
35 +IUSE="X"
36 +
37 +RDEPEND="
38 + dev-libs/libmix
39 + net-libs/libnsl:0=
40 + net-libs/libpcap
41 + net-libs/libtirpc
42 + net-libs/rpcsvc-proto
43 + X? (
44 + dev-lang/tk:*
45 + x11-libs/libX11
46 + )
47 +"
48 +DEPEND="$RDEPEND"
49 +S="${WORKDIR}/${PN}"
50 +PATCHES=(
51 + "${FILESDIR}"/${P}-configure.patch
52 + "${FILESDIR}"/${P}-lvalue-gcc4.patch
53 + "${FILESDIR}"/${P}-strip.patch
54 + "${FILESDIR}"/${P}-misc.patch
55 + "${FILESDIR}"/${P}-va_list.patch
56 + "${FILESDIR}"/${P}-libtirpc.patch
57 + "${FILESDIR}"/${P}-amd64-compat.patch
58 +)
59 +
60 +src_prepare() {
61 + default
62 +
63 + sed -i \
64 + -e "s:^#CGIFile /usr/local/share/nsat/nsat.cgi$:#CGIFile /usr/share/nsat/nsat.cgi:g" \
65 + nsat.conf || die
66 + sed -i -e "s:/usr/local:/usr:g" tools/xnsat || die
67 + sed -i \
68 + -e "s:/usr/local/share/nsat/nsat.conf:/etc/nsat/nsat.conf:g" \
69 + -e "s:/usr/local/share/nsat/nsat.cgi:/usr/share/nsat/nsat.cgi:g" \
70 + src/lang.h || die
71 +
72 + eautoreconf
73 +}
74 +
75 +src_configure() {
76 + tc-export CC
77 + econf $(use_with X x)
78 +}
79 +
80 +src_compile() {
81 + emake MIXOBJ=-lmix++
82 +}
83 +
84 +src_install () {
85 + dobin nsat smb-ns
86 + use X && dobin tools/xnsat
87 +
88 + insinto /usr/share/nsat
89 + doins nsat.cgi
90 +
91 + insinto /etc/nsat
92 + doins nsat.conf
93 +
94 + dodoc README doc/CHANGES
95 + doman doc/nsat.8
96 +}