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