summaryrefslogtreecommitdiffstats
path: root/network/awstats/awstats.SlackBuild
diff options
context:
space:
mode:
author B. Watson2022-04-03 19:24:00 +0200
committer B. Watson2022-04-03 19:24:00 +0200
commitb075ab0f1149ab1e624eae13bad320f3526ae791 (patch)
tree09b15a272322355a197ddb4582dbdf66ef8242e7 /network/awstats/awstats.SlackBuild
parent465cc88ffc81e8df38715d395386cd0789f3fb7c (diff)
downloadslackbuilds-b075ab0f1149ab1e624eae13bad320f3526ae791.tar.gz
network/awstats: Install SlackBuild in doc dir.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'network/awstats/awstats.SlackBuild')
-rw-r--r--network/awstats/awstats.SlackBuild8
1 files changed, 3 insertions, 5 deletions
diff --git a/network/awstats/awstats.SlackBuild b/network/awstats/awstats.SlackBuild
index fb571b1bfb..76c19e3a45 100644
--- a/network/awstats/awstats.SlackBuild
+++ b/network/awstats/awstats.SlackBuild
@@ -42,9 +42,6 @@ DOCROOT=${DOCROOT:-/var/www/htdocs}
AWUSER=${AWUSER:-root}
AWGROUP=${AWGROUP:-apache}
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -65,9 +62,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
# Patch httpd_conf file supplied by awstats to correct paths
sed s:@DOCROOT@:$DOCROOT: $CWD/patches/httpd-awstats.conf.patch | patch -p0
@@ -77,6 +74,7 @@ sed s:@DOCROOT@:$DOCROOT: $CWD/patches/awstats_configure.pl.patch | patch -p0
sed s:@DOCROOT@:$DOCROOT: $CWD/patches/awstats.pl.patch | patch -p0
mkdir -p $PKG/$DOCROOT/awstats $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/etc/awstats $PKG/etc/httpd/extra
mkdir -m 0770 -p $PKG/var/lib/awstats