blob: 488f45fc7264a08d3c4854d940d70a3efe75f68e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nsat/nsat-1.5.ebuild,v 1.8 2004/04/27 21:12:21 agriffis Exp $
inherit eutils
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="x86 ~sparc"
IUSE="X"
RDEPEND="X? ( virtual/x11 dev-lang/tk )
>=net-libs/libpcap-0.7.1-r1"
DEPEND="$RDEPEND >=sys-devel/autoconf-2.58"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-configure.patch
sed -i "s:^#CGIFile /usr/local/share/nsat/nsat.cgi$:#CGIFile /usr/share/nsat/nsat.cgi:g" \
nsat.conf
sed -i "s:/usr/local:/usr:g" Makefile.in
sed -i "s:/usr/local:/usr:g" tools/xnsat
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
}
src_compile() {
WANT_AUTOCONF=2.5
autoconf
econf $( use_with X x ) || die
make|| die "compile problem"
}
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/LICENSE doc/CHANGES
doman doc/nsat.8
}
|