homebrew-core/Formula/leafnode.rb
Dominyk Tiller 67c9bc8bf4 leafnode: fix runtime issues
Closes Homebrew/homebrew#45255.

Closes Homebrew/homebrew#45375.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-27 16:57:42 +00:00

22 lines
867 B
Ruby

class Leafnode < Formula
desc "Leafnode is a store and forward NNTP proxy"
homepage "http://sourceforge.net/projects/leafnode/"
url "https://downloads.sourceforge.net/project/leafnode/leafnode/1.11.10/leafnode-1.11.10.tar.bz2"
sha256 "d75ba79961a8900b273eb74c3ad6976bf9fd64c2fa0284273e65f98190c5f2bc"
bottle :disable, "leafnode hardcodes the user at compile time with no override available."
depends_on "pcre"
def install
(var/"spool/news/leafnode").mkpath
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}",
"--with-user=#{ENV["USER"]}", "--with-group=admin",
"--sysconfdir=#{etc}/leafnode", "--with-spooldir=#{var}/spool/news/leafnode"
system "make", "install"
end
test do
assert_match version.to_s, shell_output("#{bin}/leafnode-version")
end
end