rinetd - don't use DATA for initial conf file

master
Adam Vandenberg 2010-09-30 11:45:51 -07:00
parent 142904b4a5
commit d68fd0ad66
1 changed files with 11 additions and 9 deletions

View File

@ -16,14 +16,16 @@ class Rinetd <Formula
bin.install "rinetd" bin.install "rinetd"
man8.install "rinetd.8" man8.install "rinetd.8"
conf = etc+"rinetd.conf" conf = etc+"rinetd.conf"
conf.write(DATA.read) unless conf.exist? conf.write(conf_file) unless conf.exist?
end
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
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