update to crank-0.1.1
(BUGFIX: resolved segfault on execution)
This commit is contained in:
parent
34d759deed
commit
f67415d160
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2001/03/28 08:33:55 obecian Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2001/04/21 03:32:32 obecian Exp $
|
||||
|
||||
COMMENT= "classical (pen-and-paper) cipher cryptanalysis toolkit"
|
||||
|
||||
DISTNAME= crank-0.0.5
|
||||
DISTNAME= crank-0.1.1
|
||||
CATEGORIES= security
|
||||
NEED_VERSION= 1.364
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
@ -20,23 +20,18 @@ PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
USE_GMAKE= Yes
|
||||
ALL_TARGET= crank
|
||||
ALL_TARGET= all
|
||||
|
||||
DATA= bift.dat slft.dat trift.dat
|
||||
DOC= BUGS HISTORY LICENSE README ciphertext.txt
|
||||
|
||||
post-patch:
|
||||
cd ${WRKSRC}; \
|
||||
cp crank.h _bad_crank.h; \
|
||||
sed -e s#!!LOCALBASE!!#${LOCALBASE}#g _bad_crank.h > crank.h
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/crank ${PREFIX}/bin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/crank
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/crank/data
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/crank/plugins
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/crank
|
||||
.for file in ${DATA}
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/data/${file} ${PREFIX}/share/crank
|
||||
.endfor
|
||||
${INSTALL_DATA} ${WRKSRC}/data/*.dat ${PREFIX}/share/crank/data
|
||||
${INSTALL_DATA} ${WRKSRC}/plugin-src/*.so ${PREFIX}/share/crank/plugins
|
||||
.for file in ${DOC}
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/crank
|
||||
.endfor
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (crank-0.0.5.tar.gz) = 37632ee6b7f0f718b861117658fe8998
|
||||
RMD160 (crank-0.0.5.tar.gz) = d85a76de710109252c1308aae45e4de8b9770f2b
|
||||
SHA1 (crank-0.0.5.tar.gz) = b5cda9c630983fb35fbe3503342b4f35d5ce0e2f
|
||||
MD5 (crank-0.1.1.tar.gz) = 80412401386eec3e2bf76bc167c7fb72
|
||||
RMD160 (crank-0.1.1.tar.gz) = a1acc469b09802f6a4474c92c648e31f860b17e5
|
||||
SHA1 (crank-0.1.1.tar.gz) = 900a85c29a3303600d28f539d5f015f881d2ffbb
|
||||
|
@ -1,10 +1,79 @@
|
||||
--- Makefile.orig Sat Mar 17 12:33:13 2001
|
||||
+++ Makefile Sat Mar 17 12:33:38 2001
|
||||
@@ -1,6 +1,6 @@
|
||||
VERSION = $(shell cat VERSION)
|
||||
--- Makefile.orig Fri Apr 20 19:26:50 2001
|
||||
+++ Makefile Fri Apr 20 20:01:35 2001
|
||||
@@ -1,20 +1,17 @@
|
||||
-VERSION = $(shell cat VERSION)
|
||||
CC = gcc
|
||||
-CFLAGS = -Wall -g `gtk-config --cflags`
|
||||
-DYNAMICGDB = -Wl,--dynamic-linker,/lib/ld-linux.so.2
|
||||
-CFLAGS = -g -Wall -pedantic `gtk-config --cflags`
|
||||
+CFLAGS += -Wall -g `gtk-config --cflags`
|
||||
LIBS = `gtk-config --libs`
|
||||
OBJFILES = $(patsubst %.c,%.o,$(wildcard *.c))
|
||||
DISTFILES = *.c *.h Makefile Makefile.mingw README BUGS VERSION \
|
||||
PLUGIN-SRC = plugin-src
|
||||
-PLUGINS = $(PLUGIN-SRC)/monoalphabetic.hillclimb-cracker.so \
|
||||
- $(PLUGIN-SRC)/monoalphabetic.key-controls.so \
|
||||
- $(PLUGIN-SRC)/statistics.n-grams.so \
|
||||
- $(PLUGIN-SRC)/text.simple-filters.so \
|
||||
- $(PLUGIN-SRC)/utilities.notepad.so
|
||||
-TMPDIR = /usr/tmp
|
||||
-DISTFILES = *.[ch] Makefile Makefile.mingw README BUGS VERSION \
|
||||
- HISTORY LICENSE TODO ciphertext.txt
|
||||
-DISTFILES_DATA = data/*.dat
|
||||
-DISTFILES_PLUGINS = $(PLUGIN-SRC)/*.[ch] $(PLUGIN-SRC)/Makefile
|
||||
+#PLUGINS = $(PLUGIN-SRC)/monoalphabetic.hillclimb-cracker.so \
|
||||
+# $(PLUGIN-SRC)/monoalphabetic.key-controls.so \
|
||||
+# $(PLUGIN-SRC)/statistics.n-grams.so \
|
||||
+# $(PLUGIN-SRC)/text.simple-filters.so \
|
||||
+# $(PLUGIN-SRC)/utilities.notepad.so
|
||||
+#DISTFILES = *.[ch] Makefile Makefile.mingw README BUGS VERSION \
|
||||
+# HISTORY LICENSE TODO ciphertext.txt
|
||||
+#DISTFILES_DATA = data/*.dat
|
||||
+#DISTFILES_PLUGINS = $(PLUGIN-SRC)/*.[ch] $(PLUGIN-SRC)/Makefile
|
||||
|
||||
all: crank plugin
|
||||
|
||||
@@ -34,37 +31,11 @@ clean:
|
||||
TAGS:
|
||||
etags *.[ch] $(PLUGIN-SRC)/*.[ch]
|
||||
|
||||
-install:
|
||||
- @echo ======================
|
||||
- @echo Installing Crank $(VERSION)
|
||||
- @echo ======================
|
||||
- @echo Currently only installs to local directory by installing the plugins.
|
||||
- -mkdir plugins
|
||||
- cd $(PLUGIN-SRC) && make install
|
||||
- @echo Installation complete.
|
||||
-dist:
|
||||
- @echo ========================================
|
||||
- @echo Building Crank $(VERSION) source distribution
|
||||
- @echo ========================================
|
||||
- @echo Crank: `cat *.[ch] | wc -l` lines - `ls -l *.[ch] | wc -l` source files
|
||||
- @echo Plugins: `cat plugin-src/*.[ch] | wc -l` lines - `ls -l plugin-src/*.[ch] | wc -l` source files
|
||||
- @echo Total: `cat *.[ch] plugin-src/*.[ch] | wc -l` lines - `ls -l *.[ch] plugin-src/*.[ch] | wc -l` source files
|
||||
- -mkdir crank-$(VERSION)
|
||||
- cp $(DISTFILES) crank-$(VERSION)
|
||||
- -mkdir crank-$(VERSION)/data
|
||||
- cp $(DISTFILES_DATA) crank-$(VERSION)/data
|
||||
- -mkdir crank-$(VERSION)/plugin-src
|
||||
- cp $(DISTFILES_PLUGINS) crank-$(VERSION)/plugin-src
|
||||
- tar cvf crank-$(VERSION).tar crank-$(VERSION)
|
||||
- gzip -fv -best crank-$(VERSION).tar
|
||||
- rm -r crank-$(VERSION)
|
||||
- ls -l crank-$(VERSION).tar.gz
|
||||
-distcheck:
|
||||
- @echo ======================================
|
||||
- @echo Test building Crank $(VERSION) distribution
|
||||
- @echo ======================================
|
||||
- tar xzf crank-$(VERSION).tar.gz --directory $(TMPDIR)
|
||||
- -cd $(TMPDIR)/crank-$(VERSION); make; make install
|
||||
- -cd $(TMPDIR)/crank-$(VERSION); ./crank
|
||||
- -rm -rf $(TMPDIR)/crank-$(VERSION)
|
||||
-
|
||||
+#install:
|
||||
+# @echo ======================
|
||||
+# @echo Installing Crank $(VERSION)
|
||||
+# @echo ======================
|
||||
+# @echo Currently only installs to local directory by installing the plugins.
|
||||
+# -mkdir plugins
|
||||
+# cd $(PLUGIN-SRC) && make install
|
||||
+# @echo Installation complete.
|
||||
|
@ -1,15 +0,0 @@
|
||||
--- crank.h.orig Mon Jan 29 23:44:56 2001
|
||||
+++ crank.h Mon Jan 29 23:47:29 2001
|
||||
@@ -67,9 +67,9 @@ typedef struct {
|
||||
|
||||
#define GLOBAL_TRANSFORMED_TEXT (gtk_editable_get_chars(GTK_EDITABLE(textarea), 0, -1))
|
||||
|
||||
-#define DEFAULT_SLFT "data/slft.dat"
|
||||
-#define DEFAULT_BIFT "data/bift.dat"
|
||||
-#define DEFAULT_TRIFT "data/trift.dat"
|
||||
+#define DEFAULT_SLFT "!!LOCALBASE!!/share/crank/slft.dat"
|
||||
+#define DEFAULT_BIFT "!!LOCALBASE!!/share/crank/bift.dat"
|
||||
+#define DEFAULT_TRIFT "!!LOCALBASE!!/share/crank/trift.dat"
|
||||
|
||||
#define STR_FREQUENCY "Frequency"
|
||||
#define STR_STANDARD_FREQUENCY "Standard Frequency"
|
17
security/crank/patches/patch-plugin_src_Makefile
Normal file
17
security/crank/patches/patch-plugin_src_Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
--- plugin-src/Makefile.orig Fri Apr 20 20:02:07 2001
|
||||
+++ plugin-src/Makefile Fri Apr 20 20:02:56 2001
|
||||
@@ -1,5 +1,5 @@
|
||||
CC = gcc
|
||||
-CFLAGS = -Wall -pedantic -fPIC -g `gtk-config --cflags` -I..
|
||||
+CFLAGS += -Wall -fPIC -g `gtk-config --cflags` -I..
|
||||
|
||||
all: monoalphabetic.key-controls.so statistics.n-grams.so monoalphabetic.hillclimb-cracker.so text.simple-filters.so utilities.notepad.so
|
||||
|
||||
@@ -21,5 +21,5 @@ utilities.notepad.so: utilities.notepad.
|
||||
clean:
|
||||
-rm *.o
|
||||
rm *.so
|
||||
-install:
|
||||
- cp *.so ../plugins/
|
||||
+#install:
|
||||
+# cp *.so ../plugins/
|
11
security/crank/pkg/MESSAGE
Normal file
11
security/crank/pkg/MESSAGE
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
crank MUST be run from a directory where the plugins/ and data/
|
||||
directories are present.
|
||||
|
||||
The recommended runtime configuration is to do the following:
|
||||
|
||||
% cd ./crank-lab
|
||||
% ln -sf /usr/local/bin/crank .
|
||||
% cp -Rp /usr/local/share/crank/{data,plugins} .
|
||||
% ./crank
|
||||
|
@ -1,12 +1,19 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/02/06 08:07:48 obecian Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2001/04/21 03:32:33 obecian Exp $
|
||||
bin/crank
|
||||
share/crank/bift.dat
|
||||
share/crank/slft.dat
|
||||
share/crank/trift.dat
|
||||
share/crank/data/bift.dat
|
||||
share/crank/data/slft.dat
|
||||
share/crank/data/trift.dat
|
||||
share/crank/plugins/monoalphabetic.hillclimb-cracker.so
|
||||
share/crank/plugins/monoalphabetic.key-controls.so
|
||||
share/crank/plugins/statistics.n-grams.so
|
||||
share/crank/plugins/text.simple-filters.so
|
||||
share/crank/plugins/utilities.notepad.so
|
||||
share/doc/crank/BUGS
|
||||
share/doc/crank/HISTORY
|
||||
share/doc/crank/LICENSE
|
||||
share/doc/crank/README
|
||||
share/doc/crank/ciphertext.txt
|
||||
@dirrm share/crank/plugins
|
||||
@dirrm share/crank/data
|
||||
@dirrm share/crank
|
||||
@dirrm share/doc/crank
|
||||
|
Loading…
Reference in New Issue
Block a user