/[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.7 - (hide annotations) (download)
Sun Apr 20 01:04:13 2008 UTC (16 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: dansguardian-2_9_9_3-1_el4_sme
Changes since 1.6: +2 -1 lines
Fix spec

1 slords 1.7 # $Id: dansguardian.spec,v 1.6 2008/04/19 23:47:04 slords Exp $
2 slords 1.4 # Authority: dungog
3     # Name: Stephen Noble
4    
5 slords 1.1 Name: dansguardian
6 slords 1.6 Version: 2.9.9.3
7     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 slords 1.6 Patch0: dansguardian-clamav-0.93_build_fix.diff
14 slords 1.1 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15 slords 1.3 BuildRequires: gcc-c++ zlib-devel clamav-devel bzip2-devel gmp-devel
16 slords 1.1 Requires: squid clamav
17     #clamav-lib
18    
19     %description
20     DansGuardian is a web content filtering proxy that uses Squid to do all
21     the fetching. It filters using multiple methods. These methods include
22     URL and domain filtering, content phrase filtering, PICS filtering,
23     MIME filtering, file extension filtering, POST limiting.
24    
25     %prep
26     %setup -q
27 slords 1.6 %patch0
28    
29 slords 1.1 %build
30     %configure --datadir=/etc \
31     --enable-clamd \
32     --enable-clamav \
33     --enable-icap \
34     --enable-ntlm \
35     --enable-trickledm \
36     --enable-fancydm \
37     --enable-email \
38     --enable-pcre=no \
39     --with-logdir=/var/log/dansguardian \
40     --with-proxyuser=clamav \
41     --with-proxygroup=clamav \
42     --with-piddir=/var/run
43     make
44    
45     %install
46     rm -rf $RPM_BUILD_ROOT
47    
48     make DESTDIR=$RPM_BUILD_ROOT install
49     mkdir -p $RPM_BUILD_ROOT/etc/init.d/
50     mkdir -p $RPM_BUILD_ROOT/usr/share/dansguardian
51     touch $RPM_BUILD_ROOT/etc/dansguardian/lists/exceptionfileurllist
52     cp $RPM_BUILD_ROOT/etc/dansguardian/scripts/systemv-init $RPM_BUILD_ROOT/etc/init.d/dansguardian
53 slords 1.7 rm -rf $RPM_BUILD_ROOT/usr/share/doc/dansguardian
54 slords 1.1
55     %clean
56     rm -rf $RPM_BUILD_ROOT
57    
58     %pre
59    
60     %post
61     %preun
62     if [ $1 = 0 ]; then
63     /sbin/service %{name} stop 2>/dev/null 1>/dev/null
64     fi
65    
66     %files
67     %defattr(-,root,root)
68     %doc README NEWS ChangeLog AUTHORS COPYING
69     %doc doc/AuthPlugins doc/ContentScanners doc/DownloadManagers doc/FAQ doc/FAQ.html doc/Plugins
70     %attr(0755,root,root) %dir /etc/dansguardian
71     %attr(0644,root,root) %config(noreplace) /etc/dansguardian/*
72     %attr(0755,root,root) /etc/init.d/dansguardian
73     %attr(0755,clamav,nobody) %dir /var/log/dansguardian
74     %attr(0755,root,root) %{_sbindir}/*
75     %attr(0644,root,root) %{_mandir}/*/*
76     %{_datadir}/%{name}/
77    
78     %changelog
79 slords 1.6 * Sat Apr 19 2008 Shad L. Lords <slords@mail.com> 2.9.9.3-1
80     - Upstream Release 2.9.9.3
81     - Update to build against clamav 0.93
82 slords 1.5
83 slords 1.1 * Sat Dec 22 2007 Stephen Noble dungog.net
84     - Upstream Release 2.9.9.2
85    
86     * Sun Oct 28 2007 Stephen Noble dungog.net
87     - rebuild for SME Server 2.9.9.1
88    
89     * Tue Jun 19 2007 Daniel Bartz
90     - rebuild for the centos repo

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