[84541] trunk/dports/net
ryandesign at macports.org
ryandesign at macports.org
Tue Sep 27 13:03:08 PDT 2011
Revision: 84541
http://trac.macports.org/changeset/84541
Author: ryandesign at macports.org
Date: 2011-09-27 13:03:07 -0700 (Tue, 27 Sep 2011)
Log Message:
-----------
restund: new port, version 0.3.0; see #31413
Added Paths:
-----------
trunk/dports/net/restund/
trunk/dports/net/restund/Portfile
trunk/dports/net/restund/files/
trunk/dports/net/restund/files/patch-src-main.c.diff
Added: trunk/dports/net/restund/Portfile
===================================================================
--- trunk/dports/net/restund/Portfile (rev 0)
+++ trunk/dports/net/restund/Portfile 2011-09-27 20:03:07 UTC (rev 84541)
@@ -0,0 +1,58 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+#PortGroup muniversal 1.0
+
+name restund
+version 0.3.0
+categories net
+platforms darwin
+maintainers db.org:aeh
+
+description modular STUN/TURN server
+
+long_description ${name} is a ${description}.
+
+homepage http://www.creytiv.com/
+master_sites ${homepage}pub/
+
+checksums rmd160 7e69d406d3dd0237211f3c64d5f8f9f224324f1a \
+ sha256 f971f32253beefbb36e6edaeda326860568f155e4e042dcdd7a948ef80d172a2
+
+depends_lib port:libre \
+ path:bin/mysql_config5:mysql5
+
+patchfiles patch-src-main.c.diff
+
+post-patch {
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/main.c
+}
+
+use_configure no
+
+build.args PREFIX=${prefix} \
+ SYSROOT_ALT=${prefix} \
+ LIBRE_MK=${prefix}/share/re/re.mk \
+ LIBRE_INC=${prefix}/include/re \
+ LIBRE_SO=${prefix}/lib
+destroot.args ${build.args}
+
+if {[tbool configure.ccache]} {
+ build.env-append CCACHE=ccache
+}
+
+#if {[variant_isset universal]} {
+# foreach arch ${configure.universal_archs} {
+# lappend merger_build_env(${arch}) CC='${configure.cc} -arch ${arch}'
+# lappend merger_destroot_env(${arch}) CC='${configure.cc} -arch ${arch}'
+# }
+#} else {
+ build.env-append CC='${configure.cc} ${configure.cc_archflags}'
+ destroot.env-append CC='${configure.cc} ${configure.cc_archflags}'
+#}
+
+post-destroot {
+ reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/etc/restund.conf
+ xinstall -m 644 ${worksrcpath}/etc/restund.conf ${destroot}${prefix}/etc/restund.conf.sample
+}
Property changes on: trunk/dports/net/restund/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/net/restund/files/patch-src-main.c.diff
===================================================================
--- trunk/dports/net/restund/files/patch-src-main.c.diff (rev 0)
+++ trunk/dports/net/restund/files/patch-src-main.c.diff 2011-09-27 20:03:07 UTC (rev 84541)
@@ -0,0 +1,13 @@
+Index: src/main.c
+===================================================================
+--- src/main.c (revision 1046)
++++ src/main.c (working copy)
+@@ -17,7 +17,7 @@
+ #include "stund.h"
+
+
+-static const char *configfile = "/etc/restund.conf";
++static const char *configfile = "@PREFIX@/etc/restund.conf";
+ static struct conf *conf;
+ static bool force_debug;
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110927/d610cffa/attachment.html>
More information about the macports-changes
mailing list