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

Diff of /rpms/dansguardian/contribs8/dansguardian.spec

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

Revision 1.1 by unnilennium, Fri Jun 28 12:15:33 2013 UTC Revision 1.1.2.1 by slords, Mon Jul 15 13:55:40 2013 UTC
# Line 1  Line 1 
1  # $Id: dansguardian.spec,v 1.20 2009/04/03 23:38:36 dungog Exp $  # $Id$
2  # Authority: dungog  # Authority: dag
3  # Name: Stephen Noble  # Upstream: Daniel Barron <author$dansguardian,org>
4    
5    %define real_name DansGuardian
6    
7    Summary: Content filtering web proxy
8  Name: dansguardian  Name: dansguardian
9  Version: 2.10.0.3  Version: 2.10.1.1
10  Release: 4%{?dist}  Release: 1%{?dist}
11  Summary: Content filter  License: GPLv2+
12  License: GNU GPL version 2  Group: System Environment/Daemons
13  Url: http://www.dansguardian.org  URL: http://www.dansguardian.org/
14  Group: System/Servers  
15  Source0: %name-%version.tar.gz  Packager: Dag Wieers <dag@wieers.com>
16  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)  Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
17  BuildRequires: gcc-c++ zlib-devel clamav-devel bzip2-devel gmp-devel pkgconfig  
18  Requires: squid clamav  Source0: http://dansguardian.org/downloads/2/Stable/%{name}-%{version}.tar.gz
19  #clamav-lib  Source1: dansguardian.init
20    Source2: dansguardian.httpd
21    Source3: dansguardian.logrotate
22    
23    # Fixes some compilation errors with gcc 4.4
24    Patch1: dansguardian-gcc44.patch
25    
26    BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
27    
28    BuildRequires: gcc-c++
29    BuildRequires: pcre-devel
30    BuildRequires: zlib-devel
31    BuildRequires: pkgconfig
32    BuildRequires: which
33    
34    Requires(pre):   shadow-utils
35    Requires(post):  chkconfig
36    Requires(preun): chkconfig
37    Requires(preun): initscripts
38    
39  %description  %description
40  DansGuardian is a web content filtering proxy that uses Squid to do all  DansGuardian is a web filtering engine that checks the content within
41  the fetching. It filters using multiple methods. These methods include  the page itself in addition to the more traditional URL filtering.
42  URL and domain filtering, content phrase filtering, PICS filtering,  
43  MIME filtering, file extension filtering, POST limiting.  DansGuardian is a content filtering proxy. It filters using multiple methods,
44    including URL and domain filtering, content phrase filtering, PICS filtering,
45    MIME filtering, file extension filtering, POST filtering.
46    
47  %prep  %prep
48  %setup -q  %setup
49    %patch1 -p1
50    
51  %build  %build
52  %configure --datadir=/etc \  
53  --enable-clamd \  %configure \
54  --enable-icap \     --disable-clamav \
55  --enable-ntlm \     --disable-clamd \
56  --enable-trickledm \     --enable-icap \
57  --enable-fancydm \     --enable-kavd \
58  --enable-email \     --enable-commandline \
59  --enable-pcre=no \     --enable-trickledm \
60  --with-logdir=/var/log/dansguardian \     --enable-ntlm \
61  --with-proxyuser=clamav \     --enable-email \
62  --with-proxygroup=clamav \     --with-proxyuser=dansguardian \
63  --with-piddir=/var/run     --with-proxygroup=dansguardian
64  make  
65    %{__make} %{?_smp_mflags}
66    
67  %install  %install
68  rm -rf $RPM_BUILD_ROOT  %{__rm} -rf %{buildroot}
69    
70    %{__make} install DESTDIR=%{buildroot}
71    
72    install -Dpm 644 %{SOURCE3} \
73        $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
74    
75    # delete the other scripts since they are of no use for Fedora users
76    rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts
77    chmod 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}.pl
78    
79    # install init script and httpd config
80    install -Dpm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/%{name}
81    install -Dp -m0644 %{SOURCE2} \
82        $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{name}.conf
83    
84  make DESTDIR=$RPM_BUILD_ROOT install  # we'll install this later within %doc
85  mkdir -p $RPM_BUILD_ROOT/etc/init.d/  rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
86  mkdir -p $RPM_BUILD_ROOT/usr/share/dansguardian  
87  touch $RPM_BUILD_ROOT/etc/dansguardian/lists/exceptionfileurllist  # create the log dir
88  cp $RPM_BUILD_ROOT/etc/dansguardian/scripts/systemv-init $RPM_BUILD_ROOT/etc/init.d/dansguardian  install -dm 755 $RPM_BUILD_ROOT%{_localstatedir}/log/%{name}
 rm -rf $RPM_BUILD_ROOT/usr/share/doc/dansguardian  
89    
90  %clean  %clean
91  rm -rf $RPM_BUILD_ROOT  %{__rm} -rf %{buildroot}
92    
93  %pre  %pre
94    getent group %{name} >/dev/null || groupadd -r %{name}
95    getent passwd %{name} >/dev/null || \
96    useradd -r -g %{name} -d %{_datadir}/%{name} -s /sbin/nologin \
97       -c "DansGuardian web content filter" %{name}
98    exit 0
99    
100  %post  %post
101    if [ $1 -eq 1 ]; then
102        /sbin/chkconfig --add %{name}
103    fi
104    
105  %preun  %preun
106  if [ $1 = 0 ]; then  if [ $1 -eq 0 ]; then
107   /sbin/service %{name} stop 2>/dev/null 1>/dev/null      /sbin/service %{name} stop >/dev/null 2>&1
108        /sbin/chkconfig --del %{name}
109  fi  fi
110    
111  %files  %postun
112  %defattr(-,root,root)  if [ $1 -ge 1 ] ; then
113  %doc README NEWS ChangeLog AUTHORS COPYING      /sbin/service %{name} condrestart >/dev/null 2>&1 || :
114  %doc doc/AuthPlugins doc/ContentScanners doc/DownloadManagers doc/FAQ doc/FAQ.html doc/Plugins  fi
 %attr(0755,root,root) %dir /etc/dansguardian  
 %attr(0644,root,root) %config(noreplace) /etc/dansguardian/*  
 %attr(0755,root,root) /etc/init.d/dansguardian  
 %attr(0755,clamav,nobody) %dir /var/log/dansguardian  
 %attr(0755,root,root) %{_sbindir}/*  
 %attr(0644,root,root) %{_mandir}/*/*  
 %{_datadir}/%{name}/  
115    
116  %changelog  %files
117  * Sat Apr 4 2009 Stephen Noble <support@dungog.net> 2.10.0.3-4.sme  %defattr(-, root, root, 0755)
118  - build without "--enable-clamav" we use clamd  %doc COPYING INSTALL README UPGRADING
119    %doc doc/AuthPlugins doc/ContentScanners doc/DownloadManagers doc/FAQ
120    %doc doc/FAQ.html doc/Plugins
121    %doc %{_mandir}/man8/%{name}.8.gz
122    %{_sbindir}/%{name}
123    %attr(-,%{name},%{name}) %{_datadir}/%{name}
124    %{_initrddir}/%{name}
125    %dir %{_sysconfdir}/%{name}
126    %config(noreplace) %{_sysconfdir}/%{name}/%{name}*.conf
127    %dir %{_sysconfdir}/%{name}/authplugins
128    %config(noreplace) %{_sysconfdir}/%{name}/authplugins/*
129    %dir %{_sysconfdir}/%{name}/contentscanners
130    %config(noreplace) %{_sysconfdir}/%{name}/contentscanners/*
131    %dir %{_sysconfdir}/%{name}/downloadmanagers
132    %config(noreplace) %{_sysconfdir}/%{name}/downloadmanagers/*
133    %dir %{_sysconfdir}/%{name}/lists
134    %config(noreplace) %{_sysconfdir}/%{name}/lists/*
135    %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
136    %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
137    
138  * Sat Apr 4 2009 Stephen Noble <support@dungog.net> 2.10.0.3-3.sme  %defattr(644, %{name}, %{name}, 755)
139  - Upstream Release 2.10.0.3      %dir %{_localstatedir}/log/%{name}
 - Update to build against clamav 0.95    
140    
141  * Fri Dec 12 2008 Stephen Noble <support@dungog.net> 2.10.0.2-1.sme  %changelog
142  - Conflicts dungog-dansguardian < 2.9  * Thu Jul 14 2011 Yury V. Zaytsev <yury@shurup.com> - 2.10.1.1-1
143  - Upstream Release 2.10.0.2        - Synced the SPEC with Fedora Rawhide where appropriate.
144    - Updated to release 2.10.1.1.
145    
146  * Thu Oct 9 2008 Shad L. Lords <slords@mail.com> 2.10-1.sme  * Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 2.8.0.6-1.2
147  - Upstream Release 2.10  - Rebuild for Fedora Core 5.
148    
149  * Fri Sep 5 2008 Shad L. Lords <slords@mail.com> 2.9.9.7-1  * Mon Aug 15 2005 Dries Verachtert <dries@ulyssis.org> - 2.8.0.6-1
150  - Upstream Release 2.9.9.7  - Updated to release 2.8.0.6.
 - Update to build against clamav 0.94  
151    
152  * Sat May 6 2008 Shad L. Lords <slords@mail.com> 2.9.9.4-1  * Thu Mar 31 2005 Dag Wieers <dag@wieers.com> - 2.8.0.4-1
153  - Upstream Release 2.9.9.4  - Updated to release 2.8.0.4.
154    
155  * Sat Apr 19 2008 Shad L. Lords <slords@mail.com> 2.9.9.3-1  * Fri Jul 30 2004 Dag Wieers <dag@wieers.com> - 2.8.0.2-1
156  - Upstream Release 2.9.9.3  - Updated to release 2.8.0.2.
 - Update to build against clamav 0.93  
157    
158  * Sat Dec 22 2007 Stephen Noble dungog.net  * Wed Jul 21 2004 Dag Wieers <dag@wieers.com> - 2.8.0-1
159  - Upstream Release 2.9.9.2  - Updated to release 2.8.0-0.
160    
161  * Sun Oct 28 2007 Stephen Noble dungog.net  * Thu Apr 15 2004 Dag Wieers <dag@wieers.com> - 2.6.1.13-1
162  - rebuild for SME Server 2.9.9.1  - Updated to release 2.6.1-13.
163    
164  * Tue Jun 19 2007 Daniel Bartz  * Fri Mar 26 2004 Dag Wieers <dag@wieers.com> - 2.6.1.12-1
165  - rebuild for the centos repo  - Initial package. (using DAR)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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