diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-06-13 21:46:49 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-06-13 21:46:49 +0000 |
commit | 367fa893b134776b0471ff1181c4f63df2cba016 (patch) | |
tree | 96f4d8cdfb104be39752eab3c50d2bdfb5418316 /net-analyzer/synscan | |
parent | Add new version for Gnome 2.30 (diff) | |
download | historical-367fa893b134776b0471ff1181c4f63df2cba016.tar.gz historical-367fa893b134776b0471ff1181c4f63df2cba016.tar.bz2 historical-367fa893b134776b0471ff1181c4f63df2cba016.zip |
Initial commit.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer/synscan')
-rw-r--r-- | net-analyzer/synscan/ChangeLog | 10 | ||||
-rw-r--r-- | net-analyzer/synscan/Manifest | 5 | ||||
-rw-r--r-- | net-analyzer/synscan/files/synscan-5.01-build.patch | 79 | ||||
-rw-r--r-- | net-analyzer/synscan/metadata.xml | 9 | ||||
-rw-r--r-- | net-analyzer/synscan/synscan-5.01.ebuild | 35 |
5 files changed, 138 insertions, 0 deletions
diff --git a/net-analyzer/synscan/ChangeLog b/net-analyzer/synscan/ChangeLog new file mode 100644 index 000000000000..a06fc1577f09 --- /dev/null +++ b/net-analyzer/synscan/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-analyzer/synscan +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/synscan/ChangeLog,v 1.1 2010/06/13 21:46:49 ssuominen Exp $ + +*synscan-5.01 (13 Jun 2010) + + 13 Jun 2010; Samuli Suominen <ssuominen@gentoo.org> +synscan-5.01.ebuild, + +files/synscan-5.01-build.patch: + Initial commit. + diff --git a/net-analyzer/synscan/Manifest b/net-analyzer/synscan/Manifest new file mode 100644 index 000000000000..74eec2f1012f --- /dev/null +++ b/net-analyzer/synscan/Manifest @@ -0,0 +1,5 @@ +AUX synscan-5.01-build.patch 2450 RMD160 64a3e2bdf814ea0e7572d05c77f1e10b804c6d28 SHA1 4898aa9e89f67829ba759941d78628c635c852b5 SHA256 478bc04fb412414fae1a1758c9130d240d045f38b79b9fa57ee8a1b54a35128f +DIST synscan-5.01.tar.gz 61440 RMD160 b66d20e3749a2aace188dc8393dbc76dc7f62a3f SHA1 369f83ca27432429a7a9b1ebeac2809bffa85db7 SHA256 6fca109c82fe407dedaa9152963c7faa7445a998fb0ad1971bd861d7bafcc29f +EBUILD synscan-5.01.ebuild 835 RMD160 4fed00e7f91ed578380a2163e56b636b9d6927f1 SHA1 4a63f0f2e0b26b0425a2ada20b64b85a18f8853d SHA256 3b079275f11ba023879baf0d0660c6b3dc942c622d33fc309d8bb2f4f68d90c2 +MISC ChangeLog 375 RMD160 bc1cf72138e3c904a1c45755029a215b2c0921c5 SHA1 15fbdc9f03c65fe84ed97147bd14653eef48adc4 SHA256 786257eac763ed1980be25d8078e0f8e9f6cc3088ad634d4213b061823f5cd42 +MISC metadata.xml 266 RMD160 b4480e6518739202d8543a84b01b53940907f016 SHA1 3a5b0bff8b6ad1614a1e8fcbecddf54b800c80a2 SHA256 7aba9af99c2de45240978680e160a1bc959795d16c7eeeae6f2822ba59da9af2 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..7cc5007c5d79 --- /dev/null +++ b/net-analyzer/synscan/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>no-herd</herd> + <maintainer> + <email>ssuominen@gentoo.org</email> + <name>Samuli Suominen</name> + </maintainer> +</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..4df1ab501406 --- /dev/null +++ b/net-analyzer/synscan/synscan-5.01.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/synscan/synscan-5.01.ebuild,v 1.1 2010/06/13 21:46:49 ssuominen Exp $ + +EAPI=3 +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" + +DEPEND="net-libs/libpcap" + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + eautoconf +} + +src_compile() { + local _target + use kernel_FreeBSD && _target=freebsd + use kernel_linux && _target=linux + + emake ${_target} || die +} + +src_install() { + dobin synscan sslog || die + dodoc AUTHORS README +} |