nginx: install src to pkgshare instead of share
This commit is contained in:
parent
a504cd09b8
commit
e78965c528
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue