diff options
Diffstat (limited to 'network/suphp/suphp.SlackBuild')
-rw-r--r-- | network/suphp/suphp.SlackBuild | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/network/suphp/suphp.SlackBuild b/network/suphp/suphp.SlackBuild index e2072d42b2..0fb2b13fb9 100644 --- a/network/suphp/suphp.SlackBuild +++ b/network/suphp/suphp.SlackBuild @@ -12,17 +12,17 @@ VERSION=0.6.2 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp # The stock Apache on Slackware runs httpd onder system -# user/group account 'nobody'. If you happen to use some +# user/group account 'apache'. If you happen to use some # other account (which should improve security) change below # and make sure /etc/apache/suphp.conf matches -HTTPD_USER=nobody -HTTPD_GROUP=nobody +HTTPD_USER=apache +HTTPD_GROUP=apache if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" @@ -50,7 +50,7 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --with-apr=/usr/bin/apr-1-config \ --with-apxs=/usr/sbin/apxs \ - --sysconfdir=/etc/apache \ + --sysconfdir=/etc/httpd \ --with-apache-user=$HTTPD_USER \ --with-logfile=/var/log/apache/suphp_log @@ -69,10 +69,10 @@ cp -a AUTHORS COPYING ChangeLog doc/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # Add a sample configuration file -mkdir -p $PKG/etc/apache +mkdir -p $PKG/etc/httpd cat $CWD/suphp.conf \ - | tr 'webserver_user=nobody' "webserver_user=$HTTPD_USER" \ - >> $PKG/etc/apache/suphp.conf.new + | tr 'webserver_user=apache' "webserver_user=$HTTPD_USER" \ + >> $PKG/etc/httpd/suphp.conf.new # Copy the slack-desc (and a custom doinst.sh if necessary) into ./install mkdir -p $PKG/install |