homebrew-core/Formula/webfs.rb
Dominyk Tiller 781abee841 formulae: migrate patches (part 2)
madplay: migrate patch
makeicns: migrate patch
mp3info: migrate patch
mpack: migrate patch
newt: migrate patch
nvi: migrate patches
ogmtools: migrate patch
orbit: migrate patches
pdf2htmlex: reference secure link
pdksh: migrate patch
povray: migrate patches
proctools: migrate patches
pulseaudio: migrate patch
sbcl: migrate patches
swftools: migrate patch
tinyproxy: migrate patch
tinysvm: migrate patch
trafshow: migrate patches
uudeview: migrate patch
webfs: migrate patch
wordplay: migrate patch
xsane: migrate patch
2015-10-07 20:36:35 +01:00

37 lines
1.1 KiB
Ruby

class Webfs < Formula
desc "HTTP server for purely static content"
homepage "http://linux.bytesex.org/misc/webfs.html"
url "https://www.kraxel.org/releases/webfs/webfs-1.21.tar.gz"
sha256 "98c1cb93473df08e166e848e549f86402e94a2f727366925b1c54ab31064a62a"
revision 1
bottle do
cellar :any
sha256 "51985bfb7ca68d15261a296886cf0c6b317d870bc79aadf881429101b9a11e09" => :yosemite
sha256 "79c670478aeb8f97d702a5112fde2dab07c92145ea836c12bfdf9a1acfca4232" => :mavericks
sha256 "bced78e19fe50e4b1191fb41cd7aeecf50b1a5d946a13c89d211159553cbd637" => :mountain_lion
end
depends_on "openssl"
patch :p0 do
url "https://raw.githubusercontent.com/Homebrew/patches/0518a6d1/webfs/patch-ls.c"
sha256 "8ddb6cb1a15f0020bbb14ef54a8ae5c6748a109564fa461219901e7e34826170"
end
def install
ENV["prefix"]=prefix
system "make", "install", "mimefile=/etc/apache2/mime.types"
end
test do
begin
pid = fork { exec bin/"webfsd", "-F" }
sleep 2
assert_match %r{webfs\/1.21}, shell_output("curl localhost:8000")
ensure
Process.kill("SIGINT", pid)
Process.wait(pid)
end
end
end