Commit 6b1a0e09 authored by Ed Reel's avatar Ed Reel

Update httpd from 2.4.27 to 2.4.29

- Add configure options
- Add postinstall section with instructions

Change source url to use https
parent 6df16d64
......@@ -3,21 +3,13 @@ require 'package'
class Httpd < Package
description 'The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows.'
homepage 'http://httpd.apache.org/'
version '2.4.27'
source_url 'http://www-us.apache.org/dist/httpd/httpd-2.4.27.tar.gz'
source_sha256 '346dd3d016ae5d7101016e68805150bdce9040a8d246c289aa70e68a7cd86b66'
version '2.4.29'
source_url 'https://www-us.apache.org/dist/httpd/httpd-2.4.29.tar.gz'
source_sha256 '948e4a11278a5954698b880b30f401b1e9ab743713ee2c7280a54dd4ddd87085'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/httpd-2.4.27-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/httpd-2.4.27-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/httpd-2.4.27-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/httpd-2.4.27-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'a1a143e339089ed712e7c5c85eebf7af2d21001e51931a6ce9d4508f27598bb9',
armv7l: 'a1a143e339089ed712e7c5c85eebf7af2d21001e51931a6ce9d4508f27598bb9',
i686: '3d462f9c3704fb7b58b5c3e57a0c8307669e26b85103612a132674fc35c3b9c0',
x86_64: '50a7f5187edb55a4d7ec9f47ad8d6972b3d28bb659bbb2bb96e2804ffe9733ef',
})
depends_on 'apr'
......@@ -27,11 +19,39 @@ class Httpd < Package
depends_on 'expat'
def self.build
system './configure'
system './configure',
"--prefix=#{CREW_PREFIX}/share/httpd",
"--libdir=#{CREW_LIB_PREFIX}",
"--bindir=#{CREW_PREFIX}/bin",
"--sbindir=#{CREW_PREFIX}/bin",
'--disable-maintainer-mode',
'--disable-debugger-mode'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.postinstall
puts
puts "All things HTTPD are in #{CREW_PREFIX}/share/httpd.".lightblue
puts
puts "Pages are stored in #{CREW_PREFIX}/share/httpd/htdocs.".lightblue
puts
puts "To start/stop httpd, execute the following:".lightblue
puts "sudo apachectl start - starts httpd".lightblue
puts "sudo apachectl stop - stops httpd".lightblue
puts
puts "To start httpd on login, execute the following:".lightblue
puts "echo 'if [ -f #{CREW_PREFIX}/bin/apachectl ]; then' >> ~/.bashrc".lightblue
puts "echo ' sudo #{CREW_PREFIX}/bin/apachectl start' >> ~/.bashrc".lightblue
puts "echo 'fi' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
puts
puts "To completely remove httpd, perform the following:".lightblue
puts "crew remove httpd".lightblue
puts "sudo rm -rf #{CREW_PREFIX}/share/httpd".lightblue
puts
end
end
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