[87104] trunk/dports/net/snort/Portfile
snc at macports.org
snc at macports.org
Thu Nov 10 11:29:34 PST 2011
Revision: 87104
http://trac.macports.org/changeset/87104
Author: snc at macports.org
Date: 2011-11-10 11:29:34 -0800 (Thu, 10 Nov 2011)
Log Message:
-----------
snort:
* update to 2.9.1.2
* remove +server, #31822
* license (lint)
* fix livecheck
* #31921
Modified Paths:
--------------
trunk/dports/net/snort/Portfile
Modified: trunk/dports/net/snort/Portfile
===================================================================
--- trunk/dports/net/snort/Portfile 2011-11-10 19:24:00 UTC (rev 87103)
+++ trunk/dports/net/snort/Portfile 2011-11-10 19:29:34 UTC (rev 87104)
@@ -3,9 +3,10 @@
PortSystem 1.0
name snort
-version 2.9.0.5
+version 2.9.1.2
categories net
maintainers markd
+license GPL-2
description Open Source Network Intrusion Detection System
long_description \
Snort is an open source network intrusion detection system, capable \
@@ -17,9 +18,16 @@
homepage http://www.snort.org/
platforms darwin freebsd
master_sites ${homepage}dl/snort-current/
-checksums sha1 b4565d3a8387f6b5e7aceb3aee80803ceabf80f2
+
+checksums rmd160 a28ebd59df80884e1554fb75a4279e97b1dd8b32 \
+ sha256 eac98be8138f9debdcc8f77061dab1950e88fa40c18311ddbab0a329852375f5
+
depends_lib port:daq
+startupitem.create yes
+startupitem.start "${prefix}/share/${name}/snort.sh"
+startupitem.stop "/bin/kill \$(cat /var/run/snort_*.pid)"
+
variant mysql5 description {mysql 5 support} {
depends_lib-append path:bin/mysql_config5:mysql5
configure.args-append --with-mysql-includes=${prefix}/include/mysql5/mysql \
@@ -31,12 +39,6 @@
configure.args-append --with-mysql=${prefix}
}
-variant server description {startupitem} {
- startupitem.create yes
- startupitem.start "${prefix}/share/${name}/snort.sh"
- startupitem.stop "/bin/kill \$(cat /var/run/snort_*.pid)"
-}
-
post-destroot {
# Copy the Snort database schemas
xinstall -d -m 755 ${destroot}${prefix}/share/${name}/schemas
@@ -54,22 +56,22 @@
reinplace "s|dynamicdetection directory /usr/local/lib/snort_dynamicrule/|dynamicdetection directory ${prefix}/lib/snort_dynamicrule/|g" ${destroot}${prefix}/etc/${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}/etc/${name}/snort.conf.dist
-
- if { [variant_isset server] } {
- xinstall -m 755 ${portpath}/${filesdir}/snort.sh \
- ${destroot}${prefix}/share/${name}/snort.sh
- reinplace "s|__PREFIX__|${prefix}|g" \
+ xinstall -m 755 ${filespath}/snort.sh \
${destroot}${prefix}/share/${name}/snort.sh
- }
+ reinplace "s|__PREFIX__|${prefix}|g" \
+ ${destroot}${prefix}/share/${name}/snort.sh
}
-notes "\n
+notes "
***** File locations *****
The Snort database schemas -> ${prefix}/share/${name}/schemas
The snort.conf sample file -> ${prefix}/etc/${name}/snort.conf.dist (copy to snort.conf)
-NOTE: If you installed Snort using the +server variant, make sure you do not
- change the location of the snort.conf file or the startup scripts
- will not be able to find it.
-\n"
+NOTE: Make sure you do not change the location of the snort.conf file\
+or the startup scripts will not be able to find it.
+"
+
+livecheck.type regex
+livecheck.url ${homepage}snort-downloads
+livecheck.regex >${name}-(\[0-9.\]+)${extract.suffix}<
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111110/47dd56fd/attachment.html>
More information about the macports-changes
mailing list