homebrew-core/Formula/rinetd.rb

32 lines
795 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Rinetd < Formula
homepage 'http://www.boutell.com/rinetd/'
2013-01-29 03:41:36 +00:00
url 'http://www.boutell.com/rinetd/http/rinetd.tar.gz'
version '0.62'
2013-01-29 03:41:36 +00:00
sha1 '2498fa03c2ef50bf924ffd0a034d5de5e3258f21'
def install
inreplace 'rinetd.c' do |s|
s.gsub! "/etc/rinetd.conf", "#{etc}/rinetd.conf"
s.gsub! "/var/run/rinetd.pid", "#{var}/rinetd.pid"
end
system "make"
bin.install "rinetd"
man8.install "rinetd.8"
conf = etc+"rinetd.conf"
conf.write(conf_file) unless conf.exist?
end
def conf_file; <<-EOF.undent
# forwarding rules go here
#
# you may specify allow and deny rules after a specific forwarding rule
# to apply to only that forwarding rule
#
# bindadress bindport connectaddress connectport
EOF
end
end