Wed, 29 Aug 2012 19:12:02 +0200
Import package vendor original spec for necessary manipulations.
john/john.patch | file | annotate | diff | comparison | revisions | |
john/john.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/john/john.patch Wed Aug 29 19:12:02 2012 +0200 1.3 @@ -0,0 +1,35 @@ 1.4 +Index: src/params.h 1.5 +--- src/params.h.orig 2011-11-23 12:08:11.000000000 +0100 1.6 ++++ src/params.h 2011-11-24 09:04:33.000000000 +0100 1.7 +@@ -70,15 +70,15 @@ 1.8 + * notes above. 1.9 + */ 1.10 + #ifndef JOHN_SYSTEMWIDE 1.11 +-#define JOHN_SYSTEMWIDE 0 1.12 ++#define JOHN_SYSTEMWIDE 1 1.13 + #endif 1.14 + 1.15 + #if JOHN_SYSTEMWIDE 1.16 + #ifndef JOHN_SYSTEMWIDE_EXEC /* please refer to the notes above */ 1.17 +-#define JOHN_SYSTEMWIDE_EXEC "/usr/libexec/john" 1.18 ++#define JOHN_SYSTEMWIDE_EXEC "@l_prefix@/libexec/john" 1.19 + #endif 1.20 + #ifndef JOHN_SYSTEMWIDE_HOME 1.21 +-#define JOHN_SYSTEMWIDE_HOME "/usr/share/john" 1.22 ++#define JOHN_SYSTEMWIDE_HOME "@l_prefix@/etc/john" 1.23 + #endif 1.24 + #define JOHN_PRIVATE_HOME "~/.john" 1.25 + #endif 1.26 +Index: src/recovery.c 1.27 +--- src/recovery.c.orig 2011-03-20 16:02:41.000000000 +0100 1.28 ++++ src/recovery.c 2011-11-24 09:04:49.000000000 +0100 1.29 +@@ -3,7 +3,9 @@ 1.30 + * Copyright (c) 1996-2003,2005,2006,2009,2010 by Solar Designer 1.31 + */ 1.32 + 1.33 ++#ifndef __FreeBSD__ 1.34 + #define _XOPEN_SOURCE 500 /* for fdopen(3), fileno(3), fsync(2), ftruncate(2) */ 1.35 ++#endif 1.36 + #include <stdio.h> 1.37 + #include <unistd.h> 1.38 + #include <sys/types.h>
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/john/john.spec Wed Aug 29 19:12:02 2012 +0200 2.3 @@ -0,0 +1,99 @@ 2.4 +## 2.5 +## john.spec -- OpenPKG RPM Package Specification 2.6 +## Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/> 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: john 2.29 +Summary: Password Cracking Tool 2.30 +URL: http://www.openwall.com/john/ 2.31 +Vendor: Solar Designer 2.32 +Packager: OpenPKG Foundation e.V. 2.33 +Distribution: OpenPKG Community 2.34 +Class: PLUS 2.35 +Group: System 2.36 +License: GPL 2.37 +Version: 1.7.9 2.38 +Release: 20111124 2.39 + 2.40 +# list of sources 2.41 +Source0: http://www.openwall.com/john/g/john-%{version}.tar.gz 2.42 +Patch0: john.patch 2.43 + 2.44 +# build information 2.45 +BuildPreReq: OpenPKG, openpkg >= 20100101, gcc 2.46 +PreReq: OpenPKG, openpkg >= 20100101 2.47 + 2.48 +%description 2.49 + John the Ripper is a fast password cracker. Its primary purpose is 2.50 + to detect weak Unix passwords. Besides several crypt(3) password 2.51 + hash types most commonly found on various Unix flavors Kerberos AFS 2.52 + and Windows NT/2000/XP/2003 LM hashes. 2.53 + 2.54 +%track 2.55 + prog john = { 2.56 + version = %{version} 2.57 + url = http://www.openwall.com/john/ 2.58 + regex = john-(__VER__)\.tar\.gz 2.59 + } 2.60 + 2.61 +%prep 2.62 + %setup -q 2.63 + %patch -p0 2.64 + 2.65 +%build 2.66 + %{l_shtool} subst %{l_value -s -a} src/params.h 2.67 + %{l_shtool} subst -e 's;-lcrypto -lssl;-lssl -lcrypto;' src/Makefile 2.68 + %{l_shtool} subst -e 's;/usr/local;%{l_prefix};g' src/Makefile 2.69 + ( cd src 2.70 + platform="generic" 2.71 + case "%{l_platform -t}" in 2.72 + i?86-freebsd* ) platform="freebsd-x86-any" ;; 2.73 + amd64-freebsd* ) platform="freebsd-x86-64" ;; 2.74 + i?86-linux* ) platform="linux-x86-any" ;; 2.75 + amd64-linux* ) platform="linux-x86-64" ;; 2.76 + sun4u-sunos* ) platform="solaris-sparc64-gcc" ;; 2.77 + i?86-sunos* ) platform="solaris-x86-any" ;; 2.78 + amd64-sunos* ) platform="solaris-x86-any" ;; 2.79 + esac 2.80 + %{l_make} %{l_mflags} $platform CC="%{l_cc}" 2.81 + ) || exit $? 2.82 + cat doc/README doc/OPTIONS doc/MODES >john.1 2.83 + 2.84 +%install 2.85 + %{l_shtool} mkdir -f -p -m 755 \ 2.86 + $RPM_BUILD_ROOT%{l_prefix}/bin \ 2.87 + $RPM_BUILD_ROOT%{l_prefix}/etc/john \ 2.88 + $RPM_BUILD_ROOT%{l_prefix}/man/cat1 2.89 + %{l_shtool} install -c -s -m 755 \ 2.90 + run/john $RPM_BUILD_ROOT%{l_prefix}/bin/ 2.91 + %{l_shtool} install -c -m 644 \ 2.92 + run/john.conf $RPM_BUILD_ROOT%{l_prefix}/etc/john/ 2.93 + %{l_shtool} install -c -m 644 \ 2.94 + john.1 $RPM_BUILD_ROOT%{l_prefix}/man/cat1/ 2.95 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 2.96 + %{l_files_std} \ 2.97 + '%config %{l_prefix}/etc/john/*' 2.98 + 2.99 +%files -f files 2.100 + 2.101 +%clean 2.102 +