passenger: use nginx src from opt_pkgshare instead of opt_share

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

View file

@ -37,8 +37,8 @@ class Passenger < Formula
nginx_addon_dir = `./bin/passenger-config about nginx-addon-dir`.strip
mkdir "nginx" do
system "tar", "-xf", "#{Formula["nginx"].opt_share}/src/src.tar.xz", "--strip-components", "1"
args = (Formula["nginx"].opt_share/"src/configure_args.txt").read.split("\n")
system "tar", "-xf", "#{Formula["nginx"].opt_pkgshare}/src/src.tar.xz", "--strip-components", "1"
args = (Formula["nginx"].opt_pkgshare/"src/configure_args.txt").read.split("\n")
args << "--add-dynamic-module=#{nginx_addon_dir}"
system "./configure", *args