nginx: install src to pkgshare instead of share

This commit is contained in:
Chongyu Zhu 2019-02-15 18:11:45 +08:00
parent a504cd09b8
commit e78965c528
No known key found for this signature in database
GPG key ID: 1A43E3C9100B38F5

View file

@ -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