Summary: A content filtering web proxy. Name: DansGuardian Version: 2.4.3 Release: 2 Copyright: Daniel Barron - GPL Group: System Environment/Daemons Source: http://dansguardian.org/ BuildRoot: /var/tmp/%{name}-buildroot %description DansGuardian is a filtering proxy for Linux, FreeBSD, OpenBSD and Solaris. It filters using multiple methods. These methods include URL and domain filtering, content phrase filtering, PICS filtering, MIME filtering, file extension filtering, POST filtering. The content phrase filtering will check for pages that contain profanities and phrases often associated with pornography and other undesirable content. The POST filtering allows you to block or limit web upload. The URL and domain filtering is able to handle huge lists and is significantly faster than squidGuard. The filtering has configurable domain, user and ip exception lists. SSL Tunneling is supported. %prep cd DansGuardian-2.4.3 make clean %build cd DansGuardian-2.4.3 make %install cd DansGuardian-2.4.3 rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/sbin mkdir -p $RPM_BUILD_ROOT/usr/man/man8 mkdir -p $RPM_BUILD_ROOT/etc/dansguardian mkdir -p $RPM_BUILD_ROOT/var/log/dansguardian mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d mkdir -p $RPM_BUILD_ROOT/home/httpd/cgi-bin install dansguardian $RPM_BUILD_ROOT/usr/sbin/dansguardian install dansguardian.conf $RPM_BUILD_ROOT/etc/dansguardian/dansguardian.conf install bannedphraselist $RPM_BUILD_ROOT/etc/dansguardian/bannedphraselist install exceptionphraselist $RPM_BUILD_ROOT/etc/dansguardian/exceptionphraselist install weightedphraselist $RPM_BUILD_ROOT/etc/dansguardian/weightedphraselist install weightedphraselist.pornwords $RPM_BUILD_ROOT/etc/dansguardian/weightedphraselist.pornwords install weightedphraselist.pornsites $RPM_BUILD_ROOT/etc/dansguardian/weightedphraselist.pornsites install weightedphraselist.personals $RPM_BUILD_ROOT/etc/dansguardian/weightedphraselist.personals install weightedphraselist.warez $RPM_BUILD_ROOT/etc/dansguardian/weightedphraselist.warez install weightedphraselist.goodwords $RPM_BUILD_ROOT/etc/dansguardian/weightedphraselist.goodwords install bannedextensionlist $RPM_BUILD_ROOT/etc/dansguardian/bannedextensionlist install bannedmimetypelist $RPM_BUILD_ROOT/etc/dansguardian/bannedmimetypelist install bannedsitelist $RPM_BUILD_ROOT/etc/dansguardian/bannedsitelist install bannedurllist $RPM_BUILD_ROOT/etc/dansguardian/bannedurllist install bannediplist $RPM_BUILD_ROOT/etc/dansguardian/bannediplist install banneduserlist $RPM_BUILD_ROOT/etc/dansguardian/banneduserlist install bannedregexpurllist $RPM_BUILD_ROOT/etc/dansguardian/bannedregexpurllist install exceptionsitelist $RPM_BUILD_ROOT/etc/dansguardian/exceptionsitelist install exceptionurllist $RPM_BUILD_ROOT/etc/dansguardian/exceptionurllist install exceptionuserlist $RPM_BUILD_ROOT/etc/dansguardian/exceptionuserlist install exceptioniplist $RPM_BUILD_ROOT/etc/dansguardian/exceptioniplist install pics $RPM_BUILD_ROOT/etc/dansguardian/pics install template.html $RPM_BUILD_ROOT/etc/dansguardian/template.html install logrotation $RPM_BUILD_ROOT/etc/dansguardian/logrotation install dansguardian.sysv $RPM_BUILD_ROOT/etc/rc.d/init.d/dansguardian install dansguardian.pl $RPM_BUILD_ROOT/home/httpd/cgi-bin/dansguardian.pl install -m 644 dansguardian.8.gz $RPM_BUILD_ROOT/usr/man/man8/dansguardian.8.gz %post touch $RPM_BUILD_ROOT/var/log/dansguardian/access.log chmod o+x $RPM_BUILD_ROOT/home/httpd/cgi-bin/dansguardian.pl chown -R nobody.nobody $RPM_BUILD_ROOT/var/log/dansguardian chmod -R u+rw $RPM_BUILD_ROOT/var/log/dansguardian chmod u+rwx $RPM_BUILD_ROOT/var/log/dansguardian chkconfig --add dansguardian echo -e " Be sure to change your /etc/dansguardian/dansguardian.conf to reflect your own settings. Special attention must be given to the port that squid listens on, the port that dansguardian will listen to and to the web url to the dansguardian.pl cgi-script. Built by: Daniel Barron daniel@jadeb.com " %clean rm -rf $RPM_BUILD_ROOT %files %defattr(0644,root,root) %doc ./DansGuardian-2.4.3/README %doc ./DansGuardian-2.4.3/INSTALL %doc ./DansGuardian-2.4.3/LICENSE %defattr(0600,root,root) /etc/dansguardian/dansguardian.conf /etc/dansguardian/weightedphraselist /etc/dansguardian/weightedphraselist.goodwords /etc/dansguardian/weightedphraselist.pornsites /etc/dansguardian/weightedphraselist.pornwords /etc/dansguardian/weightedphraselist.personals /etc/dansguardian/weightedphraselist.warez /etc/dansguardian/bannedphraselist /etc/dansguardian/bannedsitelist /etc/dansguardian/bannedurllist /etc/dansguardian/bannediplist /etc/dansguardian/banneduserlist /etc/dansguardian/bannedregexpurllist /etc/dansguardian/bannedextensionlist /etc/dansguardian/bannedmimetypelist /etc/dansguardian/exceptionphraselist /etc/dansguardian/exceptionsitelist /etc/dansguardian/exceptionurllist /etc/dansguardian/exceptionuserlist /etc/dansguardian/exceptioniplist /etc/dansguardian/pics /etc/dansguardian/template.html %defattr(755,root,root) /usr/sbin/dansguardian /etc/dansguardian/logrotation /etc/rc.d/init.d/dansguardian /home/httpd/cgi-bin/dansguardian.pl %defattr(0744,nobody,nobody) /var/log/dansguardian/