crank-0.1.4 update
This commit is contained in:
parent
256f29d2c0
commit
78aa61a6d6
@ -1,37 +1,38 @@
|
||||
# $OpenBSD: Makefile,v 1.4 2001/07/25 04:20:17 obecian Exp $
|
||||
# $OpenBSD: Makefile,v 1.5 2001/08/09 18:53:30 obecian Exp $
|
||||
|
||||
COMMENT= "classical (pen-and-paper) cipher cryptanalysis toolkit"
|
||||
|
||||
DISTNAME= crank-0.1.3
|
||||
CATEGORIES= security
|
||||
NEED_VERSION= 1.364
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
DISTNAME= crank-0.1.4
|
||||
CATEGORIES= security
|
||||
NEED_VERSION= 1.364
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= crank
|
||||
|
||||
HOMEPAGE= http://crank.sourceforge.net/
|
||||
HOMEPAGE= http://crank.sourceforge.net/
|
||||
|
||||
LIB_DEPENDS= gtk.1.2::x11/gtk+
|
||||
LIB_DEPENDS= gtk.1.2::x11/gtk+
|
||||
|
||||
MAINTAINER= Mark Grimes <obecian@openbsd.org>
|
||||
MAINTAINER= Mark Grimes <obecian@openbsd.org>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
USE_GMAKE= Yes
|
||||
ALL_TARGET= all
|
||||
CONFIGURE_STYLE= gnu
|
||||
USE_GMAKE= Yes
|
||||
|
||||
DOC= BUGS HISTORY LICENSE README ciphertext.txt
|
||||
DOC= BUGS HISTORY LICENSE README ciphertext.txt ciphertext2.txt
|
||||
|
||||
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}/lib/crank
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/lib/crank/plugins
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/crank
|
||||
${INSTALL_DATA} ${WRKSRC}/data/*.dat ${PREFIX}/share/crank/data
|
||||
${INSTALL_DATA} ${WRKSRC}/plugin-src/*.so ${PREFIX}/share/crank/plugins
|
||||
${INSTALL_DATA} ${WRKSRC}/plugin-src/*.so ${PREFIX}/lib/crank/plugins
|
||||
.for file in ${DOC}
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/crank
|
||||
.endfor
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (crank-0.1.3.tar.gz) = a4ab2ac35b326c97f78f6b7abdb7249b
|
||||
RMD160 (crank-0.1.3.tar.gz) = 664f5be9b9b4b4b0bb2b4f9fdc5c485210b4ec7d
|
||||
SHA1 (crank-0.1.3.tar.gz) = cf2ef779c368c3f6379c01bf5f6132fb267a896a
|
||||
MD5 (crank-0.1.4.tar.gz) = 5fb4464f22a2efcedbd336ee6ab3fbce
|
||||
RMD160 (crank-0.1.4.tar.gz) = b94d8433948636a3efd37a9dee4b1d1c1f0278df
|
||||
SHA1 (crank-0.1.4.tar.gz) = 67efa5d66c7dff951f016138ee2a9ae37116227e
|
||||
|
@ -1,158 +0,0 @@
|
||||
--- Makefile.orig Sun Jul 22 21:52:36 2001
|
||||
+++ Makefile Sun Jul 22 21:58:34 2001
|
||||
@@ -4,34 +4,33 @@
|
||||
# Copyright (C) 2000 Matthew Russell
|
||||
# See LICENSE for more info
|
||||
|
||||
-VERSION = $(shell cat VERSION)
|
||||
CC = gcc
|
||||
-CFLAGS = -g -Wall -pedantic `gtk-config --cflags`
|
||||
+CFLAGS = -Wall -g `gtk-config --cflags`
|
||||
LIBS = `gtk-config --libs`
|
||||
OBJFILES = $(patsubst %.c,%.o,$(wildcard *.c))
|
||||
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
|
||||
+#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
|
||||
|
||||
# Files for source distribution
|
||||
-DISTFILES = *.[ch] Makefile Makefile.mingw README BUGS VERSION \
|
||||
+#DISTFILES = *.[ch] Makefile Makefile.mingw README BUGS VERSION \
|
||||
HISTORY LICENSE TODO ciphertext.txt crank.def
|
||||
-DISTFILES_DATA = data/*.dat
|
||||
-DISTFILES_PLUGINS = $(PLUGIN-SRC)/*.[ch] $(PLUGIN-SRC)/Makefile $(PLUGIN-SRC)/Makefile.mingw $(PLUGIN-SRC)/plugin-floating.def $(PLUGIN-SRC)/plugin-mode.def
|
||||
+#DISTFILES_DATA = data/*.dat
|
||||
+#DISTFILES_PLUGINS = $(PLUGIN-SRC)/*.[ch] $(PLUGIN-SRC)/Makefile $(PLUGIN-SRC)/Makefile.mingw $(PLUGIN-SRC)/plugin-floating.def $(PLUGIN-SRC)/plugin-mode.def
|
||||
|
||||
# Files for binary distribution (leaving out actual binaries)
|
||||
-BINDISTFILES = README BUGS HISTORY LICENSE TODO ciphertext.txt
|
||||
-BINDISTFILES_DATA = data/*.dat
|
||||
+#BINDISTFILES = README BUGS HISTORY LICENSE TODO ciphertext.txt
|
||||
+#BINDISTFILES_DATA = data/*.dat
|
||||
|
||||
# Windows binaries
|
||||
-WINBIN_DIR = winbin
|
||||
-WINBINFILES = $(WINBIN_DIR)/crank.exe
|
||||
-WINBINGTK = $(WINBIN_DIR)/*.dll
|
||||
-WINBINFILES_PLUGINS = $(WINBIN_DIR)/plugins/*.dll
|
||||
+#WINBIN_DIR = winbin
|
||||
+#WINBINFILES = $(WINBIN_DIR)/crank.exe
|
||||
+#WINBINGTK = $(WINBIN_DIR)/*.dll
|
||||
+#WINBINFILES_PLUGINS = $(WINBIN_DIR)/plugins/*.dll
|
||||
|
||||
all: crank plugin
|
||||
|
||||
@@ -51,96 +50,12 @@ 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.
|
||||
-
|
||||
-
|
||||
-# Various packaging commands to make life easier
|
||||
-
|
||||
-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)
|
||||
-bindist:
|
||||
- @echo =================================
|
||||
- @echo Building Crank $(VERSION) binary frame
|
||||
- @echo =================================
|
||||
- -rm -r crank-bin-$(VERSION)
|
||||
- mkdir crank-bin-$(VERSION)
|
||||
- -cp $(BINDISTFILES) crank-bin-$(VERSION)
|
||||
- -mkdir crank-bin-$(VERSION)/data
|
||||
- -cp $(BINDISTFILES_DATA) crank-bin-$(VERSION)/data
|
||||
- -mkdir crank-bin-$(VERSION)/plugins
|
||||
- ls -lR crank-bin-$(VERSION)
|
||||
-
|
||||
-windist:
|
||||
- @echo ====================================
|
||||
- @echo Building Windows binary distribution
|
||||
- @echo ====================================
|
||||
- -rm crank-win-$(VERSION).zip
|
||||
- make bindist
|
||||
- make windist-main
|
||||
- make windist-gtk
|
||||
- make windist-zip
|
||||
- mv crank-win.zip crank-win-$(VERSION).zip
|
||||
- ls -l crank-win-$(VERSION).zip
|
||||
-
|
||||
-windist-no-gtk:
|
||||
- @echo ====================================
|
||||
- @echo Building Windows binary distribution
|
||||
- @echo ====================================
|
||||
- -rm crank-win-no-gtk-$(VERSION).zip
|
||||
- make bindist
|
||||
- make windist-main
|
||||
- make windist-zip
|
||||
- mv crank-win.zip crank-win-no-gtk-$(VERSION).zip
|
||||
- ls -l crank-win-no-gtk-$(VERSION).zip
|
||||
-
|
||||
-windist-main:
|
||||
- @echo ===================================
|
||||
- @echo Copying main executable and plugins
|
||||
- @echo ===================================
|
||||
- cp $(WINBINFILES) crank-bin-$(VERSION)/
|
||||
- cp $(WINBINFILES_PLUGINS) crank-bin-$(VERSION)/plugins/
|
||||
-
|
||||
-windist-gtk:
|
||||
- @echo ======================
|
||||
- @echo Copying gtk+ libraries
|
||||
- @echo ======================
|
||||
- cp $(WINBINGTK) crank-bin-$(VERSION)/
|
||||
-
|
||||
-windist-zip:
|
||||
- @echo ==========
|
||||
- @echo Making zip
|
||||
- @echo ==========
|
||||
- mv crank-bin-$(VERSION) crank-win-$(VERSION)
|
||||
- zip -r -9 crank-win crank-win-$(VERSION)/
|
||||
- rm -r crank-win-$(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.
|
||||
|
11
security/crank/patches/patch-configure
Normal file
11
security/crank/patches/patch-configure
Normal file
@ -0,0 +1,11 @@
|
||||
--- configure.orig Thu Aug 9 11:27:48 2001
|
||||
+++ configure Thu Aug 9 11:28:00 2001
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
# Defaults:
|
||||
ac_help=
|
||||
-ac_default_prefix=/usr/local
|
||||
+ac_default_prefix=${LOCALBASE}
|
||||
# Any additions from configure.in:
|
||||
ac_help="$ac_help
|
||||
--with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
|
@ -1,19 +0,0 @@
|
||||
--- plugin-src/Makefile.orig Sun Jul 22 21:59:07 2001
|
||||
+++ plugin-src/Makefile Sun Jul 22 21:59:55 2001
|
||||
@@ -8,7 +8,7 @@ CRANK_DIR = ..
|
||||
INSTALL_DIR = ..
|
||||
|
||||
CC = gcc
|
||||
-CFLAGS = -Wall -pedantic -fPIC -g `gtk-config --cflags` -I$(CRANK_DIR)
|
||||
+CFLAGS += -Wall -fPIC -g `gtk-config --cflags` -I$(CRANK_DIR)
|
||||
|
||||
|
||||
all: monoalphabetic.key-controls.so \
|
||||
@@ -60,5 +60,5 @@ transpositions.grid-brute-force.o: trans
|
||||
clean:
|
||||
-rm *.o
|
||||
rm *.so
|
||||
-install:
|
||||
- cp *.so $(INSTALL_DIR)/plugins/
|
||||
+#install:
|
||||
+# cp *.so $(INSTALL_DIR)/plugins/
|
@ -1,21 +1,25 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2001/07/25 04:20:17 obecian Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.4 2001/08/09 18:53:30 obecian Exp $
|
||||
bin/crank
|
||||
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/steganalysis.word-gaps.so
|
||||
share/crank/plugins/text.simple-filters.so
|
||||
share/crank/plugins/transpositions.grid-controls.so
|
||||
share/crank/plugins/utilities.notepad.so
|
||||
share/crank/data/word-list.dat
|
||||
lib/crank/plugins/fitness.word-count.so
|
||||
lib/crank/plugins/monoalphabetic.hillclimb-cracker.so
|
||||
lib/crank/plugins/monoalphabetic.key-controls.so
|
||||
lib/crank/plugins/statistics.n-grams.so
|
||||
lib/crank/plugins/steganalysis.word-gaps.so
|
||||
lib/crank/plugins/text.simple-filters.so
|
||||
lib/crank/plugins/transpositions.grid-brute-force.so
|
||||
lib/crank/plugins/transpositions.grid-controls.so
|
||||
lib/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
|
||||
share/doc/crank/ciphertext2.txt
|
||||
@dirrm lib/crank/plugins
|
||||
@dirrm share/doc/crank
|
||||
@dirrm share/crank/plugins
|
||||
@dirrm share/crank/data
|
||||
@dirrm share/crank
|
||||
|
Loading…
Reference in New Issue
Block a user