summaryrefslogtreecommitdiff
path: root/net-misc/lanmap
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/lanmap
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/lanmap')
-rw-r--r--net-misc/lanmap/Manifest8
-rw-r--r--net-misc/lanmap/files/lanmap-81-make.patch69
-rw-r--r--net-misc/lanmap/files/lanmap-81-printf-format.patch11
-rw-r--r--net-misc/lanmap/lanmap-81-r1.ebuild40
-rw-r--r--net-misc/lanmap/lanmap-81-r2.ebuild42
-rw-r--r--net-misc/lanmap/metadata.xml8
6 files changed, 178 insertions, 0 deletions
diff --git a/net-misc/lanmap/Manifest b/net-misc/lanmap/Manifest
new file mode 100644
index 000000000000..356cc70f0ff7
--- /dev/null
+++ b/net-misc/lanmap/Manifest
@@ -0,0 +1,8 @@
+AUX lanmap-81-make.patch 1930 SHA256 8c34f20dd6fa573fc448d21cd60c5e6350b47f2acb9c7548f4cce653ae0085be SHA512 601a570e55ce987d41106cf1c79a2564e55d8756bf8ec1cd58c63df38ebdccfece6b60d29b24f36aa828289f0762c3c54ae58b30b61355c2479c27fa9322b86c WHIRLPOOL 4fb90424465b8765c2ea3873be39446fbe5c6bcf0a9cf831ad0b614d3a23e320cbc95ebec78a0598bc9a6a55419d76484a3b1b1888e580cd762b6533a697611d
+AUX lanmap-81-printf-format.patch 303 SHA256 7de8d02354acc67c26a83a2478c736c9d1eb28beed5341d1288d5755792407b7 SHA512 644e269b1c3b872f66707d452129033f9f2d67ad895244b5aeb34886f1cf572482a7ad82f97f4d23ac3e652ce64f56f9bdaa8c11aa76cb5d6cac42c170f30285 WHIRLPOOL 3a3c23e13426975239129b6179c6bf0649f580c0d4136c898fdf3bcb97c8ae7a828907ae9176573246250eca206e145f97ac5811cbe00291ec8c39a445b1a64b
+DIST lanmap-2006-03-07-rev81.zip 405933 SHA256 9a67645c5cde565e61c1a717a17a3491d027e72bfe6825d1d50262f6a6600fa3 SHA512 9216d753548fba48f4fcd18a55136a50c0dd01c87f1d5f7736319a7a71b28bd50f082a9aa94d8c426924e0fa4fb6537cd8c8cbd2a289736ede54fd4c6f4679f2 WHIRLPOOL e7d9d24dfafea9430d3a65da6d6cf7b8b12d176d6b99911f581a12074166c09099b56fcf50913e293c42ab962fc5f4bc41184184aaa41fbd453f7a3f667e86f3
+EBUILD lanmap-81-r1.ebuild 790 SHA256 d8e9fcb679854cf75365d17bef31eae0e2e920cb37df154a6425ea71623af617 SHA512 cba80ae3be83ade4018ea9bd7c8a45200c9d08fb4dc13dbc2fe2bdc13e834415be2b26a61614c06821965b9f753f641a07d438084412f952d1cc9937f720f7ae WHIRLPOOL f1419c805d2add77d394ef2cf15a07108ce1d18a635578e32fc9c99bcc7d0a99bd0019b2b6a2b181d9fa4de3f44eaa68f476e2c10974c4fdf7e962ed0ce9ead3
+EBUILD lanmap-81-r2.ebuild 837 SHA256 03b2ce519ffa0f84fdf9a35c175c51d75610f74034682d07d017071bf4318c27 SHA512 9e3406a98b0c49f7d256a19964d151f5a74fd808d53d4cc3faa16d66eb6de3656b555bd8ed4e815ebce504fc65ee5432eff682484b3bc4660a8118674418ddbd WHIRLPOOL 3ea03ec937447eb6fbea424badcecd8e4143ef9a44d469e65c3ce100dd38827430a8e54b775870731d47089de43ea06590004c332892675d7ea84c5b2e396091
+MISC ChangeLog 2936 SHA256 ece472273c2b626a89b6a2d64ba218136c3733eb7dc31b671d50173029bda6cc SHA512 b8c169b513625948f012db601e797a110de885aa07e744d9bc1ecbf41ee6be7d8d03e5463be3dddf915ff4664393c0bd674ea8a85f65b033a32c08f3bcabfd65 WHIRLPOOL 39267c6679b4e267bc2bcf74685b2720a73858fa03457a8486cf68b79cb1d7c67f08dc8c2a0cbdbbdec4c37c60bf60085e06686fc23a97e557ea6dd7af405f2f
+MISC ChangeLog-2015 1655 SHA256 d16a08590ab92f60f51a749fe1f28821b12728688b847a4ae3613fa66e483e3f SHA512 32ec3fcacd0f186631cfb091536c6f02d839aec8f207352d98bbfdf8c0ad8b294fea1576da64936c269e80d40d31bd00e5d4d5c07b1daae91e78435a6c473827 WHIRLPOOL 43faf85f979f5197a241408bb376eb1ffe7a73c934365ada0dd416a5c47bb1d1339b357b6fa4ad7702eb30e3e3578dabc1a2fd28088a1d7c16a7275034a518a4
+MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee
diff --git a/net-misc/lanmap/files/lanmap-81-make.patch b/net-misc/lanmap/files/lanmap-81-make.patch
new file mode 100644
index 000000000000..e0c1988cc836
--- /dev/null
+++ b/net-misc/lanmap/files/lanmap-81-make.patch
@@ -0,0 +1,69 @@
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -2,8 +2,8 @@
+ # $Id$
+
+ # 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
+@@ -14,12 +14,12 @@
+ $(CC) $(OBJS) -o $(BINARY) $(LDFLAGS)
+
+ static:
+- make clean
+- make LDFLAGS="$(LDFLAGS) -static" all
++ $(MAKE) clean
++ $(MAKE) LDFLAGS="$(LDFLAGS) -static" all
+
+ debug:
+- make clean
+- make CFLAGS="$(CFLAGS) $(CFLAGS_DEBUG)" LDFLAGS="$(LDFLAGS)" all
++ $(MAKE) clean
++ $(MAKE) CFLAGS="$(CFLAGS) $(CFLAGS_DEBUG)" LDFLAGS="$(LDFLAGS)" all
+
+ # for testing the classify code by itself
+ os_classify: os_classify.c misc.c
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -10,18 +10,18 @@
+ DATADEST = ${prefix}/share/lanmap/
+
+ all:
+- cd ./src && make LANMAP_DATADIR="$(DATADEST)"
++ 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/
+ install -m 0755 -d $(DATADEST)graph/img/
+ install -m 0644 ./data/mac_vendor $(DATADEST)data/
+- install -m 0644 -d $(DATADEST)graph
++ install -m 0755 -d $(DATADEST)graph
+ install -m 0644 ./graph/lanmap.header $(DATADEST)graph/
+- for f in ./graph/img/*.{png,gif,svg}; do install -m 0644 $$f $(DATADEST)graph/img/; done
++ for f in ./graph/img/*.gif ./graph/img/*.png ./graph/img/*.svg; do install -m 0644 $$f $(DATADEST)graph/img/; done
+
+ uninstall:
+ rm $(BINDEST)$(BINARY)
+@@ -29,11 +29,11 @@
+
+ clean:
+ rm -f ./src/$(BINARY)
+- cd ./src && make clean
++ cd ./src && $(MAKE) clean
+
+ distclean: clean
+ rm -f Makefile config.cache config.log config.status config.h
+
+ debug:
+- cd ./src && make debug
++ cd ./src && $(MAKE) debug
+
diff --git a/net-misc/lanmap/files/lanmap-81-printf-format.patch b/net-misc/lanmap/files/lanmap-81-printf-format.patch
new file mode 100644
index 000000000000..cbe330434f20
--- /dev/null
+++ b/net-misc/lanmap/files/lanmap-81-printf-format.patch
@@ -0,0 +1,11 @@
+--- a/src/misc.c
++++ b/src/misc.c
+@@ -58,7 +58,7 @@
+ linebuf[64] = ' ';
+ linebuf[56 + j - 1 + (j - 1 > 7) + 1] = '\n';
+ linebuf[56 + j - 1 + (j - 1 > 7) + 2] = '\0';
+- printf(linebuf);
++ printf("%s", linebuf);
+ #ifdef DEBUG
+ if (strlen(linebuf) > 73) {
+ fprintf(stderr, "line too long, wtf?!\n");
diff --git a/net-misc/lanmap/lanmap-81-r1.ebuild b/net-misc/lanmap/lanmap-81-r1.ebuild
new file mode 100644
index 000000000000..44739a58baf5
--- /dev/null
+++ b/net-misc/lanmap/lanmap-81-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils toolchain-funcs
+
+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 ~amd64-linux ~arm-linux ~x86-linux"
+
+CDEPEND="net-libs/libpcap"
+RDEPEND="
+ ${CDEPEND}
+ media-gfx/graphviz
+"
+DEPEND="
+ ${CDEPEND}
+ app-arch/unzip
+"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-make.patch
+ rm configure || die
+ eautoreconf
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake prefix="${ED}"/usr install
+ dodoc README.txt TODO.txt
+}
diff --git a/net-misc/lanmap/lanmap-81-r2.ebuild b/net-misc/lanmap/lanmap-81-r2.ebuild
new file mode 100644
index 000000000000..6b5892520aaa
--- /dev/null
+++ b/net-misc/lanmap/lanmap-81-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils toolchain-funcs
+
+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 ~amd64-linux ~arm-linux ~x86-linux"
+
+CDEPEND="net-libs/libpcap"
+RDEPEND="
+ ${CDEPEND}
+ media-gfx/graphviz
+"
+DEPEND="
+ ${CDEPEND}
+ app-arch/unzip
+"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-make.patch \
+ "${FILESDIR}"/${P}-printf-format.patch
+ rm configure || die
+ eautoreconf
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake prefix="${ED}"/usr install
+ dodoc README.txt TODO.txt
+}
diff --git a/net-misc/lanmap/metadata.xml b/net-misc/lanmap/metadata.xml
new file mode 100644
index 000000000000..74c2baebb4ec
--- /dev/null
+++ b/net-misc/lanmap/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+</pkgmetadata>