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

Contents of /rpms/dansguardian/contribs7/dansguardian-2.9.spec

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


Revision 1.1 - (show annotations) (download)
Sat Dec 22 21:24:35 2007 UTC (16 years, 6 months ago) by slords
Branch: MAIN
Import on branch contribs7 of package dansguardian-2.9.9.1-1.src.rpm

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

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