diff options
Diffstat (limited to 'network/awstats/awstats.SlackBuild')
-rw-r--r-- | network/awstats/awstats.SlackBuild | 16 |
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 |