/[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.3 - (hide annotations) (download)
Mon Dec 24 02:37:56 2007 UTC (16 years, 10 months ago) by slords
Branch: MAIN
CVS Tags: dansguardian-2_9_9_2-1_el4_sme
Changes since 1.2: +1 -1 lines
update build deps

1 slords 1.1 Name: dansguardian
2     Version: 2.9.9.2
3     Release: 1%{?dist}
4     Summary: Content filter
5     License: GNU GPL version 2
6     Url: http://www.dansguardian.org
7     Group: System/Servers
8     Source0: %name-%version.tar.gz
9     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
10 slords 1.3 BuildRequires: gcc-c++ zlib-devel clamav-devel bzip2-devel gmp-devel
11 slords 1.1 Requires: squid clamav
12     #clamav-lib
13    
14     %description
15     DansGuardian is a web content filtering proxy that uses Squid to do all
16     the fetching. It filters using multiple methods. These methods include
17     URL and domain filtering, content phrase filtering, PICS filtering,
18     MIME filtering, file extension filtering, POST limiting.
19    
20     %prep
21     %setup -q
22     %build
23     %configure --datadir=/etc \
24     --enable-clamd \
25     --enable-clamav \
26     --enable-icap \
27     --enable-ntlm \
28     --enable-trickledm \
29     --enable-fancydm \
30     --enable-email \
31     --enable-pcre=no \
32     --with-logdir=/var/log/dansguardian \
33     --with-proxyuser=clamav \
34     --with-proxygroup=clamav \
35     --with-piddir=/var/run
36     make
37    
38     %install
39     rm -rf $RPM_BUILD_ROOT
40    
41     make DESTDIR=$RPM_BUILD_ROOT install
42     mkdir -p $RPM_BUILD_ROOT/etc/init.d/
43     mkdir -p $RPM_BUILD_ROOT/usr/share/dansguardian
44     touch $RPM_BUILD_ROOT/etc/dansguardian/lists/exceptionfileurllist
45     cp $RPM_BUILD_ROOT/etc/dansguardian/scripts/systemv-init $RPM_BUILD_ROOT/etc/init.d/dansguardian
46    
47     %clean
48     rm -rf $RPM_BUILD_ROOT
49    
50     %pre
51    
52     %post
53     %preun
54     if [ $1 = 0 ]; then
55     /sbin/service %{name} stop 2>/dev/null 1>/dev/null
56     fi
57    
58     %files
59     %defattr(-,root,root)
60     %doc README NEWS ChangeLog AUTHORS COPYING
61     %doc doc/AuthPlugins doc/ContentScanners doc/DownloadManagers doc/FAQ doc/FAQ.html doc/Plugins
62     %attr(0755,root,root) %dir /etc/dansguardian
63     %attr(0644,root,root) %config(noreplace) /etc/dansguardian/*
64     %attr(0755,root,root) /etc/init.d/dansguardian
65     %attr(0755,clamav,nobody) %dir /var/log/dansguardian
66     %attr(0755,root,root) %{_sbindir}/*
67     %attr(0644,root,root) %{_mandir}/*/*
68     %{_datadir}/%{name}/
69    
70     %changelog
71     * Sat Dec 22 2007 Stephen Noble dungog.net
72     - Upstream Release 2.9.9.2
73    
74     * Sun Oct 28 2007 Stephen Noble dungog.net
75     - rebuild for SME Server 2.9.9.1
76    
77     * Tue Jun 19 2007 Daniel Bartz
78     - rebuild for the centos repo

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