From: Davide Franco Date: Sat, 5 Jun 2021 07:43:51 +0000 (+0200) Subject: rpms: Disable tcp_wrapper for rhel8 in bacula.spec.in X-Git-Tag: Release-11.3.2~280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2b68f49f58d9736c71f6442a82f8f8dbad01b47;p=thirdparty%2Fbacula.git rpms: Disable tcp_wrapper for rhel8 in bacula.spec.in --- diff --git a/bacula/platforms/rpms/redhat/bacula.spec.in b/bacula/platforms/rpms/redhat/bacula.spec.in index 62dacfe0c..2c266ff6c 100644 --- a/bacula/platforms/rpms/redhat/bacula.spec.in +++ b/bacula/platforms/rpms/redhat/bacula.spec.in @@ -320,9 +320,16 @@ Distribution: %_dist BuildRequires: openldap-devel # should we enable tcp wrappers support -%define tcpwrappers 1 %{?build_tcpwrappers:%define tcpwrappers 1} +# should we enable tcp wrappers support +%if %{rhel8} +%define tcpwrappers 0 +%else +%define tcpwrappers 1 +%endif + + # do we need to patch for old postgresql version? %define old_pgsql 0 %{?build_old_pgsql:%define old_pgsql 1} @@ -361,8 +368,10 @@ BuildRequires: libstdc++-static-devel BuildRequires: glibc-static-devel %endif -%if %{mysql} && ! %{suse} +%if %{mysql} && ! %{suse} && ! %{rhel7} BuildRequires: mysql-devel +%else +BuildRequires: mariadb-devel %endif %if %{postgresql} @@ -643,7 +652,9 @@ export BACULA="Bacula" %if %{usesystemd} --with-systemd=%{systemd_dir} \ %endif +%if %{tcpwrappers} --with-tcp-wrappers \ +%endif --with-dir-user=%{director_daemon_user} \ --with-dir-group=%{daemon_group} \ --with-sd-user=%{storage_daemon_user} \