aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/nginx/nginx.SlackBuild5
-rw-r--r--network/nginx/nginx.info2
-rw-r--r--network/nginx/nginx.logrotate1
3 files changed, 5 insertions, 3 deletions
diff --git a/network/nginx/nginx.SlackBuild b/network/nginx/nginx.SlackBuild
index e6aff9516a2a8..44295d5ba9b61 100644
--- a/network/nginx/nginx.SlackBuild
+++ b/network/nginx/nginx.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=nginx
VERSION=${VERSION:-1.2.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -127,7 +127,8 @@ mkdir -p $PKG/etc/rc.d
cat $CWD/rc.nginx > $PKG/etc/rc.d/rc.nginx.new
mkdir -p $PKG/etc/logrotate.d
-cat $CWD/nginx.logrotate > $PKG/etc/logrotate.d/nginx.new
+sed -e "s,@USER@,$NGINXUSER," -e "s,@GROUP@,$NGINXGROUP," $CWD/nginx.logrotate \
+ > $PKG/etc/logrotate.d/nginx.new
# Don't clobber config files
for file in fastcgi_params fastcgi.conf mime.types nginx.conf \
diff --git a/network/nginx/nginx.info b/network/nginx/nginx.info
index e9af6c5c568b9..e8f3b6cd70523 100644
--- a/network/nginx/nginx.info
+++ b/network/nginx/nginx.info
@@ -5,6 +5,6 @@ DOWNLOAD="http://nginx.org/download/nginx-1.2.2.tar.gz"
MD5SUM="53105bbe3ac9319db54d9eb46119695b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="%README%"
MAINTAINER="Francisco Ambrozio"
EMAIL="developer@franciscoambrozio.com"
diff --git a/network/nginx/nginx.logrotate b/network/nginx/nginx.logrotate
index d4eb96a935d1b..626cebddba20e 100644
--- a/network/nginx/nginx.logrotate
+++ b/network/nginx/nginx.logrotate
@@ -1,4 +1,5 @@
/var/log/nginx/*.log {
+ su @USER@ @GROUP@
rotate 10
notifempty
size=5M