summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2009-12-25 05:56:25 +0000
committerJeremy Olexa <darkside@gentoo.org>2009-12-25 05:56:25 +0000
commit2f0afc8c1431ea8b901c05f365255d1eca2c40a4 (patch)
tree4193c1ae99d53668c2cc912eb210dd6a8aa73c51 /net-misc/lanmap
parentInitial import. Many thanks to all the contributors on bug 235377. Moved from... (diff)
downloadgentoo-2-2f0afc8c1431ea8b901c05f365255d1eca2c40a4.tar.gz
gentoo-2-2f0afc8c1431ea8b901c05f365255d1eca2c40a4.tar.bz2
gentoo-2-2f0afc8c1431ea8b901c05f365255d1eca2c40a4.zip
Initial import. Many thanks to Justin Lecher (jlec), bug 249631. Moved from sunrise
(Portage version: 2.1.7.15/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/lanmap')
-rw-r--r--net-misc/lanmap/ChangeLog11
-rw-r--r--net-misc/lanmap/files/makefile.patch24
-rw-r--r--net-misc/lanmap/lanmap-81.ebuild36
-rw-r--r--net-misc/lanmap/metadata.xml9
4 files changed, 80 insertions, 0 deletions
diff --git a/net-misc/lanmap/ChangeLog b/net-misc/lanmap/ChangeLog
new file mode 100644
index 000000000000..8370c64bd4d9
--- /dev/null
+++ b/net-misc/lanmap/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-misc/lanmap
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/lanmap/ChangeLog,v 1.1 2009/12/25 05:56:25 darkside Exp $
+
+*lanmap-81 (25 Dec 2009)
+
+ 25 Dec 2009; Jeremy Olexa <darkside@gentoo.org> +lanmap-81.ebuild,
+ +files/makefile.patch, +metadata.xml:
+ Initial import. Many thanks to Justin Lecher (jlec), bug 249631. Moved
+ from sunrise
+
diff --git a/net-misc/lanmap/files/makefile.patch b/net-misc/lanmap/files/makefile.patch
new file mode 100644
index 000000000000..2977370d121b
--- /dev/null
+++ b/net-misc/lanmap/files/makefile.patch
@@ -0,0 +1,24 @@
+--- lanmap/src/Makefile.in 2006-03-07 15:44:32.000000000 +0100
++++ lanmap/src/Makefile.in.new 2008-12-02 16:08:13.000000000 +0100
+@@ -2,8 +2,8 @@
+ # $Id: makefile.patch,v 1.1 2009/12/25 05:56:25 darkside Exp $
+
+ # complation
+-CFLAGS = -W -Wall -Wno-unused -DLINUX -DLANMAP_DATADIR=$(LANMAP_DATADIR)
+-LDFLAGS = -lpcap -lm
++CFLAGS += -DLINUX -DLANMAP_DATADIR=$(LANMAP_DATADIR)
++LDFLAGS += -lpcap -lm
+ CFLAGS_DEBUG = -D_DEBUG -ggdb
+ LDFLAGS_DEBUG = -pg
+ BINARY = lanmap
+--- lanmap/Makefile.in 2008-12-03 14:40:22.000000000 +0100
++++ lanmap/Makefile.in.new 2008-12-03 14:40:33.000000000 +0100
+@@ -13,7 +13,7 @@
+ cd ./src && make LANMAP_DATADIR="$(DATADEST)"
+
+ install:
+- install -m 0755 ./src/$(BINARY) $(BINDEST)
++ install -m 0755 -D ./src/$(BINARY) $(BINDEST)/$(BINARY)
+ install -m 0755 -d $(DATADEST)
+ install -m 0755 -d $(DATADEST)data/
+ install -m 0755 -d $(DATADEST)data/graph/
diff --git a/net-misc/lanmap/lanmap-81.ebuild b/net-misc/lanmap/lanmap-81.ebuild
new file mode 100644
index 000000000000..cbe3b087446b
--- /dev/null
+++ b/net-misc/lanmap/lanmap-81.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/lanmap/lanmap-81.ebuild,v 1.1 2009/12/25 05:56:25 darkside Exp $
+
+EAPI=2
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="lanmap sits quietly on a network and builds a picture of what it sees"
+HOMEPAGE="http://www.parseerror.com/lanmap"
+SRC_URI="http://www.parseerror.com/${PN}/rev/${PN}-2006-03-07-rev${PV}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="net-libs/libpcap
+ media-gfx/graphviz[png]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/makefile.patch
+ chmod +x configure || die
+}
+
+src_compile() {
+ emake -j1 CC="$(tc-getCC)" || die
+}
+
+src_install() {
+ emake prefix="${D}"/usr install || die
+ dodoc {README,TODO}.txt || die
+}
diff --git a/net-misc/lanmap/metadata.xml b/net-misc/lanmap/metadata.xml
new file mode 100644
index 000000000000..44fac8ebc359
--- /dev/null
+++ b/net-misc/lanmap/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>netmon</herd>
+<maintainer>
+ <email>darkside@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
+