1 |
# $Id: dansguardian.spec,v 1.19 2009/04/03 22:59:14 dungog Exp $ |
2 |
# Authority: dungog |
3 |
# Name: Stephen Noble |
4 |
|
5 |
Name: dansguardian |
6 |
Version: 2.10.0.3 |
7 |
Release: 4%{?dist} |
8 |
Summary: Content filter |
9 |
License: GNU GPL version 2 |
10 |
Url: http://www.dansguardian.org |
11 |
Group: System/Servers |
12 |
Source0: %name-%version.tar.gz |
13 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
14 |
BuildRequires: gcc-c++ zlib-devel clamav-devel bzip2-devel gmp-devel pkgconfig |
15 |
Requires: squid clamav |
16 |
#clamav-lib |
17 |
|
18 |
%description |
19 |
DansGuardian is a web content filtering proxy that uses Squid to do all |
20 |
the fetching. It filters using multiple methods. These methods include |
21 |
URL and domain filtering, content phrase filtering, PICS filtering, |
22 |
MIME filtering, file extension filtering, POST limiting. |
23 |
|
24 |
%prep |
25 |
%setup -q |
26 |
|
27 |
%build |
28 |
%configure --datadir=/etc \ |
29 |
--enable-clamd \ |
30 |
--enable-icap \ |
31 |
--enable-ntlm \ |
32 |
--enable-trickledm \ |
33 |
--enable-fancydm \ |
34 |
--enable-email \ |
35 |
--enable-pcre=no \ |
36 |
--with-logdir=/var/log/dansguardian \ |
37 |
--with-proxyuser=clamav \ |
38 |
--with-proxygroup=clamav \ |
39 |
--with-piddir=/var/run |
40 |
make |
41 |
|
42 |
%install |
43 |
rm -rf $RPM_BUILD_ROOT |
44 |
|
45 |
make DESTDIR=$RPM_BUILD_ROOT install |
46 |
mkdir -p $RPM_BUILD_ROOT/etc/init.d/ |
47 |
mkdir -p $RPM_BUILD_ROOT/usr/share/dansguardian |
48 |
touch $RPM_BUILD_ROOT/etc/dansguardian/lists/exceptionfileurllist |
49 |
cp $RPM_BUILD_ROOT/etc/dansguardian/scripts/systemv-init $RPM_BUILD_ROOT/etc/init.d/dansguardian |
50 |
rm -rf $RPM_BUILD_ROOT/usr/share/doc/dansguardian |
51 |
|
52 |
%clean |
53 |
rm -rf $RPM_BUILD_ROOT |
54 |
|
55 |
%pre |
56 |
|
57 |
%post |
58 |
%preun |
59 |
if [ $1 = 0 ]; then |
60 |
/sbin/service %{name} stop 2>/dev/null 1>/dev/null |
61 |
fi |
62 |
|
63 |
%files |
64 |
%defattr(-,root,root) |
65 |
%doc README NEWS ChangeLog AUTHORS COPYING |
66 |
%doc doc/AuthPlugins doc/ContentScanners doc/DownloadManagers doc/FAQ doc/FAQ.html doc/Plugins |
67 |
%attr(0755,root,root) %dir /etc/dansguardian |
68 |
%attr(0644,root,root) %config(noreplace) /etc/dansguardian/* |
69 |
%attr(0755,root,root) /etc/init.d/dansguardian |
70 |
%attr(0755,clamav,nobody) %dir /var/log/dansguardian |
71 |
%attr(0755,root,root) %{_sbindir}/* |
72 |
%attr(0644,root,root) %{_mandir}/*/* |
73 |
%{_datadir}/%{name}/ |
74 |
|
75 |
%changelog |
76 |
* Sat Apr 4 2009 Stephen Noble <support@dungog.net> 2.10.0.3-4.sme |
77 |
- build without "--enable-clamav" we use clamd |
78 |
|
79 |
* Sat Apr 4 2009 Stephen Noble <support@dungog.net> 2.10.0.3-3.sme |
80 |
- Upstream Release 2.10.0.3 |
81 |
- Update to build against clamav 0.95 |
82 |
|
83 |
* Fri Dec 12 2008 Stephen Noble <support@dungog.net> 2.10.0.2-1.sme |
84 |
- Conflicts dungog-dansguardian < 2.9 |
85 |
- Upstream Release 2.10.0.2 |
86 |
|
87 |
* Thu Oct 9 2008 Shad L. Lords <slords@mail.com> 2.10-1.sme |
88 |
- Upstream Release 2.10 |
89 |
|
90 |
* Fri Sep 5 2008 Shad L. Lords <slords@mail.com> 2.9.9.7-1 |
91 |
- Upstream Release 2.9.9.7 |
92 |
- Update to build against clamav 0.94 |
93 |
|
94 |
* Sat May 6 2008 Shad L. Lords <slords@mail.com> 2.9.9.4-1 |
95 |
- Upstream Release 2.9.9.4 |
96 |
|
97 |
* Sat Apr 19 2008 Shad L. Lords <slords@mail.com> 2.9.9.3-1 |
98 |
- Upstream Release 2.9.9.3 |
99 |
- Update to build against clamav 0.93 |
100 |
|
101 |
* Sat Dec 22 2007 Stephen Noble dungog.net |
102 |
- Upstream Release 2.9.9.2 |
103 |
|
104 |
* Sun Oct 28 2007 Stephen Noble dungog.net |
105 |
- rebuild for SME Server 2.9.9.1 |
106 |
|
107 |
* Tue Jun 19 2007 Daniel Bartz |
108 |
- rebuild for the centos repo |