diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-10-06 21:58:56 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-10-07 07:01:59 +0700 |
commit | 3370eb047d5837424b83e2a62de7865a5e21999e (patch) | |
tree | a8effb636b15fde7443c191d07763b48e0e09713 /network | |
parent | bd3e91f669d8d35b37b6228859b534ce2f58b979 (diff) | |
download | slackbuilds-3370eb047d5837424b83e2a62de7865a5e21999e.tar.gz |
network/dansguardian: Removed (Use e2guardian instead).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/dansguardian/README | 11 | ||||
-rw-r--r-- | network/dansguardian/dansguardian.SlackBuild | 138 | ||||
-rw-r--r-- | network/dansguardian/dansguardian.info | 10 | ||||
-rw-r--r-- | network/dansguardian/dg.maxuploadsize.patch | 36 | ||||
-rw-r--r-- | network/dansguardian/doinst.sh | 31 | ||||
-rw-r--r-- | network/dansguardian/slack-desc | 19 |
6 files changed, 0 insertions, 245 deletions
diff --git a/network/dansguardian/README b/network/dansguardian/README deleted file mode 100644 index 7c925b8ba2..0000000000 --- a/network/dansguardian/README +++ /dev/null @@ -1,11 +0,0 @@ -DansGuardian is a web content filter. It filters the actual -content of pages based on many methods including phrase matching, -PICS filtering and URL filtering. It does not purely filter -based on a banned list of sites like lesser totally commercial -filters. DansGuardian is designed to be completely flexible and -allows you to tailor the filtering to your exact needs. - -Thanks to Eric Hameleers for the use of his own version of this build. - -This requires a proxy server so squid is a recommended -optional dependency. diff --git a/network/dansguardian/dansguardian.SlackBuild b/network/dansguardian/dansguardian.SlackBuild deleted file mode 100644 index 30251ada83..0000000000 --- a/network/dansguardian/dansguardian.SlackBuild +++ /dev/null @@ -1,138 +0,0 @@ -#!/bin/sh - -# Slackware build script for dansguardian -# http://dansguardian.org -# -# Copyright 2006-2013 David Somero (dsomero@hotmail.com) Athens,TN USA -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -PRGNAM=dansguardian -VERSION=${VERSION:-2.12.0.3} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -# If these user accounts do not exist on the target system, you will have -# to create them before you install the resulting package! -PROXY_USR=${PROXY_USR:-nobody} -PROXY_GRP=${PROXY_GRP:-nobody} - -if ! grep -q ^$PROXY_USR: /etc/passwd ; then - echo " You must have a $PROXY_USR user to run this script." - exit 1 -fi - -if ! grep -q ^$PROXY_GRP: /etc/group ; then - echo " You must have a $PROXY_GRP group to run this script." - exit 1 -fi - -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -# http://sourceforge.net/p/dansguardian/patches/12/ -patch -p3 < $CWD/dg.maxuploadsize.patch - -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --bindir=/usr/sbin \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --with-logdir=/var/log/dansguardian \ - --with-proxyuser=${PROXY_USR} \ - --with-proxygroup=${PROXY_GRP} \ - --with-piddir=/var/run \ - --enable-pcre \ - --enable-commandline \ - --enable-email \ - --build=${ARCH}-slackware-linux - -make -make install DESTDIR=$PKG - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/etc/{rc.d,logrotate.d} -cat $PKG/usr/share/dansguardian/scripts/systemv-init > $PKG/etc/rc.d/rc.dansguardian - -cat $PKG/usr/share/dansguardian/scripts/dansguardian \ - > $PKG/etc/logrotate.d/dansguardian -chown ${PROXY_USR}:${PROXY_GRP} $PKG/var/log/dansguardian - -# Find config files and add the .new. -for FILE in $(find $PKG/etc -type f); do mv $FILE $FILE.new; done - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/dansguardian/dansguardian.info b/network/dansguardian/dansguardian.info deleted file mode 100644 index 6e84499c70..0000000000 --- a/network/dansguardian/dansguardian.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="dansguardian" -VERSION="2.12.0.3" -HOMEPAGE="http://dansguardian.org/" -DOWNLOAD="http://downloads.sourceforge.net/project/dansguardian/dansguardian-2.12.0.3.tar.bz2" -MD5SUM="2a88d0392cd28eaec02b7ee727b2e253" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="David Somero" -EMAIL="dsomero@hotmail.com" diff --git a/network/dansguardian/dg.maxuploadsize.patch b/network/dansguardian/dg.maxuploadsize.patch deleted file mode 100644 index 80fad02296..0000000000 --- a/network/dansguardian/dg.maxuploadsize.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff -rub ../dist/dansguardian-2.12.0.3/src/FOptionContainer.cpp dansguardian-2.12.0.3/src/FOptionContainer.cpp ---- ../dist/dansguardian-2.12.0.3/src/FOptionContainer.cpp Sat Sep 29 22:06:45 2012 -+++ dansguardian-2.12.0.3/src/FOptionContainer.cpp Wed Nov 28 20:05:20 2012 -@@ -304,13 +304,6 @@ - violationbody=""; - - threshold = findoptionI("threshold"); -- // TODO: Implement a "findoptionO" and a version of -- // reality check which uses off_t, for large file support? -- max_upload_size = findoptionI("maxuploadsize"); -- if (!realitycheck(max_upload_size, -1, 0, "maxuploadsize")) { -- return false; -- } // check its a reasonable value -- max_upload_size *= 1024; - - avadmin = findoptionS("avadmin"); - if (avadmin.length()==0) { -diff -rub ../dist/dansguardian-2.12.0.3/src/OptionContainer.cpp dansguardian-2.12.0.3/src/OptionContainer.cpp ---- ../dist/dansguardian-2.12.0.3/src/OptionContainer.cpp Sat Sep 29 22:06:45 2012 -+++ dansguardian-2.12.0.3/src/OptionContainer.cpp Wed Nov 28 20:09:32 2012 -@@ -236,6 +236,15 @@ - mailer = findoptionS("mailer"); - #endif - -+ // TODO: Implement a "findoptionO" and a version of -+ // reality check which uses off_t, for large file support? -+ max_upload_size = findoptionI("maxuploadsize"); -+ if (!realitycheck(max_upload_size, -1, 0, "maxuploadsize")) { -+ return false; -+ } // check its a reasonable value -+ if (max_upload_size > 0) -+ max_upload_size *= 1024; -+ - // the dansguardian.conf and pics files get amalgamated into one - // deque. They are only seperate files for clarity. - diff --git a/network/dansguardian/doinst.sh b/network/dansguardian/doinst.sh deleted file mode 100644 index 9f153fd0d5..0000000000 --- a/network/dansguardian/doinst.sh +++ /dev/null @@ -1,31 +0,0 @@ -config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r $OLD ]; then - mv $NEW $OLD - elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then - # toss the redundant copy - rm $NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... -} - -preserve_perms() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - if [ -e $OLD ]; then - cp -a $OLD ${NEW}.incoming - cat $NEW > ${NEW}.incoming - mv ${NEW}.incoming $NEW - fi - config $NEW -} - -preserve_perms etc/rc.d/rc.dansguardian.new -preserve_perms etc/logrotate.d/dansguardian.new - -for FILE in $(find etc/dansguardian -name '*.new'); do - preserve_perms $FILE -done - diff --git a/network/dansguardian/slack-desc b/network/dansguardian/slack-desc deleted file mode 100644 index 4b503e9205..0000000000 --- a/network/dansguardian/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -dansguardian: dansguardian (web content filter) -dansguardian: -dansguardian: DansGuardian is a web content filter. It filters the actual -dansguardian: content of pages based on many methods including phrase matching, -dansguardian: PICS filtering and URL filtering. It does not purely filter -dansguardian: based on a banned list of sites like lesser totally commercial -dansguardian: filters. DansGuardian is designed to be completely flexible and -dansguardian: allows you to tailor the filtering to your exact needs. -dansguardian: -dansguardian: dansguardian home: http://dansguardian.org/ -dansguardian: |