summaryrefslogtreecommitdiff
path: root/package/nginx/patches/patch-auto_install
blob: 0c9f06568421747e43e5e21dac74167db1357b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- nginx-1.9.13.orig/auto/install	2016-03-29 17:09:30.000000000 +0200
+++ nginx-1.9.13/auto/install	2016-04-01 23:45:09.250318293 +0200
@@ -107,11 +107,8 @@ $NGX_OBJS/nginx.8:	$NGX_MAN $NGX_AUTO_CO
 install:	build $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'
+	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' \\