Forum: NGINX Bugs in nginx ./configure procedure: part 2

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
J. Antas (Guest)
on 2009-03-24 17:22
(Received via mailing list)
1. Runing the nginx ./configure procedure that comes with the
<> package creates a
double line in the install section of objs/Makefile file:

test -d '$(DESTDIR)/etc/nginx'

2. Also the line:
test ! -f '$(DESTDIR)/usr/sbin/nginx' || mv '$(DESTDIR)/usr/sbin/nginx'

Would be better interpreted by automated install routines, like
checkinstall, if defined as:
  test -f '$(DESTDIR)/usr/sbin/nginx' && mv '$(DESTDIR)/usr/sbin/nginx'



--- nginx-0.7.44/objs/Makefile  2009-03-24 14:48:04.000000000 +0000
+++ nginx-0.7.44/objs/  2009-03-24 15:09:29.000000000 +0000
@@ -1,6 +1,6 @@

  CC =  gcc
-CFLAGS =  -O -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter
-Wno-unused-function -Wunused-variable -Wunused-value -Werror -g -O2
+CFLAGS = -pipe -W -Wall -Wpointer-arith -Wno-unused-parameter
-Wno-unused-function -Wunused-variable -Wunused-value -Werror -g -O2
  CPP =  gcc -E
  LINK =  $(CC)

@@ -1003,10 +1003,8 @@

  install:  objs/nginx
-  test -d '$(DESTDIR)/etc/nginx' || mkdir -p '$(DESTDIR)/etc/nginx'
    test -d '$(DESTDIR)/usr/sbin'     || mkdir -p '$(DESTDIR)/usr/sbin'
-  test ! -f '$(DESTDIR)/usr/sbin/nginx'     || mv
'$(DESTDIR)/usr/sbin/nginx'       '$(DESTDIR)/usr/sbin/nginx.old'
+  test -f '$(DESTDIR)/usr/sbin/nginx'     && mv
'$(DESTDIR)/usr/sbin/nginx'       '$(DESTDIR)/usr/sbin/nginx.old'
    cp objs/nginx '$(DESTDIR)/usr/sbin/nginx'

    test -d '$(DESTDIR)/etc/nginx'     || mkdir -p
This topic is locked and can not be replied to.