From 77364fb6856ff2eb60efb1bf1a9243ed7f40a447 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 1 Sep 2005 17:29:37 +0000 Subject: [PATCH] - dspal local_scan plugin for exim Changed files: dspam-exim.spec -> 1.1 --- dspam-exim.spec | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 dspam-exim.spec diff --git a/dspam-exim.spec b/dspam-exim.spec new file mode 100644 index 0000000..236ee03 --- /dev/null +++ b/dspam-exim.spec @@ -0,0 +1,40 @@ +Summary: Exim DSPAM at SMTP time +Name: dspam-exim +Version: 0.8 +Release: 1 +License: GPL +Group: Networking/Daemons +# http://dspamwiki.woozle.org/DspamWithEximLocalScanSourceCodeNew +Source0: dspam_exim.c +URL: http://dspamwiki.woozle.org/DspamWithEximLocalScan +BuildRequires: exim-devel +BuildRequires: dspam-devel +BuildRequires: clamav-devel +BuildRequires: mysql-devel +Requires: exim >= 2:4.52-4 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Exim DSPAM at SMTP time. + +%prep +%setup -q -T -c + +%build +%{__cc} -Wall -DDLOPEN_LOCAL_SCAN=1 %{rpmcflags} %{rpmldflags} -fPIC \ + -I%{_includedir}/exim -I%{_includedir}/mysql -I%{_includedir}/clamav -I%{_includedir}/dspam \ + -lmysqlclient -lclamav -ldspam \ + -shared %{SOURCE0} -o dspam.so + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_sysconfdir}/mail,%{_libdir}/exim} + +install dspam.so $RPM_BUILD_ROOT%{_libdir}/exim/dspam.so + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/exim/dspam.so -- 2.44.0