Fri, 09 Jan 2009 18:39:17 +0100
Import new package spec for introduction into repository.
cryptbreaker/cryptbreaker.patch | file | annotate | diff | comparison | revisions | |
cryptbreaker/cryptbreaker.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cryptbreaker/cryptbreaker.patch Fri Jan 09 18:39:17 2009 +0100 1.3 @@ -0,0 +1,151 @@ 1.4 +Index: terminal.c 1.5 +--- terminal.c.orig 1988-11-26 01:40:43.000000000 +0100 1.6 ++++ terminal.c 2009-01-09 18:15:47.583499911 +0100 1.7 +@@ -6,11 +6,11 @@ 1.8 + /* 1.9 + * Routines in terminal abstraction: 1.10 + * 1.11 +- * set_term() 1.12 ++ * set_cb_term() 1.13 + * Initialize terminal, clear the screen. 1.14 + * 1.15 +- * unset_term() 1.16 +- * Return terminal to state before set_term(). 1.17 ++ * unset_cb_term() 1.18 ++ * Return terminal to state before set_cb_term(). 1.19 + * 1.20 + * char2sym(char) 1.21 + * Return the symbol used to display the given char in the 1.22 +@@ -97,6 +97,14 @@ 1.23 + */ 1.24 + 1.25 + 1.26 ++#include <stdio.h> 1.27 ++#include <stdlib.h> 1.28 ++#include <termios.h> 1.29 ++#if (defined(sun) && defined(__svr4__)) 1.30 ++#include <sys/ttold.h> 1.31 ++#else 1.32 ++#include <sys/ioctl.h> 1.33 ++#endif 1.34 + #include <curses.h> 1.35 + #include <sgtty.h> 1.36 + #include <strings.h> 1.37 +@@ -216,7 +224,7 @@ 1.38 + * and termcap subroutine packages, although the old code is used 1.39 + * for screen refresh. 1.40 + */ 1.41 +-set_term() 1.42 ++set_cb_term() 1.43 + { 1.44 + printf("\n\nInitializing terminal ..."); 1.45 + fflush(stdout); 1.46 +@@ -609,7 +617,7 @@ 1.47 + 1.48 + /* Restore the terminal to its original mode. 1.49 + */ 1.50 +-unset_term() 1.51 ++unset_cb_term() 1.52 + { 1.53 + enter_mode(SMNORMAL); 1.54 + Puts(end_kp); /* Can't tell if this is original. */ 1.55 +Index: tritab.c 1.56 +--- tritab.c.orig 1988-11-26 01:39:37.000000000 +0100 1.57 ++++ tritab.c 2009-01-09 17:44:48.411457903 +0100 1.58 +@@ -4,6 +4,7 @@ 1.59 + 1.60 + #include <math.h> 1.61 + #include <stdio.h> 1.62 ++#include <stdlib.h> 1.63 + #include "window.h" 1.64 + #include "specs.h" 1.65 + #include "cipher.h" 1.66 +Index: cipher.c 1.67 +--- cipher.c.orig 1988-11-26 01:40:22.000000000 +0100 1.68 ++++ cipher.c 2009-01-09 17:54:12.811182642 +0100 1.69 +@@ -6,6 +6,7 @@ 1.70 + 1.71 + 1.72 + #include <stdio.h> 1.73 ++#include <stdlib.h> 1.74 + #include <math.h> 1.75 + #include "window.h" 1.76 + #include "specs.h" 1.77 +Index: start.c 1.78 +--- start.c.orig 1988-11-26 01:39:45.000000000 +0100 1.79 ++++ start.c 2009-01-09 18:05:43.601774154 +0100 1.80 +@@ -11,6 +11,7 @@ 1.81 + 1.82 + 1.83 + #include <stdio.h> 1.84 ++#include <stdlib.h> 1.85 + #include <signal.h> 1.86 + #include <setjmp.h> 1.87 + #include "window.h" 1.88 +@@ -109,13 +110,13 @@ 1.89 + { 1.90 + setcursor(MAXHEIGHT, 1); 1.91 + fflush(stdout); 1.92 +- unset_term(); 1.93 ++ unset_cb_term(); 1.94 + 1.95 + kill(getpid(), SIGSTOP); 1.96 + 1.97 + /* Return here when/if program restarted. */ 1.98 + /* Note that the signal mask is restored by longjmp. */ 1.99 +- set_term(); 1.100 ++ set_cb_term(); 1.101 + longjmp(saved_stack, 0); 1.102 + } 1.103 + 1.104 +@@ -128,7 +129,7 @@ 1.105 + setcursor(MAXHEIGHT, 1); 1.106 + printf("\n"); 1.107 + fflush(stdout); 1.108 +- unset_term(); 1.109 ++ unset_cb_term(); 1.110 + 1.111 + kill(getpid(), SIGKILL); 1.112 + } 1.113 +@@ -192,7 +193,7 @@ 1.114 + done(status) 1.115 + int status; 1.116 + { 1.117 +- unset_term(); 1.118 ++ unset_cb_term(); 1.119 + printf("\n"); 1.120 + exit(status); 1.121 + } 1.122 +Index: stats.c 1.123 +--- stats.c.orig 1988-11-26 01:40:42.000000000 +0100 1.124 ++++ stats.c 2009-01-09 17:54:22.235822458 +0100 1.125 +@@ -7,6 +7,7 @@ 1.126 + 1.127 + 1.128 + #include <stdio.h> 1.129 ++#include <stdlib.h> 1.130 + #include <math.h> 1.131 + #include "window.h" 1.132 + #include "specs.h" 1.133 +Index: cdblocks.c 1.134 +--- cblocks.c.orig 1988-11-26 01:39:27.000000000 +0100 1.135 ++++ cblocks.c 2009-01-09 17:58:13.630695396 +0100 1.136 +@@ -10,6 +10,7 @@ 1.137 + 1.138 + 1.139 + #include <stdio.h> 1.140 ++#include <stdlib.h> 1.141 + #include "window.h" 1.142 + #include "layout.h" 1.143 + #include "specs.h" 1.144 +Index: perm.c 1.145 +--- perm.c.orig 1988-11-26 01:39:44.000000000 +0100 1.146 ++++ perm.c 2009-01-09 17:58:19.870669485 +0100 1.147 +@@ -7,6 +7,7 @@ 1.148 + 1.149 + 1.150 + #include <stdio.h> 1.151 ++#include <stdlib.h> 1.152 + #include "window.h" 1.153 + #include "specs.h" 1.154 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/cryptbreaker/cryptbreaker.spec Fri Jan 09 18:39:17 2009 +0100 2.3 @@ -0,0 +1,84 @@ 2.4 +## 2.5 +## cryptbreaker.spec -- OpenPKG RPM Package Specification 2.6 +## Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com> 2.7 +## 2.8 +## Permission to use, copy, modify, and distribute this software for 2.9 +## any purpose with or without fee is hereby granted, provided that 2.10 +## the above copyright notice and this permission notice appear in all 2.11 +## copies. 2.12 +## 2.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 2.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 2.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 2.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 2.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2.24 +## SUCH DAMAGE. 2.25 +## 2.26 + 2.27 +# package information 2.28 +Name: cryptbreaker 2.29 +Summary: Unix Encryption Cracking Tool 2.30 +URL: http://axion.physics.ubc.ca/cbw.html 2.31 +Vendor: Robert W. Baldwin 2.32 +Packager: Michael Schloh von Bennewitz 2.33 +Distribution: MSvB Recherche Production 2.34 +Class: EVAL 2.35 +Group: Cryptography 2.36 +License: Unspecified 2.37 +Version: 20090106 2.38 +Release: 20090106 2.39 + 2.40 +# list of sources 2.41 +Source0: ftp://ftp.ox.ac.uk/pub/crypto/cryptanalysis/cbw.tar.gz 2.42 +Patch0: cryptbreaker.patch 2.43 + 2.44 +# build information 2.45 +Prefix: %{l_prefix} 2.46 +BuildRoot: %{l_buildroot} 2.47 +BuildPreReq: OpenPKG, openpkg >= 20040130 2.48 +PreReq: OpenPKG, openpkg >= 20040130 2.49 +AutoReq: no 2.50 +AutoReqProv: no 2.51 + 2.52 +%description 2.53 + The crypt breaker's workbench is a simple program written long ago 2.54 + to recover the original contents of encrypted files with no knowlege 2.55 + of the encryption key used. It works on most files encrypted with 2.56 + the standard Unix crypt(1) command. 2.57 + 2.58 +%track 2.59 + prog cryptbreaker = { 2.60 + disabled 2.61 + comment = "msvb: tracking is disabled as sources are unversioned" 2.62 + version = %{version} 2.63 + url = ftp://ftp.ox.ac.uk/pub/crypto/cryptanalysis/ 2.64 + regex = cbw.tar.gz 2.65 + } 2.66 + 2.67 +%prep 2.68 + # unpack sources 2.69 + %setup -q -c 2.70 + %patch -p0 2.71 + 2.72 +%build 2.73 + %{l_make} %{l_mflags -O} 2.74 + 2.75 +%install 2.76 + rm -rf $RPM_BUILD_ROOT 2.77 + %{l_shtool} mkdir -f -p -m 755 \ 2.78 + $RPM_BUILD_ROOT%{l_prefix}/bin 2.79 + %{l_shtool} install -c -m 755 \ 2.80 + cbw $RPM_BUILD_ROOT%{l_prefix}/bin/ 2.81 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 2.82 + 2.83 +%files -f files 2.84 + 2.85 +%clean 2.86 + rm -rf $RPM_BUILD_ROOT 2.87 +