This commit is contained in:
parent
13cdd0b2a6
commit
8dab2ea84b
@ -28,6 +28,7 @@ Summary: Detects Weak Passwords
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Source2: %{name}.8.gz
|
||||
Source3: %{name}-rpmlintrc
|
||||
Source4: %{name}-%{version}-jumbo-7.diff.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%define johndir /var/lib/john
|
||||
%define cflags CFLAGS="-c $RPM_OPT_FLAGS -DJOHN_SYSTEMWIDE=1 -finline-limit=2000 --param inline-unit-growth=2000" LDFLAGS=""
|
||||
@ -48,6 +49,10 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
# apply the jumbo patch
|
||||
pushd %{name}-%{version}
|
||||
gzip -dc %{SOURCE4} | patch -p1
|
||||
popd
|
||||
# adapt the configs
|
||||
perl -pi -e "s#Wordlist = (.*)#Wordlist = %{johndir}/password.lst#g" $RPM_BUILD_DIR/%{name}-%{version}/run/john.conf
|
||||
perl -pi -e 's#^(\#define JOHN_SYSTEMWIDE_EXEC)\s.+$#$1\t\"%{johndir}\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user