summaryrefslogtreecommitdiff
path: root/network/awstats/awstats.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2013-11-07 23:56:46 -0600
committerRobby Workman <rworkman@slackbuilds.org>2013-11-09 01:34:40 -0600
commitbfaee0c4df297c18275250c13a9d1af34905bc22 (patch)
tree7a502fb57e5ebe12124fe8516d36fabc5e4c1cd8 /network/awstats/awstats.SlackBuild
parent3759ff810432a320072f01de76295be605161108 (diff)
downloadslackbuilds-bfaee0c4df297c18275250c13a9d1af34905bc22.tar.gz
network/awstats: Updated for version 7.2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/awstats/awstats.SlackBuild')
-rw-r--r--network/awstats/awstats.SlackBuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/network/awstats/awstats.SlackBuild b/network/awstats/awstats.SlackBuild
index 9403c14d53..e3bcc8274c 100644
--- a/network/awstats/awstats.SlackBuild
+++ b/network/awstats/awstats.SlackBuild
@@ -3,7 +3,7 @@
# Slackware Package Build Script for awstats
# Home Page http://awstats.sourceforge.net/
-# Copyright (c) 2009-2011, Nishant Limbachia, Hoffman Estates, IL, USA
+# Copyright (c) 2009-2013, Nishant Limbachia, Hoffman Estates, IL, USA
# <nishant _AT_ mnspace _DOT_ net>
# All rights reserved.
#
@@ -27,10 +27,9 @@
# Modified by the SlackBuilds.org project.
-PRGNAM=awstats
-VERSION=${VERSION:-7.0}
-# hardcode ARCH
-ARCH=noarch
+PRGNAM="awstats"
+VERSION=${VERSION:-7.2}
+ARCH=noarch # hardcode ARCH
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,7 +68,9 @@ mkdir -p $PKG/etc/awstats $PKG/etc/httpd/extra
mkdir -m 0770 -p $PKG/var/lib/awstats
cp -a README.TXT docs/* $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a tools wwwroot $PKG/$DOCROOT/awstats
+cp -a tools/nginx/awstats-fcgi.php \
+ tools/nginx/awstats-nginx.conf $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a tools/*.pl wwwroot $PKG/$DOCROOT/awstats
install -m 0644 -D wwwroot/cgi-bin/awstats.model.conf $PKG/etc/awstats/awstats.model.conf.new
cat tools/httpd_conf >> $PKG/etc/httpd/extra/httpd-awstats.conf.new
@@ -80,6 +81,9 @@ ln -sf ${DOCROOT}/awstats/wwwroot/cgi-bin/awstats.pl $PKG/usr/bin/awstats.pl
# Change ownership and perms
chown -R $AWUSER:$AWGROUP $PKG/$DOCROOT/$PRGNAM $PKG/var/lib/awstats
+find $PKG/$(echo ${DOCROOT} | sed 's|/||')/$PRGNAM -type f -perm 0755 -exec chmod 0750 '{}' \;
+find $PKG/$(echo ${DOCROOT} | sed 's|/||')/$PRGNAM -type d -perm 0755 -perm 0700 -exec chmod 0750 {} \;
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh