mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
network/mod_hosts_access: Install config file in /etc/httpd/extra
(instead of toplevel /etc/httpd/ directory) Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
4d670e05e7
commit
6b4254d411
2 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ 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/mod_hosts_access.conf
|
||||
Include /etc/httpd/extra/mod_hosts_access.conf
|
||||
|
||||
LoadModule hosts_access_module lib/httpd/modules/mod_hosts_access.so
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
PRGNAM=mod_hosts_access
|
||||
VERSION=1.1.0
|
||||
BUILD=${BUILD:-2}
|
||||
BUILD=${BUILD:-3}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -57,9 +57,9 @@ 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
|
||||
mkdir -p $PKG/etc/httpd/extra
|
||||
sed "s%@baselibdir@%lib${LIBDIRSUFFIX}%" $CWD/config/mod_hosts_access.conf > \
|
||||
$PKG/etc/httpd/mod_hosts_access.conf.new
|
||||
$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
|
||||
|
|
Loading…
Reference in a new issue