homebrew-core/Formula/rinetd.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

29 lines
726 B
Ruby

require 'formula'
class Rinetd <Formula
url 'http://www.boutell.com/rinetd/http/rinetd.tar.gz'
homepage 'http://www.boutell.com/rinetd/'
md5 '28c78bac648971724c46f1a921154c4f'
version '0.62'
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(DATA.read) unless conf.exist?
end
end
__END__
# forwarding rules come here
#
# you may specify allow and deny rules after a specific forwarding rule
# to apply to only that forwarding rule
#
# bindadress bindport connectaddress connectport