diff options
author | Max Miorim <miorimmax@gmail.com> | 2010-08-14 13:36:12 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-08-14 19:04:51 -0500 |
commit | 1d255a2e6464b23b04f01f104383b13853c792b2 (patch) | |
tree | 8ea6c72db89561a3e02c01a06166f7ac2d0c6379 /network/nginx/nginx.SlackBuild | |
parent | 49d1cc42e237f318b192cdc26c1074124cc92150 (diff) | |
download | slackbuilds-1d255a2e6464b23b04f01f104383b13853c792b2.tar.gz |
network/nginx: Updated for version 0.7.67.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network/nginx/nginx.SlackBuild')
-rw-r--r-- | network/nginx/nginx.SlackBuild | 19 |
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 |