summaryrefslogtreecommitdiff
path: root/net-analyzer/cryptcat
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/cryptcat
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/cryptcat')
-rw-r--r--net-analyzer/cryptcat/Manifest8
-rw-r--r--net-analyzer/cryptcat/cryptcat-1.2.1-r1.ebuild32
-rw-r--r--net-analyzer/cryptcat/cryptcat-1.2.1-r2.ebuild26
-rw-r--r--net-analyzer/cryptcat/files/cryptcat-1.2.1-build.patch43
-rw-r--r--net-analyzer/cryptcat/files/cryptcat-1.2.1-misc.patch48
-rw-r--r--net-analyzer/cryptcat/metadata.xml11
6 files changed, 168 insertions, 0 deletions
diff --git a/net-analyzer/cryptcat/Manifest b/net-analyzer/cryptcat/Manifest
new file mode 100644
index 000000000000..ed804ded3a3a
--- /dev/null
+++ b/net-analyzer/cryptcat/Manifest
@@ -0,0 +1,8 @@
+AUX cryptcat-1.2.1-build.patch 1092 SHA256 81def1e5b3d232a263cfe6e08fae45858ee4d6c2a8f8aebd9134649ff8b69aa0 SHA512 2c591122844c76fd43b18468b11e268315c9173431eab1bc992bba3e175387aed38ad4d4135aeabe261d2625bacf2ba8061dd57c43b1bfe945cf93be43f5284a WHIRLPOOL 48b5c4833c4c047619b4ad65cf9790cdcc174ff4583b1fda82f39c5cc4575618da9ce653fa7869c2cdfcbbdd6cfd1911d5c163468bc92622eacd657eaf85991e
+AUX cryptcat-1.2.1-misc.patch 1596 SHA256 f1fff1dfdac02014122b40278321a93b02bcab9bacc1663ac374db4ebaa8b642 SHA512 e0a71361d5e8033f221402661310dfad18c9c040e78920db8376388dc41cb8d7e4bb0127b2575634628be80be8e604e089b41e729ae30ec983f9a17f38239a6b WHIRLPOOL 2fbda98ab553d75481f3e7326f08e10044832e63805359eb0547c85350cf247c0c49ad6e9c6bc125c9698a922319c421368d9b65e27bbb2af397e584e25bdbd5
+DIST cryptcat-unix-1.2.1.tar 190464 SHA256 5dc9a9c2beac3d9658cc3e082c00f1127981a2f995b4ec485f281bf1800840d0 SHA512 2de6521903e489bc6d4f242aaac7f35a3a7fb226e1812ef5f1c3554420fce4378427e94b3e90eca5476d1068f1a9b44d9c5dbd0362888ad893cf66be106deb17 WHIRLPOOL e88ad1c16d21eae9221d88e1b80e81570fd44c60856b279c5522d255dce4795b2880e91506ab767e327965481718c8766a148f8e5924902068c3f641576846e1
+EBUILD cryptcat-1.2.1-r1.ebuild 766 SHA256 13cad8efa84758795bcb355489a13ffbe2626cf5308d20961455ff1b975f2c93 SHA512 4cdc55268e5b7ff347fbb374a0931f882ae5277b26948685b1d83ccdac5680b8ec30d00f34e8aa04c28634c290527f6ef6d9eb2b43d601cb72771a52b6ee5fe8 WHIRLPOOL 181a7b9caf1fbed1493631bf7f47af5e47a862d41e1603452c50761b6ec9b001d1d3f786b8747287bee7ab246e21278766dd68f228611da3b72f8328ccdb2f98
+EBUILD cryptcat-1.2.1-r2.ebuild 605 SHA256 3fbcac2ef97462c1d057b7b6a7bfd97583e90651396a9fc0b01a8e67b4a0b6e0 SHA512 8b27ee24e02e8c30de8bcdccc0edd1775d11c5f5b37a4b5d97c2688dc1ab49fa21d10d23c84cc6e071f37da8e279bf1189a0fca0b4b46f7f2b88e29caeb5f3a2 WHIRLPOOL e7802daa61ede7ebfa3ede9fb3fd50db7e6c79218ac18dd25f60e572385a2b33f05caa6c10d19910dff0df499ab7903c2608b1cefa10e994ec37d2236464ed15
+MISC ChangeLog 2573 SHA256 7d3ef82833d328d69ac4fb83f59934981cb564d6a825a446770e6bfe20030e1b SHA512 375697b6b25b619fd818b9be21833940524006ad627a9affdee9d4cca128bcc1550c2a37c26b2bd43fb4deaa34a6ea923070a735fa2dff3d3081164f37c240ab WHIRLPOOL 436ac524826e8598611fb6da575acbc549eee356cb53b37bf09bb0714b67d77e5ebe748f1f640de23224bb60d673270f7b6a66956160d32ecddcefa6563e89ad
+MISC ChangeLog-2015 2772 SHA256 c5aff5156bc80f8117c1400fc9dbf62258b1d95a3a13350d20818f0d3cd1384d SHA512 376fee8dc8d548d29453898128adcf0869e6178d1e1f6b5611527f263915b4688ecf3199111b5424c8c5d6a8194bba7d69bf3856aba6b87551b1319ea47545a7 WHIRLPOOL 03ebc1979f023039ebca438dccc5f1334d772573e4b36a2c78dfe0d734a9274d5093a42dc0469b2e15444e03df59bd367e86487cb1bf2f203972520db9cc9db7
+MISC metadata.xml 358 SHA256 7a009ec8cae85f970d07c9370e66f2682481b808be07bbe5cedbcd4cbf9f30fb SHA512 0deed41b2d8d5f038f7d61622230e5db913303a5419790127e300c65aa6603b79f0c1ce7adcd560550a0cdef577b360da9c53ba1569c141d850c7f92b607c8f4 WHIRLPOOL 0977036da15900b4256d9a2d2ad5b180449f97008ab68dd38f7954624d77c7e08c7d0b3bf435907e684e79b1fc5e9517a518074266c83ad180ed413625417c9d
diff --git a/net-analyzer/cryptcat/cryptcat-1.2.1-r1.ebuild b/net-analyzer/cryptcat/cryptcat-1.2.1-r1.ebuild
new file mode 100644
index 000000000000..b53c88f3c22f
--- /dev/null
+++ b/net-analyzer/cryptcat/cryptcat-1.2.1-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION="netcat clone extended with twofish encryption"
+HOMEPAGE="http://farm9.org/Cryptcat/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-unix-${PV}.tar"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+S=${WORKDIR}/unix
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+ echo "#define arm arm_timer" >> generic.h
+ sed -i \
+ -e 's:#define HAVE_BIND:#undef HAVE_BIND:' \
+ -e '/^#define FD_SETSIZE 16/s:16:1024:' \
+ -e 's:\<LINUX\>:__linux__:' \
+ netcat.c generic.h
+ tc-export CC CXX
+}
+
+src_install() {
+ dobin cryptcat
+ dodoc Changelog README README.cryptcat netcat.blurb
+}
diff --git a/net-analyzer/cryptcat/cryptcat-1.2.1-r2.ebuild b/net-analyzer/cryptcat/cryptcat-1.2.1-r2.ebuild
new file mode 100644
index 000000000000..0c94c1940d9e
--- /dev/null
+++ b/net-analyzer/cryptcat/cryptcat-1.2.1-r2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="netcat clone extended with twofish encryption"
+HOMEPAGE="http://cryptcat.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-unix-${PV}.tar"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
+
+S=${WORKDIR}/unix
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+ epatch "${FILESDIR}"/${P}-misc.patch
+ tc-export CC CXX
+}
+
+src_install() {
+ dobin cryptcat
+ dodoc Changelog README README.cryptcat netcat.blurb
+}
diff --git a/net-analyzer/cryptcat/files/cryptcat-1.2.1-build.patch b/net-analyzer/cryptcat/files/cryptcat-1.2.1-build.patch
new file mode 100644
index 000000000000..17ec33489c89
--- /dev/null
+++ b/net-analyzer/cryptcat/files/cryptcat-1.2.1-build.patch
@@ -0,0 +1,43 @@
+--- a/unix/Makefile
++++ b/unix/Makefile
+@@ -10,16 +10,14 @@
+ # debugging
+ # DFLAGS = -DTEST -DDEBUG
+ DFLAGS = -DGAPING_SECURITY_HOLE
+-CFLAGS = -O
++CFLAGS ?= -O
+ XFLAGS = # xtra cflags, set by systype targets
+ XLIBS = # xtra libs if necessary?
+ # -Bstatic for sunos, -static for gcc, etc. You want this, trust me.
+ STATIC =
+-CC = cc $(CFLAGS)
+-LD = $(CC) -s # linker; defaults to stripped executables
+ o = o # object extension
+
+-ALL = cryptcat
++all: cryptcat
+
+ ### BOGON-CATCHERS
+
+@@ -28,8 +26,8 @@
+
+ ### HARD TARGETS
+
+-cryptcat: netcat.c farm9crypt.o twofish2.o
+- $(LD) $(DFLAGS) $(XFLAGS) $(STATIC) -o cryptcat netcat.c farm9crypt.o twofish2.o $(XLIBS)
++cryptcat: netcat.o farm9crypt.o twofish2.o
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
+
+ nc-dos:
+ @echo "DOS?! Maybe someday, but not now"
+@@ -115,10 +112,8 @@
+ make -e $(ALL) $(MFLAGS) XFLAGS='-DNEXT' STATIC=-Bstatic
+
+ farm9crypt.o: farm9crypt.cc farm9crypt.h
+- ${CC} -c farm9crypt.cc
+
+ twofish2.o: twofish2.cc twofish2.h
+- ${CC} -c twofish2.cc
+
+ # start with this for a new architecture, and see what breaks.
+ generic:
diff --git a/net-analyzer/cryptcat/files/cryptcat-1.2.1-misc.patch b/net-analyzer/cryptcat/files/cryptcat-1.2.1-misc.patch
new file mode 100644
index 000000000000..8a2f9394b4a6
--- /dev/null
+++ b/net-analyzer/cryptcat/files/cryptcat-1.2.1-misc.patch
@@ -0,0 +1,48 @@
+--- a/netcat.c
++++ b/netcat.c
+@@ -39,7 +39,7 @@
+ /* conditional includes -- a very messy section which you may have to dink
+ for your own architecture [and please send diffs...]: */
+ /* #undef _POSIX_SOURCE /* might need this for something? */
+-#define HAVE_BIND /* ASSUMPTION -- seems to work everywhere! */
++#undef HAVE_BIND /* ASSUMPTION -- seems to work everywhere! */
+ #define HAVE_HELP /* undefine if you dont want the help text */
+ /* #define ANAL /* if you want case-sensitive DNS matching */
+
+@@ -56,7 +56,7 @@
+ #ifdef FD_SETSIZE /* should be in types.h, butcha never know. */
+ #undef FD_SETSIZE /* if we ever need more than 16 active */
+ #endif /* fd's, something is horribly wrong! */
+-#define FD_SETSIZE 16 /* <-- this'll give us a long anyways, wtf */
++#define FD_SETSIZE 1024 /* <-- this'll give us a long anyways, wtf */
+ #include <sys/types.h> /* *now* do it. Sigh, this is broken */
+
+ #ifdef HAVE_RANDOM /* aficionados of ?rand48() should realize */
+@@ -81,8 +81,10 @@
+ #include <errno.h>
+ #include <signal.h>
+ #include <fcntl.h> /* O_WRONLY et al */
++#include <unistd.h> /* alarm() close() sleep() */
++#include <time.h> /* time() */
+
+-#ifdef LINUX
++#ifdef __linux__
+ #include <resolv.h>
+ #endif
+
+--- a/generic.h
++++ b/generic.h
+@@ -274,7 +274,7 @@
+
+ /* linux, which is trying as desperately as the gnu folks can to be
+ POSIXLY_CORRECT. I think I'm gonna hurl... */
+-#ifdef LINUX
++#ifdef __linux__
+ #undef UTMPX
+ #undef HAVE_SYSINFO
+ #undef HAVE_SELECT_H
+@@ -373,3 +373,4 @@
+ /* ================ */
+ #endif /* GENERIC_H */
+
++#define arm arm_timer
diff --git a/net-analyzer/cryptcat/metadata.xml b/net-analyzer/cryptcat/metadata.xml
new file mode 100644
index 000000000000..12086277ff16
--- /dev/null
+++ b/net-analyzer/cryptcat/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">cryptcat</remote-id>
+ </upstream>
+</pkgmetadata>