summaryrefslogtreecommitdiff
path: root/network/nginx/nginx.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/nginx/nginx.SlackBuild')
-rw-r--r--network/nginx/nginx.SlackBuild19
1 files changed, 13 insertions, 6 deletions
diff --git a/network/nginx/nginx.SlackBuild b/network/nginx/nginx.SlackBuild
index 397a0d2bc2..3b0a99250f 100644
--- a/network/nginx/nginx.SlackBuild
+++ b/network/nginx/nginx.SlackBuild
@@ -25,16 +25,14 @@
# Modified by Max Miorim <miorimmax@gmail.com>
PRGNAM=nginx
-VERSION=${VERSION:-0.7.65}
+VERSION=${VERSION:-0.7.67}
BUILD=${BUILD:-1}
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
@@ -76,7 +74,7 @@ find . \
-exec chmod 644 {} \;
# patch to install the perl man pages in /usr/man/man3
-patch -p1 --verbose < $CWD/0.7.65-fix_perl_man_path.patch
+patch -p1 --verbose < $CWD/0.7.67-fix_perl_man_path.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -111,9 +109,9 @@ CXXFLAGS="$SLKCFLAGS" \
--http-fastcgi-temp-path=/dev/shm \
--without-mail_pop3_module \
--without-mail_imap_module \
- --without-mail_smtp_module
+ --without-mail_smtp_module
-make
+make
make install DESTDIR=$PKG
find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
@@ -145,6 +143,15 @@ cat $CWD/nginx.SlackBuild > $PKG/usr/doc/nginx-$VERSION/nginx.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat << EOF >> $PKG/install/doinst.sh
+
+# Create the log dir and set the permissions
+if [ ! -d /var/log/nginx ]; then
+ mkdir -p /var/log/nginx
+ chown $NGINXUSER:$NGINXGROUP /var/log/nginx
+ chmod 750 /var/log/nginx
+fi
+EOF
# Let's not clobber config files on upgrade
( cd $PKG/etc/nginx