michael@61: ## michael@61: ## cryptbreaker.spec -- OpenPKG RPM Package Specification michael@61: ## Copyright (c) 2009 Michael Schloh von Bennewitz michael@61: ## michael@61: ## Permission to use, copy, modify, and distribute this software for michael@61: ## any purpose with or without fee is hereby granted, provided that michael@61: ## the above copyright notice and this permission notice appear in all michael@61: ## copies. michael@61: ## michael@61: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@61: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@61: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@61: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@61: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@61: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@61: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@61: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@61: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@61: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@61: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@61: ## SUCH DAMAGE. michael@61: ## michael@61: michael@61: # package information michael@61: Name: cryptbreaker michael@61: Summary: Unix Encryption Cracking Tool michael@61: URL: http://axion.physics.ubc.ca/cbw.html michael@61: Vendor: Robert W. Baldwin michael@61: Packager: Michael Schloh von Bennewitz michael@61: Distribution: MSvB Recherche Production michael@61: Class: EVAL michael@61: Group: Cryptography michael@61: License: Unspecified michael@61: Version: 20090106 michael@61: Release: 20090106 michael@61: michael@61: # list of sources michael@61: Source0: ftp://ftp.ox.ac.uk/pub/crypto/cryptanalysis/cbw.tar.gz michael@61: Patch0: cryptbreaker.patch michael@61: michael@61: # build information michael@61: Prefix: %{l_prefix} michael@61: BuildRoot: %{l_buildroot} michael@85: BuildPreReq: OpenPKG, openpkg >= 20040130, make michael@61: PreReq: OpenPKG, openpkg >= 20040130 michael@61: AutoReq: no michael@61: AutoReqProv: no michael@61: michael@61: %description michael@61: The crypt breaker's workbench is a simple program written long ago michael@61: to recover the original contents of encrypted files with no knowlege michael@61: of the encryption key used. It works on most files encrypted with michael@61: the standard Unix crypt(1) command. michael@61: michael@61: %track michael@61: prog cryptbreaker = { michael@61: disabled michael@61: comment = "msvb: tracking is disabled as sources are unversioned" michael@61: version = %{version} michael@61: url = ftp://ftp.ox.ac.uk/pub/crypto/cryptanalysis/ michael@63: regex = cbw\.tar\.gz michael@61: } michael@61: michael@61: %prep michael@61: # unpack sources michael@61: %setup -q -c michael@61: %patch -p0 michael@61: michael@61: %build michael@61: %{l_make} %{l_mflags -O} michael@61: michael@61: %install michael@61: rm -rf $RPM_BUILD_ROOT michael@61: %{l_shtool} mkdir -f -p -m 755 \ michael@61: $RPM_BUILD_ROOT%{l_prefix}/bin michael@61: %{l_shtool} install -c -m 755 \ michael@61: cbw $RPM_BUILD_ROOT%{l_prefix}/bin/ michael@61: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@61: michael@61: %files -f files michael@61: michael@61: %clean michael@61: rm -rf $RPM_BUILD_ROOT michael@61: