diff options
| author | Jon Yurek | 2010-06-13 13:03:24 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-15 20:02:35 -0700 |
| commit | eabe0ef81c04e5693751855b883f6facdfd689c0 (patch) | |
| tree | 16a17084e8ed742138dbbfb0e1de81cbbd1c30b6 /Library/Formula | |
| parent | 7e12441810b5434a199ac5fdc98c05d362d12437 (diff) | |
| download | homebrew-eabe0ef81c04e5693751855b883f6facdfd689c0.tar.bz2 | |
rinetd formula
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* Fixed man path
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/rinetd.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/rinetd.rb b/Library/Formula/rinetd.rb new file mode 100644 index 000000000..d07f0f4ca --- /dev/null +++ b/Library/Formula/rinetd.rb @@ -0,0 +1,29 @@ +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 |contents| + contents.gsub! "/etc/rinetd.conf", "#{etc}/rinetd.conf" + contents.gsub! "/var/run/rinetd.pid", "#{var}/rinetd.pid" + end + + system "make" + bin.install "rinetd" + (man+'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 |
