From e78965c5283519831f8a5fd613be05c42488a1d8 Mon Sep 17 00:00:00 2001 From: Chongyu Zhu Date: Fri, 15 Feb 2019 18:11:45 +0800 Subject: [PATCH] nginx: install src to pkgshare instead of share --- Formula/nginx.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Formula/nginx.rb b/Formula/nginx.rb index e9302db015..ab0cdcf993 100644 --- a/Formula/nginx.rb +++ b/Formula/nginx.rb @@ -19,8 +19,8 @@ class Nginx < Formula def install # keep clean copy of source for compiling dynamic modules e.g. passenger - (share/"src").mkpath - system "tar", "-cJf", (share/"src/src.tar.xz"), "--options", "compression-level=9", "." + (pkgshare/"src").mkpath + system "tar", "-cJf", (pkgshare/"src/src.tar.xz"), "--options", "compression-level=9", "." # Changes default port to 8080 inreplace "conf/nginx.conf" do |s| @@ -77,7 +77,7 @@ class Nginx < Formula --with-stream_ssl_preread_module ] - (share/"src/configure_args.txt").write args.join("\n") + (pkgshare/"src/configure_args.txt").write args.join("\n") if build.head? system "./auto/configure", *args