-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdcc.spec
125 lines (100 loc) · 3.54 KB
/
dcc.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
%define homedir %{_sysconfdir}/%{name}
%define cgibindir %{_datadir}/%{name}/cgi-bin
Summary: Distributed Checksum Clearinghouse
Name: dcc
Version: 1.3.127
Release: 1%{?dist}
License: GPL
Group: Applications/System
Source0: http://rhyolite.com/src/dcc/old/dcc-%{version}.tar.Z
#Patch0: dcc.patch
#Patch1: dcc2.patch
URL: http://rhyolite.com/anti-spam/dcc/
BuildRoot: %{_tmppath}/%{name}-root
#BuildRequires: sendmail-devel
BuildRequires: amavisd-new
Requires: amavisd-new
%description
The idea of the DCC is that if mail recipients could compare the mail they
receive, they could recognize unsolicited bulk mail. A DCC server totals
reports of checksums of messages from clients and answers queries about the
total counts for checksums of mail messages. A DCC client reports the
checksums for a mail message to a server and is told the total number of
recipients of mail with each checksum. If one of the totals is higher than a
threshold set by the client and according to local whitelists the message is
unsolicited, the DCC client can log, discard, or reject the message.
%prep
%setup -q -n %{name}-%{version}
#%patch -p0
#%patch1 -p0
%build
./configure \
--with-uid=amavis \
--homedir=%{homedir} \
--bindir=%{_bindir} \
--libexecdir=%{_libexecdir}/%{name} \
--mandir=%{_mandir} \
--with-cgibin=%{cgibindir} \
--with-installroot=%{buildroot} \
--disable-sys-inst \
--disable-chown
# --disable-chown
make
%install
rm -rf %{buildroot}
make install \
SET_BINOWN= SET_MANOWN= SET_DCCOWN=
perl -pi -e's,%{buildroot},,g' %{buildroot}%{homedir}/map.txt
mkdir -p %{buildroot}%{_mandir}/man8/
install *.8 %{buildroot}%{_mandir}/man8/
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, amavis)
%doc CHANGES LICENSE *.html
%dir %{homedir}
%config(noreplace) %{homedir}/*
%{_bindir}/*
%attr(4555, root, amavis) %{_bindir}/cdcc
%attr(4555, root, amavis) %{_bindir}/dccproc
%{_libexecdir}/*
%attr(4555, root, amavis) %{_libexecdir}/%{name}/dccsight
%{cgibindir}/*
%{_mandir}/man8/*
%changelog
* Wed Jun 16 2010 David Hrbáč <[email protected]> - 1.3.127-1
- new upstream version
* Wed Mar 31 2010 David Hrbáč <[email protected]> - 1.3.120-2
- added amavisd-new requirement
* Sun Feb 28 2010 David Hrbáč <[email protected]> - 1.3.120-1
- new upstream version
* Tue Jan 05 2010 David Hrbáč <[email protected]> - 1.3.119-1
- new upstream version
* Tue Sep 15 2009 David Hrbáč <[email protected]> - 1.3.115-1
- new upstream version
* Mon Jun 29 2009 David Hrbáč <[email protected]> - 1.3.111-2
- correct permissions
* Fri Jun 26 2009 David Hrbáč <[email protected]> - 1.3.111-1
- new upstream version
* Sat May 30 2009 David Hrbáč <[email protected]> - 1.3.105-1
- new upstream version
* Thu Apr 28 2009 David Hrbáč <[email protected]> - 1.3.103-1
- new upstream version
* Mon Jan 19 2009 David Hrbáč <[email protected]> - 1.3.102-1
- new upstream version
* Wed Sep 10 2008 David Hrbáč <[email protected]> - 1.3.92-1
- new upstream version
* Mon May 19 2008 David Hrbáč <[email protected]> - 1.3.90-1
- update to new version
* Wed Apr 2 2008 David Hrbáč <[email protected]> - 1.3.86-1
- CentOS rebuild
* Fri Apr 06 2007 Douglas E. Warner <[email protected]> 1.3.55-1
- update for 1.3.55
* Mon Aug 1 2005 Douglas E. Warner <[email protected]> 1.3.12-1
- update for 1.3.12
* Mon Apr 11 2005 Douglas E. Warner <[email protected]> 1.3.0-1
- update for 1.3.0
* Fri Jan 28 2005 Douglas E. Warner <[email protected]> 1.2.68-1
- update for 1.2.68
* Sat Apr 10 2004 Douglas E. Warner <[email protected]>
- Initial RPM release.