diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/siphon |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/siphon')
-rw-r--r-- | net-analyzer/siphon/Manifest | 7 | ||||
-rw-r--r-- | net-analyzer/siphon/files/siphon-666-gentoo.patch | 19 | ||||
-rw-r--r-- | net-analyzer/siphon/files/siphon-666-log.patch | 46 | ||||
-rw-r--r-- | net-analyzer/siphon/metadata.xml | 8 | ||||
-rw-r--r-- | net-analyzer/siphon/siphon-666-r1.ebuild | 35 |
5 files changed, 115 insertions, 0 deletions
diff --git a/net-analyzer/siphon/Manifest b/net-analyzer/siphon/Manifest new file mode 100644 index 000000000000..f6cc67cfd44c --- /dev/null +++ b/net-analyzer/siphon/Manifest @@ -0,0 +1,7 @@ +AUX siphon-666-gentoo.patch 441 SHA256 044a0d7c2ca58f63024f3e5dda998e392ede3bb20453b35bf81ac7ade7fd71e4 SHA512 66fa0bc1deaa44bdda3d456e79bfacbe5a620365f5cecdb6d18da127d62b3111770a097c6b63e8d83efeb206f3f6577953028dbe49090ffc22e597bc2bf5d4c5 WHIRLPOOL 31722e133e09827ca63078d1e08bbf903bfe36e7f14931d5c4e5339c3ccc1a81ec743786a5a913bae0dab749405e26b5cb479d27d292bcc69f74009bbce54ab4 +AUX siphon-666-log.patch 1177 SHA256 0b0c724de8aee69e79f7b4039b0363918c26837971f33cd3981722c4cd784879 SHA512 3f82b38442b29083b95475fe26327d2da852dfed172182903adb7cb1dbf9045158462f70239500301d3c1f88005fb6308cddbd8ff48dc885dbc3dcbf355ba4ce WHIRLPOOL 0d87dcc647e4798dc9809972c695490309a1504babd52fefd6d348493d8a5eac49a89a96b5e6c4440fb03d24c44bda3a0007815a0793c376882ef4a0560134fc +DIST siphon-v.666.tar.gz 6951 SHA256 797063d1d38017aef05b78d7e475cc5fbbb3c7efebb62fdda8eb38a6271ec297 SHA512 d355e80e7f102af13be9663d8e7cb28d3f3dc823d79192c287a5800e1239e4f37720b449a879605e5df0da1bb8accc3c70a605d94fc925788fe4a2e7bead650a WHIRLPOOL 7aa1faea6d9e486afc337b66c34e605f3ccabe0d2f7f8aa580e751e08efa9237d5b5f2744d9a66e9b9db32dd5c086fcfc3149a650771474fbdf8c668b9c1ec18 +EBUILD siphon-666-r1.ebuild 637 SHA256 bddb1dcac9cf0702a4676bdb110b4148bf473c0aaa1ced3c3ab4f6c53e7ad01f SHA512 865e4ed633b9f90eca39f7f107fdd7b761a71d22557d6a4d025d089503264415d8517f56bf98277606739b4ec7f1bddd10871dd78c22623b43a603f33b4b28d8 WHIRLPOOL c28439df19d8f420cd18245a3aadf0da31a785bbcd52e632f6581c216bcb13bfde0f0d425d7bf7785fb9168982d7538c12b4779be7d355075bb577ab9c6a3f2a +MISC ChangeLog 2493 SHA256 d0e4071196b9f7f0fb71538b2a8ebcf5bcd6521d1a075caae670406fc3c78557 SHA512 2a046558b13fe92d4cd8e2917d935f82f8c782f17655b0dfbbce06be695cde2801a24a202655c64f3c70aec7a8094210c8bf83f195524338d7f755eb628d4ad7 WHIRLPOOL 4ef955d3a5fb9a45a02dcdb04be0559039ceee71314d92652cd478639007bf06ba69440188e0b9e3c5302a3fdf5b51d908b61f0d9ac0c99b6dc865805b88c2cd +MISC ChangeLog-2015 2475 SHA256 0aa5b58accc35dced57a587dd23fef7599fcd1632091343dd11540801b2dce91 SHA512 495bba2eca4123de7d0406be06b088f4ee33cfd4f83d7a4a716f48985386f3e81cd863be5a459dbcb5a363961cac90fc26073ec2f37bc7326f3ca4ffec873db1 WHIRLPOOL b199660f9a267bb83cb99b6f01c33870a67422441867a5e4b1f84baada19532eb586dd54d5ba7b0bf30ea11123a1c8fa43c2fb38f6a0dcb063689d37878cbec7 +MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee diff --git a/net-analyzer/siphon/files/siphon-666-gentoo.patch b/net-analyzer/siphon/files/siphon-666-gentoo.patch new file mode 100644 index 000000000000..eea6d93b802e --- /dev/null +++ b/net-analyzer/siphon/files/siphon-666-gentoo.patch @@ -0,0 +1,19 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,6 +1,6 @@ + CC = gcc + CCFLAGS = -Wall -pthread -ggdb +-CFLAGS = -Wall -O2 -pthread -ggdb -I. ++CFLAGS += -pthread -Wall -I. + LIBS = -lpcap + OBJS = parse.o sniff.o main.o log.o + SRCS = ${OBJS:.o=.c} +@@ -9,7 +9,7 @@ + all: $(TARGET) + + $(TARGET): $(OBJS) +- $(CC) $(CCFLAGS) -o $(TARGET) $(OBJS) $(LIBS) ++ $(CC) $(CCFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) + + clean: + rm -f $(OBJS) *~ *.core core siphon diff --git a/net-analyzer/siphon/files/siphon-666-log.patch b/net-analyzer/siphon/files/siphon-666-log.patch new file mode 100644 index 000000000000..07d2de4d4d12 --- /dev/null +++ b/net-analyzer/siphon/files/siphon-666-log.patch @@ -0,0 +1,46 @@ +--- a/main.c ++++ b/main.c +@@ -98,7 +98,7 @@ + pti_parse.pti_pd[1] = pd_parse2log[1]; + + pthread_create (&parse_thread, NULL, (void *) parse, &pti_parse); +- pthread_create(&log_thread,NULL,(void *)log, (void *)pd_parse2log[0]); ++ pthread_create(&log_thread,NULL,(void *)siphon_log, (void *)pd_parse2log[0]); + pthread_create (&sniff_thread, NULL, (void *) sniff_network, + &pd_sniff2parse[1]); + +--- a/log.c ++++ b/log.c +@@ -19,7 +19,7 @@ + + int tag = 0; + +-void *log(void *pipe) ++void *siphon_log(void *pipe) + { + struct parse2log *info; + char hashed[100], buf[1024], *os, *proto = NULL, *df; +@@ -137,10 +137,10 @@ + FILE *osprints; + static char line[80], *oswin, *osttl, *osdf, *os, hexed[10]; + static int check = 0; +- osprints = fopen("osprints.conf","r"); ++ osprints = fopen("/etc/osprints.conf","r"); + + if(!osprints) { +- perror("Unable to find osprints.conf\n"); ++ perror("Unable to find /etc/osprints.conf\n"); + return "Unknown"; + } + +--- a/siphon.h ++++ b/siphon.h +@@ -49,7 +49,7 @@ + + void *sniff_network (void *); + void *parse (void *); +-void *log(void *); ++void *siphon_log(void *); + + char *device, *logfile; + int verbose, back; diff --git a/net-analyzer/siphon/metadata.xml b/net-analyzer/siphon/metadata.xml new file mode 100644 index 000000000000..74c2baebb4ec --- /dev/null +++ b/net-analyzer/siphon/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> diff --git a/net-analyzer/siphon/siphon-666-r1.ebuild b/net-analyzer/siphon/siphon-666-r1.ebuild new file mode 100644 index 000000000000..32c4e5b27bb0 --- /dev/null +++ b/net-analyzer/siphon/siphon-666-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs + +MY_P=${PN}-v.${PV} + +DESCRIPTION="A portable passive network mapping suite" +HOMEPAGE="http://siphon.datanerds.net/" +SRC_URI="${HOMEPAGE}${MY_P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86" + +DEPEND="net-libs/libpcap" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + epatch "${FILESDIR}"/${P}-log.patch +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dobin ${PN} + insinto /etc + doins osprints.conf + dodoc README +} |