--- cryptcat-1.2.1.ebuild 2010-01-16 03:05:25.000000000 +0100 +++ cryptcat-1.2.1.ebuild 2012-04-06 21:25:34.969436077 +0200 @@ -2,11 +2,13 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/cryptcat/cryptcat-1.2.1.ebuild,v 1.4 2010/01/16 02:05:25 abcd Exp $ +EAPI=4 + inherit eutils toolchain-funcs DESCRIPTION="netcat clone extended with twofish encryption" HOMEPAGE="http://farm9.org/Cryptcat/" -SRC_URI="mirror://sourceforge/cryptcat/${PN}-unix-${PV}.tar" +SRC_URI="mirror://sourceforge/${PN}/${PN}-unix-${PV}.tar" LICENSE="GPL-2" SLOT="0" @@ -14,23 +16,27 @@ IUSE="" DEPEND="" +RDEPEND="" S=${WORKDIR}/unix -src_unpack() { - unpack ${A} - cp -a "${S}" "${S}".orig - cd "${S}" +src_prepare() { epatch "${FILESDIR}"/${P}-build.patch - echo "#define arm arm_timer" >> generic.h + echo "#define arm arm_timer" >> generic.h || die sed -i \ -e 's:#define HAVE_BIND:#undef HAVE_BIND:' \ -e '/^#define FD_SETSIZE 16/s:16:1024:' \ -e 's:\:__linux__:' \ - netcat.c generic.h + netcat.c generic.h || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" } src_install() { - dobin cryptcat || die "dobin failed" + dobin cryptcat dodoc Changelog README README.cryptcat netcat.blurb }