Commit 0d5b71c4 authored by Casey Strouse's avatar Casey Strouse Committed by Ed Reel

Update nginx from 1.13.7 to 1.17.4 (#3502)

* Update nginx from 1.13.7 to 1.17.4

* Rubyize mkdir and remove dependency that is include in core
parent 69646900
......@@ -3,25 +3,16 @@ require 'package'
class Nginx < Package
description 'nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev.'
homepage 'http://nginx.org/'
version '1.13.7'
source_url 'https://nginx.org/download/nginx-1.13.7.tar.gz'
source_sha256 'beb732bc7da80948c43fd0bf94940a21a21b1c1ddfba0bd99a4b88e026220f5c'
version '1.17.4'
source_url 'https://nginx.org/download/nginx-1.17.4.tar.gz'
source_sha256 '62854b365e66670ef4f1f8cc79124f914551444da974207cd5fe22d85710e555'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/nginx-1.13.7-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/nginx-1.13.7-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/nginx-1.13.7-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/nginx-1.13.7-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'b69ff9cddf02c21fe1e335d17319297a4070cce6be4a33a7ef723dea1042aebe',
armv7l: 'b69ff9cddf02c21fe1e335d17319297a4070cce6be4a33a7ef723dea1042aebe',
i686: 'a1edfca5490907b118265216c8a92404691321d7492139a3e469fc474bc81c71',
x86_64: '01c5891161b00963b17cc2c60871953f9f8fca18d13c5767c8c64b0d11f25cca',
})
depends_on 'pcre'
depends_on 'zlibpkg'
def self.build
system './configure',
......@@ -31,7 +22,7 @@ class Nginx < Package
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.cd("#{CREW_DEST_PREFIX}/bin") do
system "ln -s #{CREW_PREFIX}/share/nginx/sbin/nginx nginx"
system "echo '#!/bin/bash' > startnginx"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment