Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
dcc
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 7
[-]
[+]
Changed
dcc.spec
@@ -7,7 +7,17 @@ Source: %{name}-%{version}.tar.Z BuildRoot: %{_tmppath}/build-root-%{name} Url: http://www.dcc-servers.net/dcc/ -BuildRequires: apache2 rrdtool +BuildRequires: rrdtool + +%if 0%{?suse_version} +BuildRequires: apache2 +%define _apachewwwdir /srv/www +%endif + +%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?redhat_version} +BuildRequires: httpd +%define _apachewwwdir /var/www +%endif %description The Distributed Checksum Clearinghouse or DCC is a cooperative, distributed system intended to detect "bulk" mail or mail sent to many people. It allows individuals receiving a single mail message to determine that many other people have received essentially identical copies of the message and so reject or discard the message. @@ -25,7 +35,7 @@ ./configure \ --homedir=/var/lib/dcc \ --libexecdir=%{_prefix}/lib/dcc/libexec \ - --with-cgibin=/srv/www/cgi-bin/dcc \ + --with-cgibin=%{_apachewwwdir}/cgi-bin/dcc \ --disable-dccm \ --with-installroot=$RPM_BUILD_ROOT \ --bindir=%{_bindir} \ @@ -36,22 +46,12 @@ %install %__make DESTDIR=$RPM_BUILD_ROOT install -#cd $RPM_BUILD_ROOT -# -#find . -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs -#find . -type f -fprint $RPM_BUILD_DIR/file.list.%{name}.files.tmp -#sed '/\/man\//s/$/.gz/g' $RPM_BUILD_DIR/file.list.%{name}.files.tmp > $RPM_BUILD_DIR/file.list.%{name}.files -#find . -type l -fprint $RPM_BUILD_DIR/file.list.%{name}.libs -#sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' $RPM_BUILD_DIR/file.list.%{name}.dirs > $RPM_BUILD_DIR/file.list.%{name} -#sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.files >> $RPM_BUILD_DIR/file.list.%{name} -#sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.libs >> $RPM_BUILD_DIR/file.list.%{name} - %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %attr(0755,root,root) %{_bindir}/*dcc* -/var/%{name} +/var/lib/%{name} %{_prefix}/lib/dcc/libexec -/srv/www/cgi-bin/dcc +%{_apachewwwdir}/cgi-bin/dcc