From 1d255a2e6464b23b04f01f104383b13853c792b2 Mon Sep 17 00:00:00 2001 From: Max Miorim Date: Sat, 14 Aug 2010 13:36:12 -0500 Subject: network/nginx: Updated for version 0.7.67. Signed-off-by: Erik Hanson --- network/nginx/nginx.SlackBuild | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'network/nginx/nginx.SlackBuild') diff --git a/network/nginx/nginx.SlackBuild b/network/nginx/nginx.SlackBuild index 397a0d2bc20c..3b0a99250fad 100644 --- a/network/nginx/nginx.SlackBuild +++ b/network/nginx/nginx.SlackBuild @@ -25,16 +25,14 @@ # Modified by Max Miorim 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 -- cgit v1.2.3