Andrew Suffield wrote:
>
> Hmm, assuming that it's just evaled then you could probably stash a
> sub in one of the extension scripts that runs early in the compile
> process, and then:
>
> PERL SMTP qw{fw net}
>
> gives you the "smarter macro" feature.
>
> (It does depend what package you're evaling stuff in - ideally they
> should all be tossed into a private namespace, so you don't
> accidentally redefine parts of shorewall-perl)
>
> It is not immediately apparent how to get the same effect from the
> shell version. Maybe something with scripts and the search path?It's not just evaled -- it's using a child process with piped output. The feature is built on top of the INCLUDE mechanism already in Shorewall; a PERL or SHELL directive is basically like an INCLUDE only the compiler is reading a pipe rather than a file. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ [EMAIL PROTECTED] PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
