From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- net-analyzer/thcrut/Manifest | 1 + .../thcrut/files/thcrut-1.2.5-configure.patch | 42 ++++++++++++++ .../thcrut/files/thcrut-1.2.5-libnet.patch | 65 ++++++++++++++++++++++ net-analyzer/thcrut/metadata.xml | 5 ++ net-analyzer/thcrut/thcrut-1.2.5-r1.ebuild | 30 ++++++++++ 5 files changed, 143 insertions(+) create mode 100644 net-analyzer/thcrut/Manifest create mode 100644 net-analyzer/thcrut/files/thcrut-1.2.5-configure.patch create mode 100644 net-analyzer/thcrut/files/thcrut-1.2.5-libnet.patch create mode 100644 net-analyzer/thcrut/metadata.xml create mode 100644 net-analyzer/thcrut/thcrut-1.2.5-r1.ebuild (limited to 'net-analyzer/thcrut') diff --git a/net-analyzer/thcrut/Manifest b/net-analyzer/thcrut/Manifest new file mode 100644 index 00000000000..c3abf6a88b0 --- /dev/null +++ b/net-analyzer/thcrut/Manifest @@ -0,0 +1 @@ +DIST thcrut-1.2.5.tar.gz 660673 SHA256 b32f3d71ac540248b7643baa39d8ecfb75af493228caaeb64608e49f2f092473 SHA512 954f7512bd3e3937796cc065612214ae7d17f70175305ee66951a4e4dc2fcd83c7b15c690f429c7642c9951c2219f86a045418a77e42e3e4a54deac2ae0c46ab WHIRLPOOL c63b9214e0638e937944e9944d1239b94b685e40116a9ed327b2eac57491b749ec6784ac41a21dd76282c771ed18f3a7e5e8e7402719a3bde2feccdcb56f4b42 diff --git a/net-analyzer/thcrut/files/thcrut-1.2.5-configure.patch b/net-analyzer/thcrut/files/thcrut-1.2.5-configure.patch new file mode 100644 index 00000000000..daa069e22af --- /dev/null +++ b/net-analyzer/thcrut/files/thcrut-1.2.5-configure.patch @@ -0,0 +1,42 @@ +--- a/configure.in ++++ b/configure.in +@@ -153,10 +153,8 @@ + dnl libnet_init_packet only available in < libnet-1.1.x + dnl AC_CHECK_LIB(net, libnet_init_packet,, AC_MSG_ERROR(We need libnet. + dnl Get libnet from http://www.packetfactory.net or try --with-[[libs,includes]]=DIR)) +-AC_CHECK_LIB(net, libnet_init_packet, [NET=yes], [NET=no]) ++AC_CHECK_LIB(net-1.0, libnet_init_packet, [NET=yes], [NET=no]) + if test x"$NET" = x"no" -o x"$DIST" = x"yes"; then +- AC_CONFIG_SUBDIRS(Libnet-1.0.2a) +- THCRUT_SUBDIRS="$THCRUT_SUBDIRS Libnet-1.0.2a" + CPPFLAGS="-I../Libnet-1.0.2a/include ${CPPFLAGS}" + LDFLAGS="-L../Libnet-1.0.2a/src ${LDFLAGS}" + PRG_LIBNET_CONFIG_CFLAGS="../Libnet-1.0.2a/libnet-config --cflags --defines | tr '\n' ' '" +@@ -164,14 +162,12 @@ + dnl CFLAGS="`${srcdir}/Libnet-1.0.2a/libnet-config --cflags --defines | tr '\n' ' '` $CFLAGS" + dnl LIBS="`${srcdir}/Libnet-1.0.2a/libnet-config --libs` $LIBS" + else +- CFLAGS="`libnet-config --cflags --defines | tr '\n' ' '` $CFLAGS" +- LIBS="`libnet-config --libs` $LIBS" ++ CFLAGS="`libnet-1.0-config --cflags --defines | tr '\n' ' '` $CFLAGS" ++ LIBS="`libnet-1.0-config --libs` $LIBS" + fi + + AC_CHECK_LIB(pcre, pcre_compile, [PCRE=yes], [PCRE=no]) + if test x"$PCRE" = x"no" -o x"$DIST" = x"yes"; then +- AC_CONFIG_SUBDIRS(pcre-3.9) +- THCRUT_SUBDIRS="$THCRUT_SUBDIRS pcre-3.9" + CPPFLAGS="-I../pcre-3.9 ${CPPFLAGS}" + LDFLAGS="-L../pcre-3.9 ${LDFLAGS}" + PRG_PCRE_CONFIG_CFLAGS="../pcre-3.9/pcre-config --cflags" +@@ -199,8 +195,8 @@ + AC_OUTPUT(Makefile src/Makefile) + + dnl Just to show the correct values... +-CFLAGS="`${srcdir}/pcre-3.9/pcre-config --cflags` `${srcdir}/Libnet-1.0.2a/libnet-config --cflags --defines | tr '\n' ' '` $CFLAGS" +-LIBS="`${srcdir}/pcre-3.9/pcre-config --libs` `${srcdir}/Libnet-1.0.2a/libnet-config --libs` $LIBS" ++CFLAGS="`${srcdir}/pcre-3.9/pcre-config --cflags` `libnet-config --cflags --defines | tr '\n' ' '` $CFLAGS" ++LIBS="`${srcdir}/pcre-3.9/pcre-config --libs` `libnet-config --libs` $LIBS" + + echo "THCrut has been configured with the following options:" + echo " User binaries: $B" diff --git a/net-analyzer/thcrut/files/thcrut-1.2.5-libnet.patch b/net-analyzer/thcrut/files/thcrut-1.2.5-libnet.patch new file mode 100644 index 00000000000..87488c8c519 --- /dev/null +++ b/net-analyzer/thcrut/files/thcrut-1.2.5-libnet.patch @@ -0,0 +1,65 @@ +--- a/src/arp_main.c ++++ b/src/arp_main.c +@@ -18 +18 @@ +-#include ++#include +--- a/src/arpg.c ++++ b/src/arpg.c +@@ -12 +12 @@ +-#include ++#include +--- a/src/dhcp_main.c ++++ b/src/dhcp_main.c +@@ -14 +14 @@ +-#include ++#include +--- a/src/discover_dispatch.c ++++ b/src/discover_dispatch.c +@@ -10 +10 @@ +-#include ++#include +--- a/src/discover_main.c ++++ b/src/discover_main.c +@@ -8 +8 @@ +-#include ++#include +--- a/src/fp.h ++++ b/src/fp.h +@@ -10 +10 @@ +-#include ++#include +--- a/src/icmp_main.c ++++ b/src/icmp_main.c +@@ -14 +14 @@ +-#include ++#include +--- a/src/network_raw.c ++++ b/src/network_raw.c +@@ -10 +10 @@ +-#include ++#include +--- a/src/packets.c ++++ b/src/packets.c +@@ -6 +6 @@ +-#include ++#include +--- a/src/thcrut.c ++++ b/src/thcrut.c +@@ -87 +87 @@ +-#include ++#include +--- a/src/thcrut.h ++++ b/src/thcrut.h +@@ -7 +7 @@ +-#include ++#include +--- a/src/thcrut_libnet.c ++++ b/src/thcrut_libnet.c +@@ -5 +5 @@ +-#include ++#include +--- a/src/thcrut_libnet.h ++++ b/src/thcrut_libnet.h +@@ -5 +5 @@ +-#include ++#include diff --git a/net-analyzer/thcrut/metadata.xml b/net-analyzer/thcrut/metadata.xml new file mode 100644 index 00000000000..03aa50bab7e --- /dev/null +++ b/net-analyzer/thcrut/metadata.xml @@ -0,0 +1,5 @@ + + + +netmon + diff --git a/net-analyzer/thcrut/thcrut-1.2.5-r1.ebuild b/net-analyzer/thcrut/thcrut-1.2.5-r1.ebuild new file mode 100644 index 00000000000..741163887eb --- /dev/null +++ b/net-analyzer/thcrut/thcrut-1.2.5-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="Network discovery and fingerprinting tool" +HOMEPAGE="http://www.thc.org/thc-rut/" +SRC_URI="http://www.thc.org/thc-rut/${P}.tar.gz" + +LICENSE="free-noncomm PCRE GPL-1+" +SLOT="0" +KEYWORDS="amd64 ~ppc sparc x86" + +DEPEND=" + dev-libs/libpcre + net-libs/libnet:1.0 + net-libs/libpcap +" + +src_prepare() { + rm -r Libnet-1.0.2a pcre-3.9 || die + epatch \ + "${FILESDIR}"/${P}-libnet.patch \ + "${FILESDIR}"/${P}-configure.patch + eautoreconf +} + +DOCS=( ChangeLog FAQ README TODO thcrutlogo.txt ) -- cgit v1.2.1