]> git.pld-linux.org Git - packages/dcc-dccd.git/blame - dcc-dccd.spec
- tabs in preamble
[packages/dcc-dccd.git] / dcc-dccd.spec
CommitLineData
20c7b148 1Summary: Distributed Checksum Clearinghouse, anti-spam tool
f40ee8fd 2Summary(pl.UTF-8): Narzędzie anty-spamowe bazujące na sumach kontrolnych (DCC)
20c7b148 3Name: dcc-dccd
4da6235a 4Version: 1.2.50
de8c87af 5Release: 1
20c7b148
AM
6License: BSD-like
7Group: Networking
01854afc 8Source0: http://www.dcc-servers.net/dcc/source/%{name}-%{version}.tar.Z
4da6235a 9# Source0-md5: 676b17dca43a3dabe22c057a6cfdde77
20c7b148 10URL: http://www.dcc-servers.net/
24e50e9c 11BuildRequires: fhs-compliance
d020b14a 12BuildRequires: rpmbuild(macros) >= 1.202
c8269dcc 13BuildRequires: using-special-registered-not-regular-user
c2b865a6 14Requires(post,preun): /sbin/chkconfig
c8269dcc
ER
15Requires(postun): /usr/sbin/userdel
16Requires(pre): /usr/sbin/useradd
d020b14a 17Provides: user(dcc)
8f0a179b 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20c7b148 19
c2b865a6 20%define dccdir /var/lib/dcc
19e72beb 21%define cgidir /srv/httpd/cgi-bin
c2b865a6 22
20c7b148
AM
23%description
24Distributed Checksum Clearinghouse or DCC is a cooperative,
25distributed system intended to detect "bulk" mail or mail sent to many
26people. It allows individuals receiving a single mail message to
27determine that many other people have been sent essentially identical
28copies of the message and so reject the message. It can identify some
29unsolicited bulk mail using "spam traps" and other detectors, but that
30is not its focus.
31
32The DCC can be viewed as a tool for end users to enforce their right
33to "opt-in" to streams of bulk mail by refusing all bulk mail except
34from sources in a "white list." White lists are generally the
35responsibility of DCC clients, since only they know which bulk mail
36they solicited.
37
67233197 38%description -l pl.UTF-8
c2b865a6 39DCC (Distributed Checksum Clearinghouse) jest kooperatywnym,
67233197
JR
40rozproszonym systemem mającym na celu wykrywanie masowej poczty lub
41poczty wysłanej do wielu ludzi. Pozwala jednostkom otrzymującym
42pojedynczy list określić, jak wielu innych otrzymało dokładnie
43identyczne kopie tej wiadomości i na tej podstawie odrzucić ją. Może
44zidentyfikować niechcianą masową pocztę przy użyciu "pułapek
c2b865a6
JB
45antyspamowych" i innych wykrywaczy, ale to nie jest podstawowym celem.
46
67233197
JR
47DCC można odbierać jako narzędzie dla użytkowników końcowych,
48zapewniające im prawo do przeciwstawienia się zalewowi masowej poczty
49przez odrzucenie wszystkich śmieci oprócz źródeł z "białej listy". Za
50białe listy odpowiadają klienci DCC, jako że tylko oni wiedzą, jaką
51masową pocztę zamawiali.
c2b865a6 52
953f01bb
SZ
53%package client
54Summary: Tools to access a DCC server
f40ee8fd 55Summary(pl.UTF-8): Narzędzia dostępowe dla serwera DCC
953f01bb 56Group: Networking
0f873392 57Requires: %{name} = %{version}-%{release}
953f01bb
SZ
58
59%description client
60Distributed Checksum Clearinghouse or DCC is a cooperative,
61distributed system intended to detect "bulk" mail or mail sent to many
62people. It allows individuals receiving a single mail message to
63determine that many other people have been sent essentially identical
64copies of the message and so reject the message. It can identify some
65unsolicited bulk mail using "spam traps" and other detectors, but that
66is not its focus.
67
68The DCC can be viewed as a tool for end users to enforce their right
69to "opt-in" to streams of bulk mail by refusing all bulk mail except
70from sources in a "white list." White lists are generally the
71responsibility of DCC clients, since only they know which bulk mail
72they solicited.
73
67233197 74%description client -l pl.UTF-8
953f01bb 75DCC (Distributed Checksum Clearinghouse) jest kooperatywnym,
67233197
JR
76rozproszonym systemem mającym na celu wykrywanie masowej poczty lub
77poczty wysłanej do wielu ludzi. Pozwala jednostkom otrzymującym
78pojedynczy list określić, jak wielu innych otrzymało dokładnie
79identyczne kopie tej wiadomości i na tej podstawie odrzucić ją. Może
80zidentyfikować niechcianą masową pocztę przy użyciu "pułapek
953f01bb
SZ
81antyspamowych" i innych wykrywaczy, ale to nie jest podstawowym celem.
82
67233197
JR
83DCC można odbierać jako narzędzie dla użytkowników końcowych,
84zapewniające im prawo do przeciwstawienia się zalewowi masowej poczty
85przez odrzucenie wszystkich śmieci oprócz źródeł z "białej listy". Za
86białe listy odpowiadają klienci DCC, jako że tylko oni wiedzą, jaką
87masową pocztę zamawiali.
953f01bb
SZ
88
89%package server
90Summary: DCC Server
f40ee8fd 91Summary(pl.UTF-8): Serwer DCC
953f01bb 92Group: Networking
0f873392 93Requires: %{name} = %{version}-%{release}
953f01bb
SZ
94
95%description server
96Distributed Checksum Clearinghouse or DCC is a cooperative,
97distributed system intended to detect "bulk" mail or mail sent to many
98people. It allows individuals receiving a single mail message to
99determine that many other people have been sent essentially identical
100copies of the message and so reject the message. It can identify some
101unsolicited bulk mail using "spam traps" and other detectors, but that
102is not its focus.
103
104The DCC can be viewed as a tool for end users to enforce their right
105to "opt-in" to streams of bulk mail by refusing all bulk mail except
106from sources in a "white list." White lists are generally the
107responsibility of DCC clients, since only they know which bulk mail
108they solicited.
109
67233197 110%description server -l pl.UTF-8
953f01bb 111DCC (Distributed Checksum Clearinghouse) jest kooperatywnym,
67233197
JR
112rozproszonym systemem mającym na celu wykrywanie masowej poczty lub
113poczty wysłanej do wielu ludzi. Pozwala jednostkom otrzymującym
114pojedynczy list określić, jak wielu innych otrzymało dokładnie
115identyczne kopie tej wiadomości i na tej podstawie odrzucić ją. Może
116zidentyfikować niechcianą masową pocztę przy użyciu "pułapek
953f01bb
SZ
117antyspamowych" i innych wykrywaczy, ale to nie jest podstawowym celem.
118
67233197
JR
119DCC można odbierać jako narzędzie dla użytkowników końcowych,
120zapewniające im prawo do przeciwstawienia się zalewowi masowej poczty
121przez odrzucenie wszystkich śmieci oprócz źródeł z "białej listy". Za
122białe listy odpowiadają klienci DCC, jako że tylko oni wiedzą, jaką
123masową pocztę zamawiali.
20c7b148
AM
124
125%package cgi
0f873392 126Summary: CGI scripts for managing mail delivery on a DCC enabled server
f40ee8fd 127Summary(pl.UTF-8): Skrypty CGI do obsługi dostarczania poczty na serwerze DCC
c2b865a6 128Group: Networking
0f873392 129Requires: %{name} = %{version}-%{release}
20c7b148
AM
130
131%description cgi
0f873392 132Example set of CGI scripts to allow users to point-and-click manage
20c7b148
AM
133their own DCC whitelists and thus what is delivered to them. Allows
134overriding of site level lists. The scripts give controlled access to
135the whitelists which are otherwise in protected directory space (owned
136by dcc).
137
c2b865a6
JB
138NB these scripts need configured after installation.
139
67233197
JR
140%description cgi -l pl.UTF-8
141Przykładowy zestaw skryptów CGI pozwalających użytkownikom na klikane
142zarządzenie ich białymi listami DCC, a więc i tym, co dostają. Pozwala
143przykrywać listy dotyczące serwera. Skrypty dają dostęp do białych
144list, które normalnie są w zabezpieczonym katalogu (którego
145właścicielem jest DCC).
c2b865a6 146
67233197 147Te skrypty wymagają konfiguracji po zainstalowaniu.
20c7b148
AM
148
149%prep
150%setup -q
151
152%build
4da6235a 153CFLAGS="%{rpmcflags}"; export CFLAGS
154LDFLAGS="%{rpmldflags}"; export LDFLAGS
155./configure \
156 --bindir=%{_bindir} \
157 --libexecdir=%{_libexecdir} \
158 --mandir=%{_mandir} \
159 --homedir=%{dccdir} \
20c7b148 160 --with-uid=99 \
ad525234 161 --with-cgibin=%{cgidir} \
20c7b148
AM
162 --with-rundir=%{_var}/run \
163 --with-db-memory=32
ad525234 164
20c7b148 165%{__make}
953f01bb 166%{__make} -C dccifd/dccif-test
20c7b148
AM
167
168%install
169rm -rf $RPM_BUILD_ROOT
170
953f01bb
SZ
171install -d $RPM_BUILD_ROOT%{_initrddir}
172install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cron.daily,httpd}
173install -d $RPM_BUILD_ROOT/var/run/dcc
174install -d $RPM_BUILD_ROOT%{dccdir}/{log,userdirs/{local,esmtp,cyrus,procmail}}
175install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir},%{_libdir}}
176install -d $RPM_BUILD_ROOT%{_includedir}/dcc
20c7b148 177
953f01bb 178INST_UID="$( id -u )" INST_GID="$( id -g )"; export INST_UID INST_GID
20c7b148 179
953f01bb 180%{makeinstall} \
ad525234
JB
181 MANOWN=$INST_UID \
182 MANGRP=$INST_GID \
183 DCC_SUID=$INST_UID \
184 DCC_OWN=$INST_UID \
185 DCC_GRP=$INST_GID \
186 BINOWN=$INST_UID \
187 GRP=$INST_GID \
188 INSTALL="install -C" \
4da6235a 189 INST_BINDIR=$RPM_BUILD_ROOT%{cgidir} \
190 DCC_HOMEDIR=$RPM_BUILD_ROOT%{dccdir} \
ad525234 191 DCC_CGIBINDIR=$RPM_BUILD_ROOT%{cgidir} \
953f01bb
SZ
192 DCC_LIBEXECDIR=$RPM_BUILD_ROOT%{_sbindir} \
193 DCC_BINDIR=$RPM_BUILD_ROOT%{_sbindir} \
194 BINDIR=$RPM_BUILD_ROOT%{_bindir} \
195 MANDIR=$RPM_BUILD_ROOT%{_mandir}/man
196
197install misc/cron-dccd $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/dccd
198install misc/rcDCC $RPM_BUILD_ROOT%{_initrddir}/dccd
199install homedir/flod $RPM_BUILD_ROOT%{dccdir}/flod
200
201# move some binaries in place, wierd stuff...
202for i in dbclean dblist dccd dccifd dccsight wlist; do
ad525234 203 mv -f $RPM_BUILD_ROOT%{_bindir}/$i $RPM_BUILD_ROOT%{_sbindir}
953f01bb 204done
ad525234 205
953f01bb 206# install extras
ad525234
JB
207install dccifd/dccif-test/dccif-test $RPM_BUILD_ROOT%{_sbindir}
208install dccifd/dccif-test/dccif-test.pl $RPM_BUILD_ROOT%{_sbindir}
209install dccifd/dccif.pl $RPM_BUILD_ROOT%{_sbindir}
20c7b148
AM
210
211# Set some initial logging, but no rejections
953f01bb 212perl -p -i -e "s/BRAND=\$/BRAND=%{version}-%{release}/ ; s/DCCM_LOG_AT=\$/\$&10/ ; " \
c2b865a6 213 $RPM_BUILD_ROOT%{dccdir}/dcc_conf
20c7b148 214
953f01bb
SZ
215# prepare for docs inclusion
216cp misc/README README.misc
217cp homedir/README README.homedir
218cp cgi-bin/README README.cgi-bin
219
220# install devel files
ad525234
JB
221install dccd/*.h $RPM_BUILD_ROOT%{_includedir}/dcc
222install dcclib/*.h $RPM_BUILD_ROOT%{_includedir}/dcc
223install include/*.h $RPM_BUILD_ROOT%{_includedir}/dcc
224install srvrlib/*.h $RPM_BUILD_ROOT%{_includedir}/dcc
225install dcclib/libdcc.a $RPM_BUILD_ROOT%{_libdir}
226install srvrlib/libsrvr.a $RPM_BUILD_ROOT%{_libdir}
227install thrlib/libthr.a $RPM_BUILD_ROOT%{_libdir}
953f01bb
SZ
228
229# house cleaning
230rm -f $RPM_BUILD_ROOT/var/www/dcc-bin/README
231rm -f $RPM_BUILD_ROOT%{_sbindir}/rcDCC
232rm -f $RPM_BUILD_ROOT%{_sbindir}/cron-dccd
233rm -f $RPM_BUILD_ROOT%{_sbindir}/logger
234rm -f $RPM_BUILD_ROOT%{_sbindir}/updatedcc
20c7b148
AM
235
236%clean
237rm -rf $RPM_BUILD_ROOT
238
4f38d07e 239%pre
d020b14a
ER
240# TODO register userid in uid_gid.db.txt
241%useradd -u XXX -d %{dccdir} -r dcc
4f38d07e 242
243%postun
244if [ $1 = 0 ]; then
d020b14a 245 %userremove dcc
4f38d07e 246fi
247
20c7b148 248%post
0f873392 249/sbin/chkconfig --add dccd
da06623e 250umask 022
0f873392 251/usr/bin/cdcc info > %{dccdir}/map.txt
20c7b148
AM
252
253%post cgi
254echo The scripts need configured and added into your web configuration.
c2b865a6 255echo see %{dccdir}/cgi-bin/README
20c7b148
AM
256
257%preun
258if [ $1 = 0 ]; then
20c7b148 259 /sbin/chkconfig --del dccd || :
c2b865a6 260 /etc/rc.d/init.d/dccd stop || :
20c7b148
AM
261fi
262
263%files
264%defattr(644,root,root,755)
ad525234
JB
265%doc CHANGES FAQ.html FAQ.txt INSTALL.html INSTALL.txt LICENSE cdcc.html
266%doc dbclean.html dblist.html dccd.html dcc.html dccproc.html
267%doc dccsight.html homedir/flod homedir/ids homedir/map.txt homedir/README
4da6235a 268%doc misc/dcc.m4 misc/dccdnsbl.m4 misc/hackmc
f283663d 269#%doc dccm.html
c2b865a6
JB
270%dir %{dccdir}
271%dir %{dccdir}/log
272%dir %{dccdir}/userdirs/local
273%dir %{dccdir}/userdirs/cyrus
274%dir %{dccdir}/userdirs/procmail
275%dir %{dccdir}/userdirs/esmtp
276%dir /var/run/dcc
f283663d
ER
277%config(noreplace) %verify(not md5 mtime size) %{dccdir}/dcc_conf
278%config(noreplace) %verify(not md5 mtime size) %{dccdir}/whiteclnt
279%config(noreplace) %verify(not md5 mtime size) %{dccdir}/whitecommon
280%config(noreplace) %verify(not md5 mtime size) %{dccdir}/whitelist
281%config(noreplace) %verify(not md5 mtime size) %{dccdir}/ids
282%config(noreplace) %verify(not md5 mtime size) %{dccdir}/flod
283%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{dccdir}/map
953f01bb
SZ
284#%config(noreplace) %verify(not size mtime md5) %{dccdir}/dcc_db
285#%config(noreplace) %verify(not size mtime md5) %{dccdir}/dcc_db.hash
c2b865a6 286%{dccdir}/map.txt
953f01bb
SZ
287%{dccdir}/grey_flod
288%{dccdir}/grey_whitelist
289
290%files client
ad525234 291%defattr(644,root,root,755)
953f01bb
SZ
292%attr(4755,root,root) %{_bindir}/cdcc
293%attr(4755,root,root) %{_bindir}/dccproc
ad525234
JB
294%{_mandir}/man8/cdcc.8*
295%{_mandir}/man8/dccproc.8*
953f01bb
SZ
296
297%files server
ad525234 298%defattr(644,root,root,755)
c2b865a6
JB
299%attr(754,root,root) /etc/rc.d/init.d/dccd
300%attr(750,root,root) /etc/cron.daily/dccd
953f01bb 301%attr(4755,root,root) %{_sbindir}/dccsight
20c7b148
AM
302%attr(755,root,root) %{_sbindir}/dbclean
303%attr(755,root,root) %{_sbindir}/dblist
953f01bb
SZ
304%attr(755,root,root) %{_sbindir}/dcc-stats-collect
305%attr(755,root,root) %{_sbindir}/dcc-stats-graph
306%attr(755,root,root) %{_sbindir}/dcc-stats-init
20c7b148 307%attr(755,root,root) %{_sbindir}/dccd
953f01bb
SZ
308%attr(755,root,root) %{_sbindir}/dccif-test
309%attr(755,root,root) %{_sbindir}/dccif-test.pl
310%attr(755,root,root) %{_sbindir}/dccif.pl
311%attr(755,root,root) %{_sbindir}/dccifd
312%attr(755,root,root) %{_sbindir}/fetch-testmsg-whitelist
313%attr(755,root,root) %{_sbindir}/hackmc
953f01bb 314%attr(755,root,root) %{_sbindir}/newwebuser
953f01bb
SZ
315%attr(755,root,root) %{_sbindir}/wlist
316# sendmail stuff
317#%attr(755,root,root) %{_sbindir}/dccm
318#%{_datadir}/sendmail-cf/feature/dcc.m4
319#%{_datadir}/sendmail-cf/feature/dccdnsbl.m4
20c7b148 320%attr(755,root,root) %{_sbindir}/start-dccd
953f01bb 321%attr(755,root,root) %{_sbindir}/start-dccifd
20c7b148 322%attr(755,root,root) %{_sbindir}/start-dccm
953f01bb
SZ
323%attr(755,root,root) %{_sbindir}/start-grey
324%attr(755,root,root) %{_sbindir}/stats-get
20c7b148 325%attr(755,root,root) %{_sbindir}/stop-dccd
ad525234
JB
326%{_mandir}/man8/dbclean.8*
327%{_mandir}/man8/dblist.8*
328%{_mandir}/man8/dcc.8*
329%{_mandir}/man8/dccd.8*
330%{_mandir}/man8/dccifd.8*
331%{_mandir}/man8/dccm.8*
332%{_mandir}/man8/dccsight.8*
20c7b148
AM
333
334%files cgi
335%defattr(644,root,root,755)
ad525234
JB
336%{cgidir}/chgpasswd
337%{cgidir}/common
338%{cgidir}/edit-whiteclnt
339%{cgidir}/http2https
340%{cgidir}/list-log
341%{cgidir}/list-msg
342%{cgidir}/README
343%{cgidir}/webuser-notify
This page took 0.148323 seconds and 4 git commands to generate.