> On Aug 19, 2016, at 9:37 AM, [email protected] wrote:
> 
> Revision
> 151665
> Author
> [email protected]
> Date
> 2016-08-19 07:37:38 -0700 (Fri, 19 Aug 2016)
> Log Message
> 
> snort: Add missing rules files from default snort.conf. (#46320)
> Modified Paths
> 
>       • trunk/dports/net/snort/Portfile
> Diff
> 
> Modified: trunk/dports/net/snort/Portfile (151664 => 151665)
> 
> --- trunk/dports/net/snort/Portfile   2016-08-19 14:29:55 UTC (rev 151664)
> +++ trunk/dports/net/snort/Portfile   2016-08-19 14:37:38 UTC (rev 151665)
> 
> @@ -56,6 +56,7 @@
> 
>      reinplace "s|dynamicengine 
> /usr/local/lib/snort_dynamicengine/libsf_engine.so|dynamicengine 
> ${prefix}/lib/snort_dynamicengine/libsf_engine.dylib|g" 
> ${destroot}${prefix}/share/examples/${name}/snort.conf.dist
> 
>      reinplace "s|dynamicdetection directory 
> /usr/local/lib/snort_dynamicrule/|dynamicdetection directory 
> ${prefix}/lib/snort_dynamicrule/|g" 
> ${destroot}${prefix}/share/examples/${name}/snort.conf.dist
> 
>      reinplace "s|dynamicdetection file 
> /usr/local/lib/snort_dynamicrule/libdynamicexamplerule.so|dynamicdetection 
> file ${prefix}/lib/snort_dynamicrule/libdynamicexamplerule.dylib|g" 
> ${destroot}${prefix}/share/examples/${name}/snort.conf.dist
> 
> +    reinplace "s|_LIST_PATH ../rules|_LIST_PATH ${prefix}/etc/snort|g" 
> ${destroot}${prefix}/share/examples/${name}/snort.conf.dist

The port's revision should be increased so that users receive these fixes.


> @@ -80,6 +81,9 @@
> 
>  post-activate {
> 
>      if ![file exists ${prefix}/etc/snort/snort.conf ] {
> 
>          copy ${prefix}/share/examples/${name}/snort.conf.dist 
> ${prefix}/etc/snort/snort.conf
> 
> +        system "touch ${prefix}/etc/snort/rules/local.rules"
> +        system "touch ${prefix}/etc/snort/white_list.rules"
> +        system "touch ${prefix}/etc/snort/black_list.rules"
> 
>      }

User's won't receive these empty rules files if they already had a snort.conf 
from a previous version of the port. Will that be a problem?


_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to