john/john.spec

Mon, 01 Jul 2013 20:54:25 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 01 Jul 2013 20:54:25 +0200
changeset 772
f4bf307969d5
parent 644
f341c75337f6
permissions
-rw-r--r--

Flush to halfway reflect most recent state of stack updates and changes.

     1 ##
     2 ##  john.spec -- OpenPKG RPM Package Specification
     3 ##  Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/>
     4 ##
     5 ##  Permission to use, copy, modify, and distribute this software for
     6 ##  any purpose with or without fee is hereby granted, provided that
     7 ##  the above copyright notice and this permission notice appear in all
     8 ##  copies.
     9 ##
    10 ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    11 ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    12 ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    13 ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    14 ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    15 ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    16 ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    17 ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    18 ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    19 ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    20 ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    21 ##  SUCH DAMAGE.
    22 ##
    24 #   package information
    25 Name:         john
    26 Summary:      Password Cracking Tool
    27 URL:          http://www.openwall.com/john/
    28 Vendor:       Solar Designer
    29 Packager:     OpenPKG Foundation e.V.
    30 Distribution: OpenPKG Community
    31 Class:        PLUS
    32 Group:        System
    33 License:      GPL
    34 Version:      1.7.9
    35 Release:      20120800
    37 #   list of sources
    38 Source0:      http://www.openwall.com/john/g/john-%{version}.tar.gz
    39 Patch0:       john.patch
    41 #   build information
    42 BuildPreReq:  OpenPKG, openpkg >= 20100101, make, gcc
    43 PreReq:       OpenPKG, openpkg >= 20100101
    45 %description
    46     John the Ripper is a fast password cracker. Its primary purpose is
    47     to detect weak Unix passwords. Besides several crypt(3) password
    48     hash types most commonly found on various Unix flavors Kerberos AFS
    49     and Windows NT/2000/XP/2003 LM hashes.
    51 %track
    52     prog john = {
    53         version   = %{version}
    54         url       = http://www.openwall.com/john/
    55         regex     = john-(__VER__)\.tar\.gz
    56     }
    58 %prep
    59     %setup -q
    60     %patch -p0
    62 %build
    63     %{l_shtool} subst %{l_value -s -a} src/params.h
    64     %{l_shtool} subst -e 's;-lcrypto -lssl;-lssl -lcrypto;' src/Makefile
    65     %{l_shtool} subst -e 's;/usr/local;%{l_prefix};g' src/Makefile
    66     ( cd src
    67       platform="generic"
    68       case "%{l_platform -t}" in
    69           i?86-freebsd*  ) platform="freebsd-x86-any"     ;;
    70           amd64-freebsd* ) platform="freebsd-x86-64"      ;;
    71           i?86-linux*    ) platform="linux-x86-any"       ;;
    72           amd64-linux*   ) platform="linux-x86-64"        ;;
    73           sun4u-sunos*   ) platform="solaris-sparc64-gcc" ;;
    74           i?86-sunos*    ) platform="solaris-x86-any-gcc" ;;
    75           amd64-sunos*   ) platform="solaris-x86-any-gcc" ;;
    76       esac
    77       %{l_make} %{l_mflags -O} $platform CC="%{l_cc}"
    78     ) || exit $?
    79     cat doc/README doc/OPTIONS doc/MODES >john.1
    81 %install
    82     %{l_shtool} mkdir -f -p -m 755 \
    83         $RPM_BUILD_ROOT%{l_prefix}/bin \
    84         $RPM_BUILD_ROOT%{l_prefix}/etc/john \
    85         $RPM_BUILD_ROOT%{l_prefix}/man/cat1
    86     %{l_shtool} install -c -s -m 755 \
    87         run/john $RPM_BUILD_ROOT%{l_prefix}/bin/
    88     %{l_shtool} install -c -m 644 \
    89         run/john.conf $RPM_BUILD_ROOT%{l_prefix}/etc/john/
    90     %{l_shtool} install -c -m 644 \
    91         john.1 $RPM_BUILD_ROOT%{l_prefix}/man/cat1/
    92     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
    93         %{l_files_std} \
    94         '%config %{l_prefix}/etc/john/*'
    96 %files -f files
    98 %clean

mercurial