diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-04-18 19:43:17 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-04-18 19:43:17 +0000 |
commit | 983ecac135104b60c9f6d37fef2af08f382d7c80 (patch) | |
tree | 89bb62c088aa134169512bca991a75470821be51 /security/crank | |
parent | Apply one more latest fix. (diff) |
add crank
CRyptANalysis toolKit
Notes
Notes:
svn path=/head/; revision=41657
Diffstat (limited to 'security/crank')
-rw-r--r-- | security/crank/Makefile | 32 | ||||
-rw-r--r-- | security/crank/distinfo | 1 | ||||
-rw-r--r-- | security/crank/files/patch-Makefile | 29 | ||||
-rw-r--r-- | security/crank/files/patch-plugin-src::Makefile | 15 | ||||
-rw-r--r-- | security/crank/files/patch-plugins.c | 11 | ||||
-rw-r--r-- | security/crank/pkg-comment | 1 | ||||
-rw-r--r-- | security/crank/pkg-descr | 11 | ||||
-rw-r--r-- | security/crank/pkg-plist | 7 |
8 files changed, 107 insertions, 0 deletions
diff --git a/security/crank/Makefile b/security/crank/Makefile new file mode 100644 index 000000000000..8d34a529e7ef --- /dev/null +++ b/security/crank/Makefile @@ -0,0 +1,32 @@ +# ex:ts=8 +# New ports collection makefile for: Crank +# Date created: Apr 18, 2001 +# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= crank +PORTVERSION= 0.1.2 +CATEGORIES= security +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= ijliao@FreeBSD.org + +USE_GTK= yes +USE_GMAKE= yes + +post-patch: +.for file in Makefile plugin-src/Makefile + @${PERL} -pi -e "s,gtk-config,${GTK_CONFIG},g" ${WRKSRC}/${file} +.endfor + @${PERL} -pi -e "s,plugins,${PREFIX}/lib/crank,g" ${WRKSRC}/crank.h + @${PERL} -pi -e "s, -g , ,g" ${WRKSRC}/plugin-src/Makefile + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/crank ${PREFIX}/bin + @${MKDIR} ${PREFIX}/lib/crank + @${CP} ${WRKSRC}/plugin-src/*.so ${PREFIX}/lib/crank + +.include <bsd.port.mk> diff --git a/security/crank/distinfo b/security/crank/distinfo new file mode 100644 index 000000000000..50370b1f47a5 --- /dev/null +++ b/security/crank/distinfo @@ -0,0 +1 @@ +MD5 (crank-0.1.2.tar.gz) = 660ea31d16038246850cc99438f2f1f2 diff --git a/security/crank/files/patch-Makefile b/security/crank/files/patch-Makefile new file mode 100644 index 000000000000..a1f871980ed8 --- /dev/null +++ b/security/crank/files/patch-Makefile @@ -0,0 +1,29 @@ +--- Makefile.orig Tue Apr 17 08:42:25 2001 ++++ Makefile Wed Apr 18 23:57:16 2001 +@@ -1,7 +1,7 @@ + VERSION = $(shell cat VERSION) + CC = gcc + DYNAMICGDB = -Wl,--dynamic-linker,/lib/ld-linux.so.2 +-CFLAGS = -g -Wall -pedantic `gtk-config --cflags` ++CFLAGS += `gtk-config --cflags` + LIBS = `gtk-config --libs` + OBJFILES = $(patsubst %.c,%.o,$(wildcard *.c)) + PLUGIN-SRC = plugin-src +@@ -10,7 +10,7 @@ + $(PLUGIN-SRC)/statistics.n-grams.so \ + $(PLUGIN-SRC)/text.simple-filters.so \ + $(PLUGIN-SRC)/utilities.notepad.so +-TMPDIR = /usr/tmp ++TMPDIR = /tmp + DISTFILES = *.[ch] Makefile Makefile.mingw README BUGS VERSION \ + HISTORY LICENSE TODO ciphertext.txt + DISTFILES_DATA = data/*.dat +@@ -19,7 +19,7 @@ + all: crank plugin + + crank: $(OBJFILES) +- $(CC) $(CFLAGS) $(LIBDIR) -o crank $(OBJFILES) $(LIBS) ++ $(CC) $(CFLAGS) -o crank $(OBJFILES) $(LIBS) + + $(OBJFILES) : crank.h + diff --git a/security/crank/files/patch-plugin-src::Makefile b/security/crank/files/patch-plugin-src::Makefile new file mode 100644 index 000000000000..e0f4f1a188aa --- /dev/null +++ b/security/crank/files/patch-plugin-src::Makefile @@ -0,0 +1,15 @@ +--- plugin-src/Makefile.orig Wed Apr 18 23:52:38 2001 ++++ plugin-src/Makefile Wed Apr 18 23:56:10 2001 +@@ -1,10 +1,10 @@ + CC = gcc +-CFLAGS = -Wall -pedantic -fPIC -g `gtk-config --cflags` -I.. ++CFLAGS += -fPIC `gtk-config --cflags` -I.. + + all: monoalphabetic.key-controls.so statistics.n-grams.so monoalphabetic.hillclimb-cracker.so text.simple-filters.so utilities.notepad.so + + monoalphabetic.key-controls.so: monoalphabetic.key-controls.o common.monoalphabetic.o +- $(CC) $(CFLAGS) -g -shared -o $@ $< common.monoalphabetic.o -lc ++ $(CC) $(CFLAGS) -g -shared -o $@ $< common.monoalphabetic.o + + statistics.n-grams.so: statistics.n-grams.o common.statistics.n-grams.o + $(CC) $(CFLAGS) -g -shared -o $@ $< common.statistics.n-grams.o diff --git a/security/crank/files/patch-plugins.c b/security/crank/files/patch-plugins.c new file mode 100644 index 000000000000..b114ad9d0ff9 --- /dev/null +++ b/security/crank/files/patch-plugins.c @@ -0,0 +1,11 @@ +--- plugins.c.orig Thu Apr 19 03:34:39 2001 ++++ plugins.c Thu Apr 19 03:35:01 2001 +@@ -60,7 +60,7 @@ + if (!g_module_supported()) + g_error("Plugins not supported on this platform."); + +- if (!(plugin_dir = opendir("plugins"))) ++ if (!(plugin_dir = opendir(PLUGIN_DIR))) + g_error("Could not open plugin directory - %s", PLUGIN_DIR); + + /* Loop over each file in the plugin directory */ diff --git a/security/crank/pkg-comment b/security/crank/pkg-comment new file mode 100644 index 000000000000..5cc662d75d48 --- /dev/null +++ b/security/crank/pkg-comment @@ -0,0 +1 @@ +CRyptANalysis toolKit diff --git a/security/crank/pkg-descr b/security/crank/pkg-descr new file mode 100644 index 000000000000..6c60d4e79010 --- /dev/null +++ b/security/crank/pkg-descr @@ -0,0 +1,11 @@ +Crank is short for "CRyptANalysis toolKit", and its overall purpose is to +provide a powerful and extensible environment for solving classical +(pen-and-paper) ciphers, providing as much automation as possible. Classical +ciphers include common schemes like monoalphabetic substitutions, where each +letter of the alphabet is mapped to another (usually different) letter +consistently through the text. The first version of Crank is restricting +itself to these special ciphers. Other algorithms forever devoid of Crank's +attentions include Enigma, RSA, DES, MurkelFish, or anything else invented +after 1900. They're hard(er). + +WWW: http://crank.sourceforge.net/ diff --git a/security/crank/pkg-plist b/security/crank/pkg-plist new file mode 100644 index 000000000000..5b6cf3dd7723 --- /dev/null +++ b/security/crank/pkg-plist @@ -0,0 +1,7 @@ +bin/crank +lib/crank/monoalphabetic.hillclimb-cracker.so +lib/crank/monoalphabetic.key-controls.so +lib/crank/statistics.n-grams.so +lib/crank/text.simple-filters.so +lib/crank/utilities.notepad.so +@dirrm lib/crank |