diff options
| author | Adam Vandenberg | 2010-09-30 11:45:51 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-01 20:48:08 -0700 |
| commit | b79848dd99e0ce374b604e38f8dbffa09492ffb5 (patch) | |
| tree | dffa9b376a91d1d445875f162df113f920e91934 /Library/Formula | |
| parent | 69e263cb953eb41690b05e9dadef4d4cf0b00a86 (diff) | |
| download | homebrew-b79848dd99e0ce374b604e38f8dbffa09492ffb5.tar.bz2 | |
rinetd - don't use DATA for initial conf file
Diffstat (limited to 'Library/Formula')
| -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 |
