Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 411075
Collapse All | Expand All

(-)cryptcat-1.2.1.ebuild (-8 / +14 lines)
Lines 2-12 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cryptcat/cryptcat-1.2.1.ebuild,v 1.4 2010/01/16 02:05:25 abcd Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cryptcat/cryptcat-1.2.1.ebuild,v 1.4 2010/01/16 02:05:25 abcd Exp $
4
4
5
EAPI=4
6
5
inherit eutils toolchain-funcs
7
inherit eutils toolchain-funcs
6
8
7
DESCRIPTION="netcat clone extended with twofish encryption"
9
DESCRIPTION="netcat clone extended with twofish encryption"
8
HOMEPAGE="http://farm9.org/Cryptcat/"
10
HOMEPAGE="http://farm9.org/Cryptcat/"
9
SRC_URI="mirror://sourceforge/cryptcat/${PN}-unix-${PV}.tar"
11
SRC_URI="mirror://sourceforge/${PN}/${PN}-unix-${PV}.tar"
10
12
11
LICENSE="GPL-2"
13
LICENSE="GPL-2"
12
SLOT="0"
14
SLOT="0"
Lines 14-36 Link Here
14
IUSE=""
16
IUSE=""
15
17
16
DEPEND=""
18
DEPEND=""
19
RDEPEND=""
17
20
18
S=${WORKDIR}/unix
21
S=${WORKDIR}/unix
19
22
20
src_unpack() {
23
src_prepare() {
21
	unpack ${A}
22
	cp -a "${S}" "${S}".orig
23
	cd "${S}"
24
	epatch "${FILESDIR}"/${P}-build.patch
24
	epatch "${FILESDIR}"/${P}-build.patch
25
	echo "#define arm arm_timer" >> generic.h
25
	echo "#define arm arm_timer" >> generic.h || die
26
	sed -i \
26
	sed -i \
27
		-e 's:#define HAVE_BIND:#undef HAVE_BIND:' \
27
		-e 's:#define HAVE_BIND:#undef HAVE_BIND:' \
28
		-e '/^#define FD_SETSIZE 16/s:16:1024:' \
28
		-e '/^#define FD_SETSIZE 16/s:16:1024:' \
29
		-e 's:\<LINUX\>:__linux__:' \
29
		-e 's:\<LINUX\>:__linux__:' \
30
		netcat.c generic.h
30
		netcat.c generic.h || die
31
}
32
33
src_compile() {
34
	emake \
35
		CC="$(tc-getCC)" \
36
		CXX="$(tc-getCXX)"
31
}
37
}
32
38
33
src_install() {
39
src_install() {
34
	dobin cryptcat || die "dobin failed"
40
	dobin cryptcat
35
	dodoc Changelog README README.cryptcat netcat.blurb
41
	dodoc Changelog README README.cryptcat netcat.blurb
36
}
42
}

Return to bug 411075