]>
Commit | Line | Data |
---|---|---|
99e4f100 | 1 | Summary: clamav-based antivirus SMTP-level gateway |
40ff7458 | 2 | Summary(pl.UTF-8): Oparta na clamavie bramka antywirusowa SMTP |
560b4f4c | 3 | Name: clamsmtp |
92ff159c | 4 | Version: 1.9 |
12babb7b | 5 | Release: 1 |
560b4f4c | 6 | License: BSD |
7 | Group: Applications/Networking | |
8 | Source0: http://memberwebs.com/nielsen/software/clamsmtp/%{name}-%{version}.tar.gz | |
92ff159c | 9 | # Source0-md5: cdc7a318e9583f7c3ff925f6ef5f6ae7 |
560b4f4c | 10 | Source1: %{name}.init |
12babb7b | 11 | Patch0: %{name}-config.patch |
560b4f4c | 12 | URL: http://memberwebs.com/nielsen/software/clamsmtp/ |
6d833b2a AA |
13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
15 | BuildRequires: libtool | |
4cce9bbb | 16 | BuildRequires: rpmbuild(macros) >= 1.268 |
ee389f11 | 17 | Requires(post,preun): /sbin/chkconfig |
aa6c9919 ER |
18 | Requires: clamav |
19 | Requires: rc-scripts | |
560b4f4c | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | clamsmtp provides transparent antivirus scanner gateway for the SMTP | |
24 | protocol. | |
25 | ||
d0f95b20 JR |
26 | %description -l pl.UTF-8 |
27 | clamsmtp dostarcza przezroczystą bramkę antywirusową dla protokołu | |
560b4f4c | 28 | SMTP. |
29 | ||
30 | %prep | |
31 | %setup -q | |
12babb7b | 32 | %patch0 -p1 |
560b4f4c | 33 | |
34 | %build | |
6d833b2a AA |
35 | %{__libtoolize} |
36 | %{__aclocal} | |
37 | %{__autoconf} | |
38 | %{__automake} | |
39 | ||
560b4f4c | 40 | %configure |
6d833b2a | 41 | |
560b4f4c | 42 | %{__make} |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
6d833b2a AA |
46 | |
47 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},/etc/rc.d/init.d} | |
12babb7b | 48 | install -d $RPM_BUILD_ROOT{%{_mandir}/{man8,man5},/var/spool/clamsmtpd/tmp} |
560b4f4c | 49 | |
d82355c9 | 50 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/clamsmtpd |
560b4f4c | 51 | install doc/clamsmtpd.conf $RPM_BUILD_ROOT%{_sysconfdir} |
52 | install src/clamsmtpd $RPM_BUILD_ROOT%{_sbindir} | |
6d833b2a AA |
53 | install doc/clamsmtpd.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5/ |
54 | install doc/clamsmtpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/ | |
560b4f4c | 55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %post | |
d82355c9 | 60 | /sbin/chkconfig --add clamsmtpd |
4cce9bbb | 61 | %service clamsmtpd restart |
560b4f4c | 62 | |
63 | %preun | |
64 | if [ "$1" = "0" ]; then | |
4cce9bbb | 65 | %service clamsmtpd stop |
d82355c9 | 66 | /sbin/chkconfig --del clamsmtpd |
560b4f4c | 67 | fi |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
6d833b2a | 71 | %doc AUTHORS ChangeLog NEWS README |
d82355c9 | 72 | %attr(754,root,root) /etc/rc.d/init.d/clamsmtpd |
560b4f4c | 73 | %attr(755,root,root) %{_sbindir}/* |
aa6c9919 | 74 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/clamsmtpd.conf |
826b4053 AA |
75 | %dir %attr(770,root,clamav) /var/spool/clamsmtpd |
76 | %dir %attr(770,root,clamav) /var/spool/clamsmtpd/tmp | |
6d833b2a AA |
77 | %{_mandir}/man5/clamsmtpd.conf.5* |
78 | %{_mandir}/man8/clamsmtpd.8* |