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/synscan |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/synscan')
-rw-r--r-- | net-analyzer/synscan/Manifest | 6 | ||||
-rw-r--r-- | net-analyzer/synscan/files/synscan-5.01-build.patch | 79 | ||||
-rw-r--r-- | net-analyzer/synscan/metadata.xml | 4 | ||||
-rw-r--r-- | net-analyzer/synscan/synscan-5.01.ebuild | 35 |
4 files changed, 124 insertions, 0 deletions
diff --git a/net-analyzer/synscan/Manifest b/net-analyzer/synscan/Manifest new file mode 100644 index 000000000000..30adbb440098 --- /dev/null +++ b/net-analyzer/synscan/Manifest @@ -0,0 +1,6 @@ +AUX synscan-5.01-build.patch 2450 SHA256 478bc04fb412414fae1a1758c9130d240d045f38b79b9fa57ee8a1b54a35128f SHA512 231420fbc0b306442a8589bc406a9d8f6a206103878b5dde4dc1dd4d2d18ce165863c76df21b24c130895be4dbbc5798deae59044aa1e1d288fb3ffbc7acaaaa WHIRLPOOL 498b61ee6c25efde793f48ddd3a228dfa1e12daa09814ae7896a8028ab3b152850ba50c32b9e6dddbaba84a1e0302d2b37d48ed73a2480fd9dbbcd068eb78019 +DIST synscan-5.01.tar.gz 61440 SHA256 6fca109c82fe407dedaa9152963c7faa7445a998fb0ad1971bd861d7bafcc29f SHA512 6a090ceed5ca0766b63a82fee468459a47cc2bbd97c120d0e0b8708f5ce154116d988a42ff29a9b6fa5fd6d699064b1df0e263795c4dcef0f619797289db88fc WHIRLPOOL e89f094780aac5c0e6443b8cfc95546a5743e5acaf588398d8851ff0507b315660fd572c4f02ef1451098c6e23ff096d758bbe6210bb5f2991e8f6b766a0c931 +EBUILD synscan-5.01.ebuild 722 SHA256 a4805083adfe3f375d5dc560c1728763e8322ef0c7188ab91f3b53b57eb9376e SHA512 6abd15b1dcf875b960044814edb968461e6ae863a3428cc5e5a37f4a0fd1d81bef5849a92d3726c968d1a5289c3c077fc729a771ad3ea0023e3a37f07c03a4c8 WHIRLPOOL 25aaa5989ca36dd2d60f8c40884b0e69df424bb0b88d30f5e98187312c5ec00b1f0917621983fee8f30b3fd194990c89d2f01fefe678dab1ed25dd860260f056 +MISC ChangeLog 2332 SHA256 2f701d5602acf6fae62754a9a0ee1bdaa43e205b15d0454184c0ad928e1c4f1e SHA512 5e3ee0fd8c841c27bebb4f723a461abf14bead9bad8c2f76b2cd7198bd6158ae14dca928640d1dab8838c2b6c01e14f393dc4ba8fbc98f43fc6b06d2db59136d WHIRLPOOL 0e179bbd7ccc7cf20529c3fd5440e513d78d7ee3da31dcb262dc7c095fbaf50549e7b3163a59dbfeb9f82e9a6be5284f2c8be73d19373e1f7da8ce2263702a39 +MISC ChangeLog-2015 469 SHA256 cb83337443cb64695709e8d0bd46c9ee3cf9571b6be4efba55553a3f2e39880c SHA512 5b26129a7f518978d58994cb592d99db399224395ed9ac9a3efa5688ecefa311d4bf40c1e8e7f7567185ccec1495d3a17766e409eefbd26d817f34b980ffe80b WHIRLPOOL 4944c890ac9533a850213e30638e2fdcfd5a1d41daa728950c355cebb91f88f43efd120b659e51000b926ffe676da32b6ad512a91eee7e7a6818003316d8c895 +MISC metadata.xml 139 SHA256 5cdc1888ebc8807b9a37b1d33429c61cabe7415a4f240e21a4c2ff8eca7a34ed SHA512 8be912ace7468a4396eb1da00a9785030a8ce35da4357a01591876a1056fd45e44da65de2af3e1eb0506ce6551714962c40c3ae5a3aefa2ad231de35af2519be WHIRLPOOL 620431014dd4fb752c3d46d11904ecb2c6d4525f5b4e30f4f778a3b74d3f7187ae4ccd856ebd7eabb48ce261b21849c732928fe647edce024a3fdc082d8f8630 diff --git a/net-analyzer/synscan/files/synscan-5.01-build.patch b/net-analyzer/synscan/files/synscan-5.01-build.patch new file mode 100644 index 000000000000..79cf6943e185 --- /dev/null +++ b/net-analyzer/synscan/files/synscan-5.01-build.patch @@ -0,0 +1,79 @@ +diff -ur synscan-5.01.orig/configure.in synscan-5.01/configure.in +--- synscan-5.01.orig/configure.in 2009-03-31 23:22:46.000000000 +0300 ++++ synscan-5.01/configure.in 2010-06-14 00:31:06.000000000 +0300 +@@ -49,7 +49,7 @@ + owd=`pwd` + if cd $withval; then withval=`pwd`; cd $owd; fi + CFLAGS="$CFLAGS -I$withval -I$withval/bpf" +- LDFLAGS="$LDFLAGS -L$withval -lpcap" ++ LIBS="$LIBS -L$withval -lpcap" + else + AC_ERROR(pcap.h or libpcap.a not found in $withval) + fi +@@ -57,12 +57,12 @@ + esac ], + [ if test -f ${prefix}/include/pcap.h; then + CFLAGS="$CFLAGS -I${prefix}/include" +- LDFLAGS="$LDFLAGS -L${prefix}/lib -lpcap" ++ LIBS="$LIBS -L${prefix}/lib -lpcap" + elif test -f /usr/include/pcap/pcap.h; then + CFLAGS="$CFLAGS -I/usr/include/pcap" +- LDFLAGS="$LDFLAGS -lpcap" ++ LIBS="$LIBS -lpcap" + elif test -f /usr/include/pcap.h; then +- LDFLAGS="$LDFLAGS -lpcap" ++ LIBS="$LIBS -lpcap" + else + AC_MSG_RESULT(no) + AC_ERROR(libpcap not found) +@@ -73,12 +73,15 @@ + ## + ## Check of getoptlong + ## +-AC_CHECK_FUNCS([getopt_long],, +- AC_CHECK_LIB([gnugetopt], getopt_long, +- [ LDFLAGS="$LDFLAGS -lgnugetopt"; +- AC_DEFINE([HAVE_GETOPT_LONG])] +- ) +-) ++ac_cv_have_getopt_long="no" ++AC_CHECK_FUNCS([getopt_long], ++ [ac_cv_have_getopt_long="yes"], ++ [AC_CHECK_LIB([gnugetopt], [getopt_long], ++ [ac_cv_have_getopt_long="yes" ++ LIBS="${LIBS} -lgnugetopt"])]) ++if test "$ac_cv_have_getopt_long" != "no"; then ++ AC_DEFINE([HAVE_GETOPT_LONG]) ++fi + + ## + ## Output files +diff -ur synscan-5.01.orig/Makefile.in synscan-5.01/Makefile.in +--- synscan-5.01.orig/Makefile.in 2009-03-31 23:22:28.000000000 +0300 ++++ synscan-5.01/Makefile.in 2010-06-14 00:32:19.000000000 +0300 +@@ -5,7 +5,7 @@ + + CC = @CC@ + CFLAGS=@CFLAGS@ @DEFS@ -Wall +-LDFLAGS = @LDFLAGS@ ++LIBS = @LIBS@ + + OBJS_MINIMAL = \ + common.o net.o obuf.o +@@ -56,13 +56,13 @@ + solaris-sparc-gcc: + $(MAKE) $(PROJ) \ + CFLAGS="$(CFLAGS) -DBSD_COMP -DSOLARIS" \ +- LDFLAGS="$(LDFLAGS) -lsocket -lresolv -lnsl" ++ LIBS="$(LIBS) -lsocket -lresolv -lnsl" + + synscan: synscan.c synscan.h ${OBJS} +- ${CC} ${CFLAGS} $< ${OBJS} ${LDFLAGS} -o synscan ++ ${CC} ${LDFLAGS} ${CFLAGS} $< ${OBJS} ${LIBS} -o synscan + + sslog: sslog.c ${OBJS} +- ${CC} ${CFLAGS} $< ${OBJS} ${LDFLAGS} -o sslog ++ ${CC} ${LDFLAGS} ${CFLAGS} $< ${OBJS} ${LIBS} -o sslog + + install: + mkdir -p -m 755 ${bindir} diff --git a/net-analyzer/synscan/metadata.xml b/net-analyzer/synscan/metadata.xml new file mode 100644 index 000000000000..097975e3adc2 --- /dev/null +++ b/net-analyzer/synscan/metadata.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +</pkgmetadata> diff --git a/net-analyzer/synscan/synscan-5.01.ebuild b/net-analyzer/synscan/synscan-5.01.ebuild new file mode 100644 index 000000000000..14cfdbfae4c4 --- /dev/null +++ b/net-analyzer/synscan/synscan-5.01.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="A fast asynchronous half-open TCP portscanner" +HOMEPAGE="http://www.digit-labs.org/files/tools/synscan/" +SRC_URI="http://www.digit-labs.org/files/tools/${PN}/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="kernel_FreeBSD kernel_linux" + +RDEPEND="net-libs/libpcap" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + eautoconf +} + +src_compile() { + local _target + use kernel_FreeBSD && _target=freebsd + use kernel_linux && _target=linux + + emake ${_target} +} + +src_install() { + dobin synscan sslog + dodoc AUTHORS README +} |