[153618] trunk/dports/net
mk at macports.org
mk at macports.org
Thu Oct 6 00:49:03 CEST 2016
Revision: 153618
https://trac.macports.org/changeset/153618
Author: mk at macports.org
Date: 2016-10-05 15:49:03 -0700 (Wed, 05 Oct 2016)
Log Message:
-----------
syncthing-0.14: new port (closes #52324)
Added Paths:
-----------
trunk/dports/net/syncthing-0.14/
trunk/dports/net/syncthing-0.14/Portfile
Added: trunk/dports/net/syncthing-0.14/Portfile
===================================================================
--- trunk/dports/net/syncthing-0.14/Portfile (rev 0)
+++ trunk/dports/net/syncthing-0.14/Portfile 2016-10-05 22:49:03 UTC (rev 153618)
@@ -0,0 +1,56 @@
+# -*- 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 github 1.0
+
+github.setup syncthing syncthing 0.14.7 v
+name syncthing-0.14
+categories net
+platforms darwin
+license MPL-2
+maintainers schenkel.net:leonardo mk
+
+description Open Source Continuous File Synchronization
+long_description Syncthing replaces proprietary sync and cloud services \
+ with something open, trustworthy and decentralized.\
+ Your data is your data alone and you deserve to choose \
+ where it is stored, if it is shared with some third party \
+ and how it's transmitted over the Internet.
+homepage https://syncthing.net
+
+checksums rmd160 b098bb9dc6f37884691640ef9b5cdcb128506ba5 \
+ sha256 1b1d89b9ed2aa102a05fa2552652e3c6fd86d24a460a9b35adc9919b203ee8cf
+
+worksrcdir src/github.com/syncthing/syncthing
+extract.mkdir yes
+extract.post_args-append --strip-components=1
+
+depends_build port:go
+use_configure no
+use_parallel_build no
+build.cmd ${prefix}/bin/go run build.go
+build.target install syncthing
+build.pre_args -version v${version} -no-upgrade
+build.post_args ${build.target}
+build.env GOPATH=${workpath}
+
+test.run yes
+
+destroot {
+ xinstall -W ${worksrcpath}/bin syncthing ${destroot}${prefix}/bin
+ xinstall -W ${worksrcpath}/man syncthing.1 ${destroot}${prefix}/share/man/man1
+ xinstall -d ${destroot}${prefix}/share/doc/${name}
+ xinstall -W ${worksrcpath} AUTHORS LICENSE NICKS ${destroot}${prefix}/share/doc/${name}
+ xinstall {*}[glob ${worksrcpath}/*.md] ${destroot}${prefix}/share/doc/${name}
+ xinstall -d ${destroot}${prefix}/share/examples/${name}
+ xinstall -W ${worksrcpath}/etc/macosx-launchd syncthing.plist ${destroot}${prefix}/share/examples/${name}
+ reinplace "s|/Users/USERNAME/bin/|${prefix}/bin/|g" ${destroot}${prefix}/share/examples/${name}/syncthing.plist
+}
+
+notes-append \
+ "Syncthing provides an example launchd plist. To use it:" \
+ "1. Copy ${prefix}/share/examples/${name}/syncthing.plist to ~/Library/LaunchAgents" \
+ "2. Edit syncthing.plist by replacing USERNAME with your actual username" \
+ "3. Log out and in again, or run: launchctl load ~/Library/LaunchAgents/syncthing.plist"
+
Property changes on: trunk/dports/net/syncthing-0.14/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161005/56244782/attachment-0002.html>
More information about the macports-changes
mailing list