diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2018-03-02 23:22:00 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2018-03-02 23:22:30 +0100 |
commit | 3e087566f12985f32416c815e864d7bff867059d (patch) | |
tree | 1ddfe6ee0e25b07a11dc6b2d1eef33ac9bc69c85 /net-analyzer/nsat | |
parent | profiles: Drop obsolete dev-qt/qtwebkit:4 package.mask (diff) | |
download | gentoo-3e087566f12985f32416c815e864d7bff867059d.tar.gz gentoo-3e087566f12985f32416c815e864d7bff867059d.tar.bz2 gentoo-3e087566f12985f32416c815e864d7bff867059d.zip |
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
Diffstat (limited to 'net-analyzer/nsat')
-rw-r--r-- | net-analyzer/nsat/nsat-1.5-r5.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
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 000000000000..87d30b46c180 --- /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 +} |