%bcond_without sasl # without SMTP AUTH support
%bcond_without ssl # without SSL/TLS support
%bcond_without cdb # without cdb map support
-%bcond_with hir # with Beeth's header_if_reject patch
%bcond_with tcp # with unofficial tcp: lookup table
%bcond_without epoll # disable epoll for 2.4 kernels
%patch1 -p0
%patch2 -p1
%patch3 -p1
-%{?with_hir:%patch4 -p0}
%patch5 -p1
sed -i '/scache_clnt_create/s/server/var_scache_service/' src/global/scache_clnt.c
%if "%{_lib}" == "lib64"