/[smecontribs]/rpms/dansguardian/contribs7/dansguardian.spec
ViewVC logotype

Annotation of /rpms/dansguardian/contribs7/dansguardian.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (hide annotations) (download)
Wed Apr 2 15:03:54 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
Changes since 1.3: +4 -0 lines
Add Id, Authority, Name

1 slords 1.4 # $Id$
2     # Authority: dungog
3     # Name: Stephen Noble
4    
5 slords 1.1 Name: dansguardian
6     Version: 2.9.9.2
7     Release: 1%{?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 slords 1.3 BuildRequires: gcc-c++ zlib-devel clamav-devel bzip2-devel gmp-devel
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     %build
27     %configure --datadir=/etc \
28     --enable-clamd \
29     --enable-clamav \
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    
51     %clean
52     rm -rf $RPM_BUILD_ROOT
53    
54     %pre
55    
56     %post
57     %preun
58     if [ $1 = 0 ]; then
59     /sbin/service %{name} stop 2>/dev/null 1>/dev/null
60     fi
61    
62     %files
63     %defattr(-,root,root)
64     %doc README NEWS ChangeLog AUTHORS COPYING
65     %doc doc/AuthPlugins doc/ContentScanners doc/DownloadManagers doc/FAQ doc/FAQ.html doc/Plugins
66     %attr(0755,root,root) %dir /etc/dansguardian
67     %attr(0644,root,root) %config(noreplace) /etc/dansguardian/*
68     %attr(0755,root,root) /etc/init.d/dansguardian
69     %attr(0755,clamav,nobody) %dir /var/log/dansguardian
70     %attr(0755,root,root) %{_sbindir}/*
71     %attr(0644,root,root) %{_mandir}/*/*
72     %{_datadir}/%{name}/
73    
74     %changelog
75     * Sat Dec 22 2007 Stephen Noble dungog.net
76     - Upstream Release 2.9.9.2
77    
78     * Sun Oct 28 2007 Stephen Noble dungog.net
79     - rebuild for SME Server 2.9.9.1
80    
81     * Tue Jun 19 2007 Daniel Bartz
82     - rebuild for the centos repo

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed