public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: rpmbuild <rpmbuild>
To: git-commits@fedoraproject.org
Subject: [rpms/hydra] epel10: - add buildrequires for memcached, mongodb, freerdp, afpfs, gcrypt
Date: Fri, 06 Nov 2026 15:25:42 GMT	[thread overview]
Message-ID: <179397874244.1.17711307431985455337.rpms-hydra-7f6a8175dc04@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/hydra
            Branch : epel10
            Commit : 7f6a8175dc042b21cd3a3f31a6a2fa9bb2f59968
            Author : rpmbuild <rpmbuild>
            Date   : 2020-03-03T17:30:42+00:00
            Stats  : +145/-33 in 7 file(s)
            URL    : https://src.fedoraproject.org/rpms/hydra/c/7f6a8175dc042b21cd3a3f31a6a2fa9bb2f59968?branch=epel10

            Log:
            - add buildrequires for memcached, mongodb, freerdp, afpfs, gcrypt
- fix firebird includes
- honor the %%license tag

---
diff --git a/hydra-7.3-s390x.patch b/hydra-7.3-s390x.patch
index 8390e57..8a74687 100644
--- a/hydra-7.3-s390x.patch
+++ b/hydra-7.3-s390x.patch
@@ -1,6 +1,6 @@
 diff -up hydra-7.3/configure.s390x hydra-7.3/configure
---- hydra-7.3/configure.s390x	2012-12-22 10:22:12.000000000 +0100
-+++ hydra-7.3/configure	2012-12-22 10:23:54.000000000 +0100
+--- orig/hydra-7.3/configure	2012-12-22 10:22:12.000000000 +0100
++++ s390x/hydra-7.3/configure	2012-12-22 10:23:54.000000000 +0100
 @@ -39,6 +39,10 @@ if [ "$SYSS" = "Linux" -o "$SYSS" = "Ope
      SIXFOUR=64
      echo Detected 64 Bit $SYSS OS

diff --git a/hydra-fix-apr-svn.patch b/hydra-fix-apr-svn.patch
new file mode 100644
index 0000000..3f67e45
--- /dev/null
+++ b/hydra-fix-apr-svn.patch
@@ -0,0 +1,76 @@
+From db9025bf86e79f1af1e1d70bdc6ea133e486c781 Mon Sep 17 00:00:00 2001
+From: Hank Leininger <hlein@korelogic.com>
+Date: Sat, 18 May 2019 15:56:08 -0600
+Subject: [PATCH] Worked around APR_PATH_MAX errors on some Linuxes when SVN is
+ enabled.
+
+On Gentoo Linux (and possibly others?) with Subversion 1.12.0,
+compilation of hydra-svn.c fails with:
+
+In file included from /usr/include/subversion-1/svn_client.h:34,
+                 from hydra-svn.c:9:
+/usr/include/apr-1/apr.h:632:2: error: #error no decision has been made on APR_PATH_MAX for your platform
+ #error no decision has been made on APR_PATH_MAX for your platform
+  ^~~~~
+
+This happens when PATH_MAX is not defined.
+
+PATH_MAX is defined by /usr/include/linux/limits.h, but rather than
+include'ing that directly and possibly breaking other platforms,
+include sys/param.h (which will include linux/limits.h indirectly)
+iff PATH_MAX is not defined and sys/param.h exists.
+
+I based the approach on how math.h is handled.
+---
+ configure   | 8 ++++++--
+ hydra-svn.c | 4 ++++
+ 2 files changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/configure b/configure
+index d09ac9d..0309e53 100755
+--- a/configure
++++ b/configure
+@@ -557,6 +557,10 @@ for i in $INCDIRS ; do
+         fi
+     fi  
+ done
++SYS_PARAM=""
++if [ -f "$SDK_PATH/usr/include/sys/param.h" ]; then
++  SYS_PARAM=-DHAVE_SYS_PARAM_H
++fi
+ if [ "X" != "X$DEBUG" ]; then
+    echo DEBUG: SVN_PATH=$SVN_PATH/libsvn_client-1
+    echo DEBUG: APR_PATH=$APR_PATH/libapr
+@@ -1501,7 +1505,7 @@ else
+ fi
+ 
+ if [ "X" != "X$DEBUG" ]; then
+-   echo DEBUG: XDEFINES=$XDEFINES $MATH
++   echo DEBUG: XDEFINES=$XDEFINES $MATH $SYS_PARAM
+    echo DEBUG: XLIBS=$XLIBS
+    echo DEBUG: XLIBPATHS=$XLIBPATHS
+    echo DEBUG: XIPATHS=$XIPATHS
+@@ -1519,7 +1523,7 @@ if [ "X" != "X$FHS" ]; then
+   echo "MANDIR = /share/man/man1" >> Makefile.in
+   echo "DATADIR = /share/hydra" >> Makefile.in
+ fi
+-echo "XDEFINES=$XDEFINES $MATH" >> Makefile.in
++echo "XDEFINES=$XDEFINES $MATH $SYS_PARAM" >> Makefile.in
+ echo "XLIBS=$XLIBS" >> Makefile.in
+ echo "XLIBPATHS=$XLIBPATHS" >> Makefile.in
+ echo "XIPATHS=$XIPATHS" >> Makefile.in
+diff --git a/hydra-svn.c b/hydra-svn.c
+index eaf51f2..f180fbd 100644
+--- a/hydra-svn.c
++++ b/hydra-svn.c
+@@ -6,6 +6,10 @@
+ /* needed on openSUSE */
+ #define _GNU_SOURCE
+ 
++#if !defined PATH_MAX && defined HAVE_SYS_PARAM_H
++#include <sys/param.h>
++#endif
++
+ #include <svn_client.h>
+ #include <svn_cmdline.h>
+ #include <svn_pools.h>

diff --git a/hydra-fix-dpl4hydra-dir.patch b/hydra-fix-dpl4hydra-dir.patch
index d06c801..2ae268d 100644
--- a/hydra-fix-dpl4hydra-dir.patch
+++ b/hydra-fix-dpl4hydra-dir.patch
@@ -1,5 +1,5 @@
---- dpl4hydra.sh.orig	2012-05-23 00:52:11.312000504 +0100
-+++ dpl4hydra.sh	2012-05-23 00:53:05.605999925 +0100
+--- orig/dpl4hydra.sh	2012-05-23 00:52:11.312000504 +0100
++++ new/dpl4hydra.sh	2012-05-23 00:53:05.605999925 +0100
 @@ -8,8 +8,8 @@
  # Credits:  Thanks to van Hauser for support and fixing portability issues.
  #           "The universe is an intelligence test." -Timothy Leary (R.I.P.)

diff --git a/hydra-fix-firebird-includes.patch b/hydra-fix-firebird-includes.patch
new file mode 100644
index 0000000..83f3770
--- /dev/null
+++ b/hydra-fix-firebird-includes.patch
@@ -0,0 +1,17 @@
+In Fedora the ibase.h is in the /usr/include/firebird/ folder and not directly in 
+/usr/include/ as expected by the configure script.
+
+Reported upstream: https://github.com/vanhauser-thc/thc-hydra/pull/500
+diff -ru thc-hydra-9.0/configure thc-hydra-9.0.new/configure
+--- thc-hydra-9.0/configure	2019-05-17 06:50:01.000000000 +0000
++++ thc-hydra-9.0.new/configure	2020-03-03 15:51:00.780609553 +0000
+@@ -608,6 +608,9 @@
+         if [ -f "$i/ibase.h" ]; then
+             FIREBIRD_IPATH="$i"
+         fi
++        if [ -f "$i/firebird/ibase.h" ]; then
++            FIREBIRD_IPATH="$i/firebird/"
++        fi
+     fi
+ done
+ if [ "X" != "X$DEBUG" ]; then

diff --git a/hydra-fix-makefile.patch b/hydra-fix-makefile.patch
index 5d3944e..bc723a8 100644
--- a/hydra-fix-makefile.patch
+++ b/hydra-fix-makefile.patch
@@ -1,5 +1,5 @@
---- Makefile.am.orig	2014-05-25 22:02:41.116000000 +0100
-+++ Makefile.am	2014-05-25 22:05:55.592000000 +0100
+--- orig/Makefile.am	2014-05-25 22:02:41.116000000 +0100
++++ new/Makefile.am	2014-05-25 22:05:55.592000000 +0100
 @@ -52,20 +52,21 @@
  .c.o:	
  	$(CC) $(OPTS) $(SEC) $(CFLAGS) $(CPPFLAGS) -c $< $(XDEFINES) $(XIPATHS)

diff --git a/hydra-use-system-libpq-fe.patch b/hydra-use-system-libpq-fe.patch
index 8c46ed5..143eeff 100644
--- a/hydra-use-system-libpq-fe.patch
+++ b/hydra-use-system-libpq-fe.patch
@@ -1,5 +1,5 @@
---- hydra-postgres.c.orig	2012-05-18 22:17:20.839998208 +0100
-+++ hydra-postgres.c	2012-05-18 22:19:36.546989957 +0100
+--- orig/hydra-postgres.c	2012-05-18 22:17:20.839998208 +0100
++++ new/hydra-postgres.c	2012-05-18 22:19:36.546989957 +0100
 @@ -14,7 +14,8 @@
  }
  #else

diff --git a/hydra.spec b/hydra.spec
index 3f76a35..115bbd4 100644
--- a/hydra.spec
+++ b/hydra.spec
@@ -1,9 +1,9 @@
 Summary:        Very fast network log-on cracker
 Name:           hydra
 Version:        9.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 License:        AGPLv3 with exceptions
-#               https://www.thc.org/thc-hydra/
+# Old URL       https://www.thc.org/thc-hydra/
 URL:            https://github.com/vanhauser-thc/thc-hydra
 Source0:        https://github.com/vanhauser-thc/thc-hydra/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Source1:        xhydra.desktop
@@ -12,22 +12,41 @@ Source2:        xhydra.png
 # Sent upstream via email 20120518
 Patch0:         hydra-use-system-libpq-fe.patch
 Patch1:         hydra-fix-dpl4hydra-dir.patch
+# APR used in libsvn needs inclusion of the linux limits.h first
+# already implemented upstream
+# https://github.com/vanhauser-thc/thc-hydra/commit/db9025bf86e79f1af1e1d70bdc6ea133e486c781.patch
+Patch2:         hydra-fix-apr-svn.patch
+# In Fedora the firebird includes are not in /include but /include/firebird
+# Reported upstream: https://github.com/vanhauser-thc/thc-hydra/pull/500
+Patch3:         hydra-fix-firebird-includes.patch
+
+BuildRequires:  apr-devel
+BuildRequires:  desktop-file-utils
+BuildRequires:  firebird-devel
+BuildRequires:  libfbclient2-devel
+BuildRequires:  gcc
+BuildRequires:  gtk2-devel
+BuildRequires:  gtk2-devel
+BuildRequires:  libidn-devel
+BuildRequires:  libssh-devel
+BuildRequires:  make
+BuildRequires:  mariadb-connector-c-devel
+BuildRequires:  openssl-devel
+BuildRequires:  pcre-devel
+BuildRequires:  pkgconfig
+BuildRequires:  libpq-devel
+BuildRequires:  subversion-devel
+BuildRequires:  memcached-devel
+BuildRequires:  libmemcached-devel
+BuildRequires:  mongodb-devel
+BuildRequires:  mongo-c-driver-devel
+BuildRequires:  libbson-devel
+BuildRequires:  freerdp-devel
+BuildRequires:  libwinpr-devel
+BuildRequires:  afpfs-ng-devel
+BuildRequires:  libgcrypt-devel
+
 
-BuildRequires: apr-devel
-BuildRequires: desktop-file-utils
-BuildRequires: firebird-devel
-BuildRequires: gcc
-BuildRequires: gtk2-devel
-BuildRequires: gtk2-devel
-BuildRequires: libidn-devel
-BuildRequires: libssh-devel
-BuildRequires: make
-BuildRequires: mariadb-connector-c-devel
-BuildRequires: openssl-devel
-BuildRequires: pcre-devel
-BuildRequires: pkgconfig
-BuildRequires: libpq-devel
-BuildRequires: subversion-devel
 
 %description
 Hydra is a parallelized log-in cracker which supports numerous protocols to 
@@ -43,13 +62,7 @@ Requires: hydra = %{version}-%{release}
 This package includes xhydra, a GTK+ front end for hydra. 
 
 %prep
-%setup -qn thc-hydra-%{version}
-
-%patch0 -p0
-%patch1 -p0
-
-#fix permissions - already fixed upstream in 8.3-dev
-chmod -x *.csv hydra-gtk/src/*.c hydra-gtk/src/*.h
+%autosetup -p 1 -n thc-hydra-%{version}
 
 
 %build
@@ -69,7 +82,8 @@ sed -i 's|^INSTALLDIR=.*|INSTALLDIR=/usr|' %{buildroot}/%{_bindir}/dpl4hydra.sh
 
 
 %files
-%doc CHANGES LICENSE LICENSE.OPENSSL README
+%doc CHANGES README
+%license LICENSE LICENSE.OPENSSL 
 %{_bindir}/hydra
 %{_bindir}/pw-inspector
 %{_bindir}/hydra-wizard.sh
@@ -86,6 +100,11 @@ sed -i 's|^INSTALLDIR=.*|INSTALLDIR=/usr|' %{buildroot}/%{_bindir}/dpl4hydra.sh
 %{_datadir}/applications/*
 
 %changelog
+* Tue Mar 03 2020 Michal Ambroz <rebus _at seznam.cz>  9.0-3
+- add buildrequires for memcached, mongodb, freerdp, afpfs, gcrypt
+- fix firebird includes
+- honor the %%license tag
+
 * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
 

                 reply	other threads:[~2026-11-06 15:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179397874244.1.17711307431985455337.rpms-hydra-7f6a8175dc04@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox