From ac83bafacda659e2017faefcc1f5a67b31292342 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Mon, 14 Mar 2011 17:10:17 -0500 Subject: network/mod_hosts_access: Removed (unmaintained) Reference: http://lists.slackbuilds.org/pipermail/slackbuilds-users/2010-October/006570.html Signed-off-by: Heinz Wiesinger Signed-off-by: Robby Workman --- network/mod_hosts_access/README | 6 -- network/mod_hosts_access/README.SLACKWARE | 33 ---------- .../mod_hosts_access/config/mod_hosts_access.conf | 17 ----- network/mod_hosts_access/doinst.sh | 14 ---- .../mod_hosts_access/mod_hosts_access.SlackBuild | 77 ---------------------- network/mod_hosts_access/mod_hosts_access.info | 10 --- network/mod_hosts_access/slack-desc | 19 ------ 7 files changed, 176 deletions(-) delete mode 100644 network/mod_hosts_access/README delete mode 100644 network/mod_hosts_access/README.SLACKWARE delete mode 100644 network/mod_hosts_access/config/mod_hosts_access.conf delete mode 100644 network/mod_hosts_access/doinst.sh delete mode 100644 network/mod_hosts_access/mod_hosts_access.SlackBuild delete mode 100644 network/mod_hosts_access/mod_hosts_access.info delete mode 100644 network/mod_hosts_access/slack-desc diff --git a/network/mod_hosts_access/README b/network/mod_hosts_access/README deleted file mode 100644 index 662c1acc4350c..0000000000000 --- a/network/mod_hosts_access/README +++ /dev/null @@ -1,6 +0,0 @@ -mod_hosts_access - -This is a DSO (dynamically shared object) module for the Apache webserver -that uses libwrap (TCP Wrappers) to check if the connecting hosts is allowed. - -See also: README.SLACKWARE diff --git a/network/mod_hosts_access/README.SLACKWARE b/network/mod_hosts_access/README.SLACKWARE deleted file mode 100644 index ca0e265afe4e1..0000000000000 --- a/network/mod_hosts_access/README.SLACKWARE +++ /dev/null @@ -1,33 +0,0 @@ -This system works well with dynamic blocking scripts, such as DenyHosts, and -configfile distribution systems, such as Cfengine. Especially if other blocking -methods differ between hosts at a site (e.g. kernel-level firewalling means). - -You'll need to add the following line to /etc/httpd/httpd.conf: - Include /etc/httpd/extra/mod_hosts_access.conf - -LoadModule hosts_access_module lib/httpd/modules/mod_hosts_access.so - -The /etc/hosts.{allow,deny} access control checking for the "httpd" service -can now be enabled or disabled on a per directory basis, by adding HostsAccess -directive to its declaration, e.g. again in /etc/httpd/httpd.conf: - -# First, we configure the "default" to be a very restrictive set of -# permissions. -# -# -# HostsAccess On -# Options FollowSymLinks -# AllowOverride None -# - -To test, restart apache for it to load the module; edit /etc/hosts.allow -adding a line like the following: - -httpd: localhost: deny - -Access from 'localhost' (127.0.0.1) should now be disallowed, thus requesting -the index page should fail, to verify try: - - lynx -dump localhost - -The same can be done in a .htaccess file if AllowOverride Limit has been set. diff --git a/network/mod_hosts_access/config/mod_hosts_access.conf b/network/mod_hosts_access/config/mod_hosts_access.conf deleted file mode 100644 index da8e6b3a7608e..0000000000000 --- a/network/mod_hosts_access/config/mod_hosts_access.conf +++ /dev/null @@ -1,17 +0,0 @@ -# Apache config for mod_hosts_access - -LoadModule hosts_access_module @baselibdir@/httpd/modules/mod_hosts_access.so - - - HostsAccess On - Options FollowSymLinks - AllowOverride None - - -# To test, restart apache for it to load the module; edit /etc/hosts.allow -# adding a line like the following: -# httpd: localhost: deny -# Access from 'localhost' (127.0.0.1) should now be disallowed, thus requesting -# the index page should fail, to verify try: -# lynx -dump localhost -# The same can be done in a .htaccess file if AllowOverride Limit has been set. diff --git a/network/mod_hosts_access/doinst.sh b/network/mod_hosts_access/doinst.sh deleted file mode 100644 index ea1b3e0ca459c..0000000000000 --- a/network/mod_hosts_access/doinst.sh +++ /dev/null @@ -1,14 +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/httpd/mod_hosts_access.conf.new diff --git a/network/mod_hosts_access/mod_hosts_access.SlackBuild b/network/mod_hosts_access/mod_hosts_access.SlackBuild deleted file mode 100644 index 2a1d21c1ac022..0000000000000 --- a/network/mod_hosts_access/mod_hosts_access.SlackBuild +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/sh - -# Slackware build script for mod_hosts_access (libwrap support in Apache) - -# Written by Menno Duursma - -# This program is free software. It comes without any warranty. -# Granted WFTPL, Version 2, as published by Sam Hocevar. See -# http://sam.zoy.org/wtfpl/COPYING for more details. - -PRGNAM=mod_hosts_access -VERSION=1.1.0 -BUILD=${BUILD:-3} -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 [ "$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.gz || exit 1 -cd $PRGNAM-$VERSION -chown -R root:root . -chmod -R a-s,u+w,go+r-w . - -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/httpd/modules - -CFLAGS="$SLACKFLAGS" apxs -ca mod_hosts_access.c -lwrap -lnsl - -cp .libs/mod_hosts_access.so $PKG/usr/lib${LIBDIRSUFFIX}/httpd/modules - -mkdir -p $PKG/etc/httpd/extra -sed "s%@baselibdir@%lib${LIBDIRSUFFIX}%" $CWD/config/mod_hosts_access.conf > \ - $PKG/etc/httpd/extra/mod_hosts_access.conf.new - -find $PKG -type f | xargs file | grep -e "executable" -e "shared object" | \ - grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a [A-Z]* $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE - -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_hosts_access/mod_hosts_access.info b/network/mod_hosts_access/mod_hosts_access.info deleted file mode 100644 index 32895ed1ad3f1..0000000000000 --- a/network/mod_hosts_access/mod_hosts_access.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="mod_hosts_access" -VERSION="1.1.0" -HOMEPAGE="http://www.klomp.org/mod_hosts_access/" -DOWNLOAD="http://downloads.sourceforge.net/httpd-garage/mod_hosts_access-1.1.0.tar.gz" -MD5SUM="2e4fd22e778c8d98d433344a46421eb7" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -MAINTAINER="Menno Duursma" -EMAIL="druiloor@zonnet.nl" -APPROVED="Erik Hanson" diff --git a/network/mod_hosts_access/slack-desc b/network/mod_hosts_access/slack-desc deleted file mode 100644 index 33a0d81cb330f..0000000000000 --- a/network/mod_hosts_access/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_hosts_access: mod_hosts_access (Apache hosts ACL module) -mod_hosts_access: -mod_hosts_access: This module provides httpd support for Wietse Venema's TCP Wrappers -mod_hosts_access: (libwrap) hosts-based access control system. -mod_hosts_access: -mod_hosts_access: mod_hosts_access is developed by Vincent Partington and Ken Coar. -mod_hosts_access: -mod_hosts_access: Please see the README for instructions no how to enable it. -mod_hosts_access: -mod_hosts_access: -mod_hosts_access: -- cgit v1.2.3