1 |
dungog |
1.17 |
# $Id: dansguardian.spec,v 1.16 2009/04/03 22:54:19 dungog Exp $ |
2 |
slords |
1.4 |
# Authority: dungog |
3 |
|
|
# Name: Stephen Noble |
4 |
|
|
|
5 |
slords |
1.1 |
Name: dansguardian |
6 |
dungog |
1.15 |
Version: 2.10.0.3 |
7 |
slords |
1.6 |
Release: 1%{?dist} |
8 |
slords |
1.1 |
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 |
slords |
1.10 |
BuildRequires: gcc-c++ zlib-devel clamav-devel bzip2-devel gmp-devel pkgconfig |
15 |
slords |
1.1 |
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 |
slords |
1.6 |
|
27 |
slords |
1.1 |
%build |
28 |
|
|
%configure --datadir=/etc \ |
29 |
|
|
--enable-clamd \ |
30 |
|
|
--enable-clamav \ |
31 |
|
|
--enable-icap \ |
32 |
|
|
--enable-ntlm \ |
33 |
|
|
--enable-trickledm \ |
34 |
|
|
--enable-fancydm \ |
35 |
|
|
--enable-email \ |
36 |
|
|
--enable-pcre=no \ |
37 |
|
|
--with-logdir=/var/log/dansguardian \ |
38 |
|
|
--with-proxyuser=clamav \ |
39 |
|
|
--with-proxygroup=clamav \ |
40 |
|
|
--with-piddir=/var/run |
41 |
|
|
make |
42 |
|
|
|
43 |
|
|
%install |
44 |
|
|
rm -rf $RPM_BUILD_ROOT |
45 |
|
|
|
46 |
|
|
make DESTDIR=$RPM_BUILD_ROOT install |
47 |
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d/ |
48 |
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/dansguardian |
49 |
|
|
touch $RPM_BUILD_ROOT/etc/dansguardian/lists/exceptionfileurllist |
50 |
|
|
cp $RPM_BUILD_ROOT/etc/dansguardian/scripts/systemv-init $RPM_BUILD_ROOT/etc/init.d/dansguardian |
51 |
slords |
1.7 |
rm -rf $RPM_BUILD_ROOT/usr/share/doc/dansguardian |
52 |
slords |
1.1 |
|
53 |
|
|
%clean |
54 |
|
|
rm -rf $RPM_BUILD_ROOT |
55 |
|
|
|
56 |
|
|
%pre |
57 |
|
|
|
58 |
|
|
%post |
59 |
|
|
%preun |
60 |
|
|
if [ $1 = 0 ]; then |
61 |
|
|
/sbin/service %{name} stop 2>/dev/null 1>/dev/null |
62 |
|
|
fi |
63 |
|
|
|
64 |
|
|
%files |
65 |
|
|
%defattr(-,root,root) |
66 |
|
|
%doc README NEWS ChangeLog AUTHORS COPYING |
67 |
|
|
%doc doc/AuthPlugins doc/ContentScanners doc/DownloadManagers doc/FAQ doc/FAQ.html doc/Plugins |
68 |
|
|
%attr(0755,root,root) %dir /etc/dansguardian |
69 |
|
|
%attr(0644,root,root) %config(noreplace) /etc/dansguardian/* |
70 |
|
|
%attr(0755,root,root) /etc/init.d/dansguardian |
71 |
|
|
%attr(0755,clamav,nobody) %dir /var/log/dansguardian |
72 |
|
|
%attr(0755,root,root) %{_sbindir}/* |
73 |
|
|
%attr(0644,root,root) %{_mandir}/*/* |
74 |
|
|
%{_datadir}/%{name}/ |
75 |
|
|
|
76 |
|
|
%changelog |
77 |
dungog |
1.17 |
* Sat Apr 4 2009 Stephen Noble <support@dungog.net> 2.10.0.3-1.sme |
78 |
dungog |
1.16 |
- Upstream Release, please import src 2.10.0.3 |
79 |
|
|
- Update to build against clamav 0.95 |
80 |
dungog |
1.15 |
|
81 |
dungog |
1.14 |
* Fri Dec 12 2008 Stephen Noble <support@dungog.net> 2.10.0.2-1.sme |
82 |
|
|
- Conflicts dungog-dansguardian < 2.9 |
83 |
|
|
- Upstream Release 2.10.0.2 |
84 |
|
|
|
85 |
slords |
1.11 |
* Thu Oct 9 2008 Shad L. Lords <slords@mail.com> 2.10-1.sme |
86 |
|
|
- Upstream Release 2.10 |
87 |
|
|
|
88 |
slords |
1.9 |
* Fri Sep 5 2008 Shad L. Lords <slords@mail.com> 2.9.9.7-1 |
89 |
|
|
- Upstream Release 2.9.9.7 |
90 |
|
|
- Update to build against clamav 0.94 |
91 |
|
|
|
92 |
slords |
1.8 |
* Sat May 6 2008 Shad L. Lords <slords@mail.com> 2.9.9.4-1 |
93 |
|
|
- Upstream Release 2.9.9.4 |
94 |
|
|
|
95 |
slords |
1.6 |
* Sat Apr 19 2008 Shad L. Lords <slords@mail.com> 2.9.9.3-1 |
96 |
|
|
- Upstream Release 2.9.9.3 |
97 |
|
|
- Update to build against clamav 0.93 |
98 |
slords |
1.5 |
|
99 |
slords |
1.1 |
* Sat Dec 22 2007 Stephen Noble dungog.net |
100 |
|
|
- Upstream Release 2.9.9.2 |
101 |
|
|
|
102 |
|
|
* Sun Oct 28 2007 Stephen Noble dungog.net |
103 |
|
|
- rebuild for SME Server 2.9.9.1 |
104 |
|
|
|
105 |
|
|
* Tue Jun 19 2007 Daniel Bartz |
106 |
|
|
- rebuild for the centos repo |