honor cli definition of libwrap and systemd

This commit is contained in:
Bill Melvin 2024-07-18 12:44:53 -04:00
parent 69fd5b3aa2
commit bfaf3371a2
1 changed files with 21 additions and 13 deletions

View File

@ -2,23 +2,31 @@
%global debug_package %{nil}
# tcp_wrappers do not exist on stock EL8/EL9
%define libwrap 0
%define systemd 0
%if 0%{?el6}
%define libwrap 1
%endif
%if 0%{?el7}
%define libwrap 1
%endif
%if 0%{?el8}
%define systemd 1
%endif
%if 0%{?el9}
%define systemd 1
# allow commandline overrides
%if 0%{?libwrap:1}
%else
%define libwrap 0
%if 0%{?el6}
%define libwrap 1
%endif
%if 0%{?el7}
%define libwrap 1
%endif
%endif
%if 0%{?systemd:1}
%else
%define systemd 0
%if 0%{?el8}
%define systemd 1
%endif
%if 0%{?el9}
%define systemd 1
%endif
%endif
Summary: TACACS+ Daemon
Name: tacacs
Group: Networking/Servers