aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2010-09-30 11:45:51 -0700
committerAdam Vandenberg2010-10-01 20:48:08 -0700
commitb79848dd99e0ce374b604e38f8dbffa09492ffb5 (patch)
treedffa9b376a91d1d445875f162df113f920e91934 /Library/Formula
parent69e263cb953eb41690b05e9dadef4d4cf0b00a86 (diff)
downloadhomebrew-b79848dd99e0ce374b604e38f8dbffa09492ffb5.tar.bz2
rinetd - don't use DATA for initial conf file
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/rinetd.rb20
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