[medusa] Bump version to 2.0
Jan F. Chadima
jfch2222 at fedoraproject.org
Fri Feb 25 19:42:15 UTC 2011
commit 837edaa7cbaca97086458ff89265352c55e8f1c7
Author: Jan F <jfch at kerberos.example.com>
Date: Fri Feb 25 20:41:38 2011 +0100
Bump version to 2.0
medusa-2.0-configure.patch | 12 ++++++++++++
medusa.spec | 12 +++++++++---
2 files changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/medusa-2.0-configure.patch b/medusa-2.0-configure.patch
new file mode 100644
index 0000000..f4705ea
--- /dev/null
+++ b/medusa-2.0-configure.patch
@@ -0,0 +1,12 @@
+diff -up medusa-2.0/configure.in.configure medusa-2.0/configure.in
+--- medusa-2.0/configure.in.configure 2010-02-09 23:17:51.000000000 +0100
++++ medusa-2.0/configure.in 2011-02-25 20:16:14.000000000 +0100
+@@ -129,7 +129,7 @@ check_module_afp="false"
+ AC_CHECKING([for AFPFS-NG Library and Header files])
+ AC_CHECK_HEADER([afpfs-ng/afp_protocol.h],
+ [AC_CHECK_LIB(afpclient, main,
+- [AC_DEFINE(HAVE_LIBAFPFS, 1, [Found AFPFS-NG Library]) MODULE_LDFLAGS="$MODULE_LDFLAGS /usr/lib/libafpclient.so.0" check_module_afp="true"],
++ [AC_DEFINE(HAVE_LIBAFPFS, 1, [Found AFPFS-NG Library]) MODULE_LDFLAGS="$MODULE_LDFLAGS -lafpclient" check_module_afp="true"],
+ [AC_MSG_WARN([ *** AFPFS-NG library required for AFP module. ***
+
+ The AFPFS-NG package must be installed for the AFP module to function. This includes
diff --git a/medusa.spec b/medusa.spec
index 0b9d7e5..a5e6e32 100644
--- a/medusa.spec
+++ b/medusa.spec
@@ -1,4 +1,3 @@
-###%define _default_patch_fuzz 2 \n\n
%define _with_afpfs 1
Summary: Parallel brute forcing password cracker
@@ -9,8 +8,9 @@ License: GPLv2
Group: Applications/System
URL: http://www.foofus.net/jmk/medusa/medusa.html
Source0: http://www.foofus.net/jmk/tools/%{name}-%{version}.tar.gz
+Patch1: medusa-2.0-configure.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: autoconf, automake, libtool, openssl-devel, apr-devel, ncpfs-devel, libssh2-devel, subversion-devel, postgresql-devel
+BuildRequires: autoconf, automake, libtool, openssl-devel, apr-devel, ncpfs-devel, libssh2-devel, subversion-devel, postgresql-devel pcre-devel
%if %{_with_afpfs}
BuildRequires: afpfs-ng-devel, libgcrypt-devel
%define _afp_module yes
@@ -40,6 +40,7 @@ Some of the key features of Medusa are:
%prep
%setup -q
+%patch1 -p1 -b .configure
%build
aclocal
@@ -49,7 +50,12 @@ automake --add-missing
autoconf
# required type off64_t is not available under all environments, ugly hack for ugly system heasders
export CPPFLAGS="-Doff64_t=__off64_t %{optflags}" ; export CFLAGS="-Doff64_t=__off64_t %{optflags}"
-%{configure} --enable-module-afp=%{_afp_module}
+%{configure} \
+%ifarch x86_64
+ --with-default-mod-path=/usr/lib64/medusa/modules \
+%endif
+ --enable-module-afp=%{_afp_module}
+
make %{?_smp_mflags}
%install
More information about the scm-commits
mailing list