[79029] trunk/dports/net
jann at macports.org
jann at macports.org
Mon May 30 15:56:59 PDT 2011
Revision: 79029
http://trac.macports.org/changeset/79029
Author: jann at macports.org
Date: 2011-05-30 15:56:59 -0700 (Mon, 30 May 2011)
Log Message:
-----------
New port iodine. See #29646
Modified Paths:
--------------
trunk/dports/net/snort/Portfile
Added Paths:
-----------
trunk/dports/net/iodine/
trunk/dports/net/iodine/Portfile
trunk/dports/net/iodine/files/
trunk/dports/net/iodine/files/patch-Makefile.diff
Added: trunk/dports/net/iodine/Portfile
===================================================================
--- trunk/dports/net/iodine/Portfile (rev 0)
+++ trunk/dports/net/iodine/Portfile 2011-05-30 22:56:59 UTC (rev 79029)
@@ -0,0 +1,24 @@
+# $Id$
+
+PortSystem 1.0
+
+name iodine
+version 0.6.0-rc1
+categories net
+license ISC
+maintainers gmail.com:tomhennigan
+description IPv4 over DNS
+long_description iodine lets you tunnel IPv4 data through a DNS server. This can be usable in different situations where internet access is firewalled, but DNS queries are allowed.
+homepage http://code.kryo.se/iodine/
+master_sites ${homepage}
+checksums md5 a15bb4faba020d217016fde6e231074a \
+ sha1 4fa9a248b8a84df8a727a5d749e669e58136edca \
+ rmd160 6974beac28e07b0c280d7095f15d13699e9cad65
+
+patchfiles patch-Makefile.diff
+
+use_configure no
+
+post-patch {
+ reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/Makefile
+}
Added: trunk/dports/net/iodine/files/patch-Makefile.diff
===================================================================
--- trunk/dports/net/iodine/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/net/iodine/files/patch-Makefile.diff 2011-05-30 22:56:59 UTC (rev 79029)
@@ -0,0 +1,8 @@
+--- Makefile.old 2011-05-30 13:06:33.000000000 +0100
++++ Makefile 2011-05-30 13:06:55.000000000 +0100
+@@ -1,4 +1,4 @@
+-prefix=/usr/local
++prefix=@PREFIX@
+ sbindir=$(prefix)/sbin
+ datadir=$(prefix)/share
+ mandir=$(datadir)/man
Modified: trunk/dports/net/snort/Portfile
===================================================================
--- trunk/dports/net/snort/Portfile 2011-05-30 22:50:30 UTC (rev 79028)
+++ trunk/dports/net/snort/Portfile 2011-05-30 22:56:59 UTC (rev 79029)
@@ -3,7 +3,7 @@
PortSystem 1.0
name snort
-version 2.6.1.5
+version 2.8.4
categories net
maintainers markd
description Open Source Network Intrusion Detection System
@@ -17,21 +17,21 @@
homepage http://www.snort.org/
platforms darwin freebsd
master_sites ${homepage}dl/current/ \
- ${homepage}dl/old/
+ ${homepage}dl/old/
checksums sha1 14e65990f70dab4e740e0b8116c671364d3ca8c4
patchfiles patch-etc-snort.conf
depends_lib port:pcre
configure.args --mandir=${prefix}/share/man --disable-dynamicplugin
variant mysql5 {
- depends_lib-append path:bin/mysql_config5:mysql5
- configure.args-append --with-mysql=${prefix}
- patchfiles-append patch-configure
+ depends_lib-append path:bin/mysql_config5:mysql5
+ configure.args-append --with-mysql=${prefix}
+ patchfiles-append patch-configure
}
variant mysql4 {
- depends_lib-append port:mysql4
- configure.args-append --with-mysql=${prefix}
+ depends_lib-append port:mysql4
+ configure.args-append --with-mysql=${prefix}
}
variant server {
@@ -42,21 +42,28 @@
post-destroot {
# Copy the Snort database schemas
- xinstall -d -m 755 ${destroot}${prefix}/share/${name}/schemas
- eval xinstall -m 755 [glob ${worksrcpath}/schemas/create*] ${destroot}${prefix}/share/${name}/schemas
+ xinstall -d -m 755 ${destroot}${prefix}/share/${name}/schemas
+ eval xinstall -m 755 [glob ${worksrcpath}/schemas/create*] ${destroot}${prefix}/share/${name}/schemas
# Copy Snort's etc/ files
- xinstall -d -m 755 ${destroot}${prefix}/etc/${name}
- eval xinstall [glob ${worksrcpath}/etc/*.map] ${destroot}${prefix}/etc/${name}
- eval xinstall [glob ${worksrcpath}/etc/*.conf] ${destroot}${prefix}/etc/${name}
- file rename ${destroot}${prefix}/etc/${name}/snort.conf ${destroot}${prefix}/etc/${name}/snort.conf.dist
+ xinstall -d -m 755 ${destroot}${prefix}/etc/${name}
+ eval xinstall [glob ${worksrcpath}/etc/*.map] ${destroot}${prefix}/etc/${name}
+ eval xinstall [glob ${worksrcpath}/etc/*.conf*] ${destroot}${prefix}/etc/${name}
+ file rename ${destroot}${prefix}/etc/${name}/snort.conf ${destroot}${prefix}/etc/${name}/snort.conf.dist
+# fix snort.conf.dist
+ reinplace "s|dynamicpreprocessor directory /usr/local/lib/snort_dynamicpreprocessor/|dynamicpreprocessor directory ${prefix}/lib/snort_dynamicpreprocessor/|g" ${destroot}${prefix}/etc/${name}/snort.conf.dist
+ reinplace "s|dynamicengine /usr/local/lib/snort_dynamicengine/libsf_engine.so|dynamicengine ${prefix}/lib/snort_dynamicengine/libsf_engine.dylib|g" ${destroot}${prefix}/etc/${name}/snort.conf.dist
+ 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" \
- ${destroot}${prefix}/share/${name}/snort.sh
- }
+ xinstall -m 755 ${portpath}/${filesdir}/snort.sh \
+ ${destroot}${prefix}/share/${name}/snort.sh
+ reinplace "s|__PREFIX__|${prefix}|g" \
+ ${destroot}${prefix}/share/${name}/snort.sh
+ }
}
notes "\n
@@ -65,7 +72,7 @@
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.
+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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110530/1a325aec/attachment-0001.html>
More information about the macports-changes
mailing list