/[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.1 - (hide annotations) (download)
Mon Dec 24 00:18:17 2007 UTC (16 years, 4 months ago) by slords
Branch: MAIN
Import on branch contribs7 of package dansguardian-2.9.9.2-1.el4.sme.src.rpm

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     BuildRequires: gcc-c++ zlib-devel clamav-devel
11     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