]>
Commit | Line | Data |
---|---|---|
a7d99c8b ER |
1 | # TODO |
2 | # - dkfilter user, initscript | |
3 | %include /usr/lib/rpm/macros.perl | |
4 | Summary: dkimproxy - an SMTP-proxy designed for Postfix | |
5 | Name: dkimproxy | |
6 | Version: 0.15 | |
7 | Release: 0.1 | |
8 | License: GPL v2 | |
9 | Group: Daemons | |
10 | Source0: http://jason.long.name/dkimproxy/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: 41fa377a910f863d26681724f737fbaa | |
12 | Patch0: %{name}-perllib.patch | |
13 | Patch1: %{name}-am.patch | |
14 | URL: http://jason.long.name/dkimproxy/ | |
15 | BuildRequires: autoconf | |
16 | BuildRequires: automake | |
17 | BuildRequires: perl-Error | |
18 | BuildRequires: perl-Mail-DKIM >= 0.20 | |
19 | BuildRequires: perl-Net-Server >= 0.89 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %define _sysconfdir /etc/%{name} | |
24 | ||
25 | %description | |
26 | DKIM Proxy is an SMTP-proxy that signs and/or verifies emails, using | |
27 | the Mail::DKIM module. It is designed for Postfix. It comprises two | |
28 | separate proxies, an "outbound" proxy for signing outgoing email, and | |
29 | an "inbound" proxy for verifying signatures of incoming email. With | |
30 | Postfix, the proxies can operate as either Before-Queue or After-Queue | |
31 | content filters. | |
32 | ||
33 | %prep | |
34 | %setup -q | |
35 | %patch0 -p1 | |
36 | %patch1 -p1 | |
37 | ||
38 | %build | |
39 | %{__aclocal} | |
40 | %{__autoconf} | |
41 | %{__automake} | |
42 | %configure \ | |
43 | --libdir=%{perl_vendorlib} | |
44 | ||
45 | %{__make} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ssl,/etc/rc.d/init.d,/etc/sysconfig} | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc AUTHORS ChangeLog NEWS smtpprox.* TODO | |
60 | %attr(755,root,root) %{_bindir}/dkim_responder.pl | |
61 | %attr(755,root,root) %{_bindir}/dkimproxy.in | |
62 | %attr(755,root,root) %{_bindir}/dkimproxy.out | |
63 | %attr(755,root,root) %{_bindir}/dkimsign.pl | |
64 | %attr(755,root,root) %{_bindir}/dkimverify.pl | |
65 | %dir %{perl_vendorlib}/MSDW | |
66 | %dir %{perl_vendorlib}/MSDW/SMTP | |
67 | %{perl_vendorlib}/MSDW/SMTP/Client.pm | |
68 | %{perl_vendorlib}/MSDW/SMTP/Server.pm | |
69 | %{perl_vendorlib}/MySmtpProxyServer.pm | |
70 | %{perl_vendorlib}/MySmtpServer.pm |