diff options
Diffstat (limited to 'network/mod_hosts_access/mod_hosts_access.SlackBuild')
-rw-r--r-- | network/mod_hosts_access/mod_hosts_access.SlackBuild | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/network/mod_hosts_access/mod_hosts_access.SlackBuild b/network/mod_hosts_access/mod_hosts_access.SlackBuild index c970f4e74f..e195a7f494 100644 --- a/network/mod_hosts_access/mod_hosts_access.SlackBuild +++ b/network/mod_hosts_access/mod_hosts_access.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for mod_hosts_access (libwrap support in Apache) -# Written by Menno E. Duursma +# Written by Menno Duursma # This program is free software. It comes without any warranty. # Granted WFTPL, Version 2, as published by Sam Hocevar. See @@ -10,15 +10,13 @@ PRGNAM=mod_hosts_access VERSION=1.1.0 -BUILD=${BUILD:-1} +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 @@ -53,27 +51,23 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R a-s,u+w,go+r-w . -# Create target dir mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/httpd/modules -# Compile module as DSO (dynmically shared object) CFLAGS="$SLACKFLAGS" apxs -ca mod_hosts_access.c -lwrap -lnsl -# copy into place cp .libs/mod_hosts_access.so $PKG/usr/lib${LIBDIRSUFFIX}/httpd/modules mkdir -p $PKG/etc/httpd -sed "s%@baselibdir@%lib${LIBDIRSUFFIX}%" $CWD/mod_hosts_access.conf > \ +sed "s%@baselibdir@%lib${LIBDIRSUFFIX}%" $CWD/config/mod_hosts_access.conf > \ $PKG/etc/httpd/mod_hosts_access.conf.new -( cd $PKG || exit 1 - find . -type f | xargs file | grep -e "executable" -e "shared object" | \ - grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -) +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 |