diff options
-rw-r--r-- | network/mod_limitipconn/README | 11 | ||||
-rw-r--r-- | network/mod_limitipconn/doinst.sh | 15 | ||||
-rw-r--r-- | network/mod_limitipconn/mod_limitipconn.SlackBuild | 78 | ||||
-rw-r--r-- | network/mod_limitipconn/mod_limitipconn.conf | 5 | ||||
-rw-r--r-- | network/mod_limitipconn/mod_limitipconn.info | 10 | ||||
-rw-r--r-- | network/mod_limitipconn/slack-desc | 19 | ||||
-rw-r--r-- | network/mod_limitipconn/test.pl | 18 |
7 files changed, 0 insertions, 156 deletions
diff --git a/network/mod_limitipconn/README b/network/mod_limitipconn/README deleted file mode 100644 index f1d418f5ed..0000000000 --- a/network/mod_limitipconn/README +++ /dev/null @@ -1,11 +0,0 @@ -mod_limitipconn is an Apache which allows web server administrators -to limit the number of simultaneous downloads permitted from a single -IP address. - -You'll need to add the following line to your /etc/httpd/httpd.conf: - Include /etc/httpd/extra/mod_limitipconn.conf - -To test the 'test.pl' utility from mod_evasive is included in the doc dir. -Which when run multiple simultainus sessions of should similate accessive -connectivity; e.g. with MaxConnPerIP set to ``1'' - while true; do (perl ./test.pl &); perl ./test.pl; done diff --git a/network/mod_limitipconn/doinst.sh b/network/mod_limitipconn/doinst.sh deleted file mode 100644 index e95f4d5c3b..0000000000 --- a/network/mod_limitipconn/doinst.sh +++ /dev/null @@ -1,15 +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... -} - -config etc/mod_limitipconn.conf.new - diff --git a/network/mod_limitipconn/mod_limitipconn.SlackBuild b/network/mod_limitipconn/mod_limitipconn.SlackBuild deleted file mode 100644 index 2ed40f3fd8..0000000000 --- a/network/mod_limitipconn/mod_limitipconn.SlackBuild +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/sh - -# Slackware build script for mod_limitipconn (an Apache limit module) - -# Written by Menno Duursma - -# This program is free software. It comes without any warranty. -# Granted WTFPL, Version 2, as published by Sam Hocevar. See -# http://sam.zoy.org/wtfpl/COPYING for more details. - -# Modified by SlackBuilds.org - -PRGNAM=mod_limitipconn -VERSION=${VERSION:-0.23} -BUILD=${BUILD:-2} -TAG=${TAG:-_SBo} - -# Automatically determine the architecture we're building on: -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) ARCH=$( uname -m ) ;; - esac -fi - -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -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 # exit on most errors - -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 . -chmod -R a-s,u+w,go+r-w . - -# Compile module as DSO (dynmically shared object) -CFLAGS="$SLACKFLAGS" apxs -ca mod_limitipconn.c - -# copy into place -install -D -m755 -s .libs/mod_limitipconn.so $PKG/usr/lib${LIBDIRSUFFIX}/httpd/modules/mod_limitipconn.so - -mkdir -p $PKG/etc/httpd/extra -sed "s%@baselibdir@%lib${LIBDIRSUFFIX}%" $CWD/mod_limitipconn.conf > \ - $PKG/etc/httpd/extra/mod_limitipconn.conf.new - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a ChangeLog INSTALL README LICENSE $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/test.pl > $PKG/usr/doc/$PRGNAM-$VERSION/test.pl -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -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/mod_limitipconn/mod_limitipconn.conf b/network/mod_limitipconn/mod_limitipconn.conf deleted file mode 100644 index 650533dfd9..0000000000 --- a/network/mod_limitipconn/mod_limitipconn.conf +++ /dev/null @@ -1,5 +0,0 @@ -# Apache config for mod_limitipconn - -LoadModule limitipconn_module @baselibdir@/httpd/modules/mod_limitipconn.so -ExtendedStatus On -MaxConnPerIP 5 diff --git a/network/mod_limitipconn/mod_limitipconn.info b/network/mod_limitipconn/mod_limitipconn.info deleted file mode 100644 index 7ffe8349cd..0000000000 --- a/network/mod_limitipconn/mod_limitipconn.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="mod_limitipconn" -VERSION="0.23" -HOMEPAGE="http://dominia.org/djao/limitipconn2.html" -DOWNLOAD="http://dominia.org/djao/limit/mod_limitipconn-0.23.tar.bz2" -MD5SUM="08885977f8e0c50659a54c8e40ddd675" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -MAINTAINER="Menno Duursma" -EMAIL="druiloor@zonnet.nl" -APPROVED="dsomero" diff --git a/network/mod_limitipconn/slack-desc b/network/mod_limitipconn/slack-desc deleted file mode 100644 index 0c235b0ff1..0000000000 --- a/network/mod_limitipconn/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 ':'. - - |-----handy-ruler------------------------------------------------------| -mod_limitipconn: mod_limitipconn (an Apache connection limit module) -mod_limitipconn: -mod_limitipconn: This module allows web server administrators to limit the number -mod_limitipconn: of simultaneous downloads permitted from a single IP address. -mod_limitipconn: -mod_limitipconn: mod_limitipconn was written by David Jao and Niklas Edmundsson. -mod_limitipconn: -mod_limitipconn: -mod_limitipconn: -mod_limitipconn: -mod_limitipconn: diff --git a/network/mod_limitipconn/test.pl b/network/mod_limitipconn/test.pl deleted file mode 100644 index dc8ca7677b..0000000000 --- a/network/mod_limitipconn/test.pl +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/perl - -# test.pl: small script to test mod_dosevasive's effectiveness - -use IO::Socket; -use strict; - -for(0..100) { - my($response); - my($SOCKET) = new IO::Socket::INET( Proto => "tcp", - PeerAddr=> "127.0.0.1:80"); - if (! defined $SOCKET) { die $!; } - print $SOCKET "GET /?$_ HTTP/1.0\n\n"; - $response = <$SOCKET>; - print $response; - close($SOCKET); -} - |