diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2011-07-03 02:54:10 +0200 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2011-07-03 02:54:10 +0200 |
commit | 10b1cde10e8da355fde6fb368b589df7110b1836 (patch) | |
tree | fbb3a3b6f007c2e31636047f02f4d6b16f55171b /net-analyzer | |
parent | haproxy: all provided ebuild and patch applied upstream (diff) | |
download | portage-10b1cde10e8da355fde6fb368b589df7110b1836.tar.xz |
tcptraceroute: make it cross compile
Diffstat (limited to 'net-analyzer')
3 files changed, 164 insertions, 0 deletions
diff --git a/net-analyzer/tcptraceroute/Manifest b/net-analyzer/tcptraceroute/Manifest new file mode 100644 index 00000000..d93f26c1 --- /dev/null +++ b/net-analyzer/tcptraceroute/Manifest @@ -0,0 +1,3 @@ +AUX tcptraceroute-1.5_beta7-BJA-cross.diff 2686 RMD160 4b1ac0afc22aaf4634e53f4ba346732b8aefc7f8 SHA1 5fa87898212608c45c6e8174ac0cbc5528dd43c3 SHA256 e063d5f1e3cbf26c8b99c84b41f43dc227376c305870a2929453e70606b081a5 +DIST tcptraceroute-1.5beta7.tar.gz 119119 RMD160 fe937341f4ef1aa358b253c3af490419a689031f SHA1 78847ef4ba7031cee660c540593256fd384a1a62 SHA256 aed5b163ed4886f04242b46005a6cb4876ef38ad72001a94facb62a99dc99c57 +EBUILD tcptraceroute-1.5_beta7-r1.ebuild 972 RMD160 eb55253d21352477cfc699f5e52bce30f83fe059 SHA1 874a22bdc4755f3d2fe0e90cafc4241b4fa8c100 SHA256 e22fce55b689c1d9ed05f33dbda7542f2586d4514846a3710ade5f9c9d2f9f7b diff --git a/net-analyzer/tcptraceroute/files/tcptraceroute-1.5_beta7-BJA-cross.diff b/net-analyzer/tcptraceroute/files/tcptraceroute-1.5_beta7-BJA-cross.diff new file mode 100644 index 00000000..b1be5b5b --- /dev/null +++ b/net-analyzer/tcptraceroute/files/tcptraceroute-1.5_beta7-BJA-cross.diff @@ -0,0 +1,123 @@ +--- configure.ac.ori 2011-07-03 02:00:53.000000000 +0200 ++++ configure.ac 2011-07-03 02:10:41.000000000 +0200 +@@ -147,72 +147,80 @@ + AC_CHECK_FUNCS([gettimeofday memset select socket strchr]) + + # Is this Solaris? +-AC_MSG_CHECKING(for Solaris) +-AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [ ++AC_CACHE_CHECK([for Solaris], ac_cv_os_solaris, ++ [AC_TRY_RUN([ + #if defined (__SVR4) && defined (__sun) + exit(0); + #else + exit(-1); + #endif +- ]) +- ],[ +- AC_MSG_RESULT(yes) +- AC_DEFINE([HAVE_SOLARIS], 1, [Is this a Solaris system?]) +- HAVE_SOLARIS=yes +- ],[ +- AC_MSG_RESULT(no) +- ]) ++ ], ++ ac_cv_os_solaris=yes, ++ ac_cv_os_solaris=no, ++ ac_cv_os_solaris=no dnl cross-compiling, assuming is not ++)]) ++AS_IF([test x$ac_cv_os_solaris = xyes], ++ [AC_DEFINE([HAVE_SOLARIS], 1, [Is this a Solaris system?]) ++ HAVE_SOLARIS=yes ++ ] ++) + + # Is this BSDI? +-AC_MSG_CHECKING(for BSDI) +-AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [ ++AC_CACHE_CHECK([for BSDI], ac_cv_os_bsdi, ++ [AC_TRY_RUN([ + #if defined (__bsdi__) + exit(0); + #else + exit(-1); + #endif +- ]) +- ],[ +- AC_MSG_RESULT(yes) +- AC_DEFINE([HAVE_BSDI], 1, [Is this a BSDI system?]) +- HAVE_BSDI=yes +- ],[ +- AC_MSG_RESULT(no) +- ]) ++ ], ++ ac_cv_os_bsdi=yes, ++ ac_cv_os_bsdi=no, ++ ac_cv_os_bsdi=no dnl cross-compiling, assuming is not ++)]) ++AS_IF([test x$ac_cv_os_bsdi = xyes], ++ [AC_DEFINE([HAVE_BSDI], 1, [Is this a BSDI system?]) ++ HAVE_BSDI=yes ++ ] ++) + + # Is this NetBSD? +-AC_MSG_CHECKING(for NetBSD) +-AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [ ++AC_CACHE_CHECK([for NetBSD], ac_cv_os_netbsd, ++ [AC_TRY_RUN([ + #if defined (__NetBSD__) + exit(0); + #else + exit(-1); + #endif +- ]) +- ],[ +- AC_MSG_RESULT(yes) +- AC_DEFINE([HAVE_NETBSD], 1, [Is this a NetBSD system?]) +- HAVE_NETBSD=yes +- ],[ +- AC_MSG_RESULT(no) +- ]) ++ ], ++ ac_cv_os_netbsd=yes, ++ ac_cv_os_netbsd=no, ++ ac_cv_os_netbsd=no dnl cross-compiling, assuming is not ++)]) ++AS_IF([test x$ac_cv_os_netbsd = xyes], ++ [AC_DEFINE([HAVE_NETBSD], 1, [Is this a NetBSD system?]) ++ HAVE_NETBSD=yes ++ ] ++) + + # Is this MacOS X? +-AC_MSG_CHECKING(for MacOS X) +-AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [ ++AC_CACHE_CHECK([for MacOS X], ac_cv_os_macosx, ++ [AC_TRY_RUN([ + #if defined (__APPLE__) && defined (__MACH__) + exit(0); + #else + exit(-1); + #endif +- ]) +- ],[ +- AC_MSG_RESULT(yes) +- AC_DEFINE([HAVE_MACOSX], 1, [Is this a MacOS X system?]) +- HAVE_MACOSX=yes +- ],[ +- AC_MSG_RESULT(no) +- ]) ++ ], ++ ac_cv_os_macosx=yes, ++ ac_cv_os_macosx=no, ++ ac_cv_os_macosx=no dnl cross-compiling, assuming is not ++)]) ++AS_IF([test x$ac_cv_os_macosx = xyes], ++ [AC_DEFINE([HAVE_MACOSX], 1, [Is this a MacOS X system?]) ++ HAVE_MACOSX=yes ++ ] ++) + + # Handle --enable-noselect-default + AC_ARG_ENABLE(noselect-default, diff --git a/net-analyzer/tcptraceroute/tcptraceroute-1.5_beta7-r1.ebuild b/net-analyzer/tcptraceroute/tcptraceroute-1.5_beta7-r1.ebuild new file mode 100644 index 00000000..95e78f4e --- /dev/null +++ b/net-analyzer/tcptraceroute/tcptraceroute-1.5_beta7-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcptraceroute/tcptraceroute-1.5_beta7-r1.ebuild,v 1.6 2008/07/01 02:07:42 jer Exp $ + +EAPI=3 + +inherit flag-o-matic autotools + +MY_P=${P/_beta/beta} +MY_PV=${PV/_beta/beta} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="tcptraceroute is a traceroute implementation using TCP packets" +HOMEPAGE="http://michael.toren.net/code/tcptraceroute/" +SRC_URI="http://michael.toren.net/code/tcptraceroute/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 hppa ppc ppc64 sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="net-libs/libpcap + net-libs/libnet" + +src_prepare () { + epatch "${FILESDIR}"/${P}-BJA-cross.diff + + eautoreconf +} + +src_install() { + dosbin tcptraceroute + fowners root:wheel /usr/sbin/tcptraceroute + fperms 4710 /usr/sbin/tcptraceroute + doman tcptraceroute.1 + dodoc examples.txt README ChangeLog + dohtml tcptraceroute.1.html +} |