diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/rinetd.rb | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Library/Formula/rinetd.rb b/Library/Formula/rinetd.rb index 5af2c7b42..4900d9428 100644 --- a/Library/Formula/rinetd.rb +++ b/Library/Formula/rinetd.rb @@ -16,14 +16,16 @@ class Rinetd <Formula bin.install "rinetd" man8.install "rinetd.8" conf = etc+"rinetd.conf" - conf.write(DATA.read) unless conf.exist? + conf.write(conf_file) 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 + 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 |
