rinetd - don't use DATA for initial conf file
parent
142904b4a5
commit
d68fd0ad66
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue