diff options
author | Jason Wever <weeve@gentoo.org> | 2003-01-09 02:55:31 +0000 |
---|---|---|
committer | Jason Wever <weeve@gentoo.org> | 2003-01-09 02:55:31 +0000 |
commit | b50633a2b62e0281db480660a2feef158be99121 (patch) | |
tree | ed6823df9c1201f31fe6af67d9636e30d4a9f02c /net-analyzer/nmap | |
parent | now using epatch. changed depends to fltk-1.0.11* (diff) | |
download | gentoo-2-b50633a2b62e0281db480660a2feef158be99121.tar.gz gentoo-2-b50633a2b62e0281db480660a2feef158be99121.tar.bz2 gentoo-2-b50633a2b62e0281db480660a2feef158be99121.zip |
Fix for sparc bug #13402
Diffstat (limited to 'net-analyzer/nmap')
-rw-r--r-- | net-analyzer/nmap/files/digest-nmap-3.10_alpha6 | 1 | ||||
-rw-r--r-- | net-analyzer/nmap/nmap-3.10_alpha6.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/net-analyzer/nmap/files/digest-nmap-3.10_alpha6 b/net-analyzer/nmap/files/digest-nmap-3.10_alpha6 new file mode 100644 index 000000000000..3350c8a91bed --- /dev/null +++ b/net-analyzer/nmap/files/digest-nmap-3.10_alpha6 @@ -0,0 +1 @@ +MD5 86c47d366ae5745f1e43f1ec9f20baab nmap-3.10ALPHA6.tgz 1064258 diff --git a/net-analyzer/nmap/nmap-3.10_alpha6.ebuild b/net-analyzer/nmap/nmap-3.10_alpha6.ebuild new file mode 100644 index 000000000000..3049cec6f9a0 --- /dev/null +++ b/net-analyzer/nmap/nmap-3.10_alpha6.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-3.10_alpha6.ebuild,v 1.1 2003/01/09 02:55:31 weeve Exp $ + +inherit gcc + +IUSE="gtk gnome ipv6" + +MY_P="${P/_alpha/ALPHA}" +S=${WORKDIR}/${MY_P} +DESCRIPTION="Portscanner" +SRC_URI="http://www.insecure.org/nmap/dist/${MY_P}.tgz" +HOMEPAGE="http://www.insecure.org/nmap/" +DEPEND="virtual/glibc + gtk? ( =x11-libs/gtk+-1.2* )" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86 ~ppc sparc ~alpha" + +src_compile() { + # fix header + if [ `gcc-major-version` -eq 3 ] ; then + cp nbase/nbase.h nbase/nbase.h.old + sed -e 's:char \*strcasestr://:' \ + nbase/nbase.h.old > nbase/nbase.h + fi + + use ipv6 \ + && econf --enable-ipv6 \ + || econf + + use gtk \ + && make \ + || make nmap +} + +src_install() { + local myinst + + # If gnome does not exist on the system, there is no need for the gnome + # menu item. + use gnome || myinst="${myinst} deskdir=${S}" + + make \ + prefix=${D}/usr \ + mandir=${D}/usr/share/man \ + nmapdatadir=${D}/usr/share/nmap \ + install || die + + dodoc CHANGELOG COPYING HACKING README* + cd docs + dodoc *.txt + dohtml *.html +} |