summaryrefslogtreecommitdiff
blob: 742d2f5374c1ddfaa9273bcaaced3840594e8223 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Bruce A. Locke <blocke@shivan.org>
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nbaudit/nbaudit-1.0.ebuild,v 1.4 2001/08/31 03:23:39 pm Exp $


# Its officially called nat10 but the name conflicts with other projects
# so I'm following the *BSDs suggestion of calling it nbaudit

A=nat10.tgz
P=nat10
S=${WORKDIR}/${P}
DESCRIPTION="NetBIOS file sharing services scanner (nat10)"
SRC_URI="http://www.tux.org/pub/security/secnet/tools/nat10/${A}"
HOMEPAGE="http://www.tux.org/pub/security/secnet/tools/nat10"

DEPEND=""

src_compile() {

   mv Makefile Makefile.old
   sed -e "s/# FLAGSM = -DLINUX -DSHADOW_PWD/FLAGSM = -DLINUX -DSHADOW_PWD -DNO_ASMSIGNALH/" -e "s/# LIBSM = -lshadow/LIBSM = -lshadow/" Makefile.old > Makefile

   # sed seems to hang if I do all three at once... oh well
   mv Makefile Makefile.old
   sed -e "s/CFLAGS = /CFLAGS = ${CFLAGS} /" Makefile.old > Makefile

   try make all

}

src_install () {

    mv nat nbaudit
    dobin nbaudit

    mv nat.1 nbaudit.1
    doman nbaudit.1

    dodoc README COPYING
}