summaryrefslogtreecommitdiff
path: root/package/nginx
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-07-16 14:49:26 (GMT)
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-07-16 14:49:26 (GMT)
commit6d403e133e6d4e123ada746f696aae441149e4bb (patch)
treed26202f35fc12ce6595c05bf740efba7208439b9 /package/nginx
parentc94924bd8579c4411e7897b188ea89e859403d5f (diff)
fix sbin handling a little bit
Diffstat (limited to 'package/nginx')
-rw-r--r--package/nginx/patches/patch-auto_install18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/nginx/patches/patch-auto_install b/package/nginx/patches/patch-auto_install
new file mode 100644
index 0000000..e3d86d8
--- /dev/null
+++ b/package/nginx/patches/patch-auto_install
@@ -0,0 +1,18 @@
+--- nginx-1.2.2.orig/auto/install 2012-01-18 16:07:43.000000000 +0100
++++ nginx-1.2.2/auto/install 2012-07-16 16:45:40.000000000 +0200
+@@ -100,12 +100,9 @@ install: $NGX_OBJS${ngx_dirsep}nginx${ng
+ $NGX_INSTALL_PERL_MODULES
+ test -d '\$(DESTDIR)$NGX_PREFIX' || mkdir -p '\$(DESTDIR)$NGX_PREFIX'
+
+- test -d '\$(DESTDIR)`dirname "$NGX_SBIN_PATH"`' \
+- || mkdir -p '\$(DESTDIR)`dirname "$NGX_SBIN_PATH"`'
+- test ! -f '\$(DESTDIR)$NGX_SBIN_PATH' \
+- || mv '\$(DESTDIR)$NGX_SBIN_PATH' \
+- '\$(DESTDIR)$NGX_SBIN_PATH.old'
+- cp $NGX_OBJS/nginx '\$(DESTDIR)$NGX_SBIN_PATH'
++ test -d '\$(DESTDIR)$NGX_SBIN_PATH' \
++ || mkdir -p '\$(DESTDIR)$NGX_SBIN_PATH'
++ cp $NGX_OBJS/nginx '\$(DESTDIR)$NGX_SBIN_PATH/'
+
+ test -d '\$(DESTDIR)$NGX_CONF_PREFIX' \
+ || mkdir -p '\$(DESTDIR)$NGX_CONF_PREFIX'