1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup github 1.0 |
---|
6 | |
---|
7 | github.setup syncthing syncthing 0.13.7 v |
---|
8 | revision 0 |
---|
9 | categories net |
---|
10 | platforms darwin |
---|
11 | maintainers me.com:link.dupont |
---|
12 | description Open source continuous file synchronization application |
---|
13 | homepage https://syncthing.net |
---|
14 | license MPL-2 |
---|
15 | |
---|
16 | long_description Syncthing replaces proprietary sync and cloud services \ |
---|
17 | with something open, trustworthy and decentralized. Your \ |
---|
18 | data is your data alone and you deserve to choose where \ |
---|
19 | it is stored, if it is shared with some third party and \ |
---|
20 | how it's transmitted over the Internet. |
---|
21 | |
---|
22 | |
---|
23 | checksums rmd160 a1ed2e593d5bda93960037de19a8fe809f8f1ff6 \ |
---|
24 | sha256 af175a23bfbf201cc34dd414273c092776e677aa96588956acf5f4e12e8aaf32 |
---|
25 | |
---|
26 | depends_build port:go |
---|
27 | |
---|
28 | worksrcdir src/github.com/syncthing/syncthing |
---|
29 | |
---|
30 | #startupitem.create yes |
---|
31 | #startupitem.netchange yes |
---|
32 | #startupitem.executable ${prefix}/bin/syncthing -no-browser -logflags=0 |
---|
33 | |
---|
34 | post-extract { |
---|
35 | xinstall -d ${workpath}/src/github.com/syncthing |
---|
36 | move ${workpath}/${name}-${github.version} ${worksrcpath} |
---|
37 | } |
---|
38 | |
---|
39 | use_configure no |
---|
40 | |
---|
41 | build { |
---|
42 | system -W ${worksrcpath} "GOPATH=${workpath} go run build.go -no-upgrade -version=v${version} tar" |
---|
43 | } |
---|
44 | |
---|
45 | destroot { |
---|
46 | xinstall -W ${worksrcpath} syncthing ${destroot}${prefix}/bin |
---|
47 | |
---|
48 | xinstall -d ${destroot}${prefix}/share/doc/${name} |
---|
49 | xinstall -m 644 ${worksrcpath}/LICENSE \ |
---|
50 | ${destroot}${prefix}/share/doc/${name}/ |
---|
51 | |
---|
52 | xinstall -d ${destroot}${prefix}/share/${name} |
---|
53 | xinstall -m 644 ${worksrcpath}/etc/macosx-launchd/syncthing.plist \ |
---|
54 | ${destroot}${prefix}/share/${name}/ |
---|
55 | } |
---|
56 | |
---|
57 | notes { |
---|
58 | Syncthing ships with a sample launchd plist that must be configured before use. |
---|
59 | Copy /opt/local/share/syncthing/syncthing.plist to ~/Library/LaunchAgents and replace USERNAME with your username. Then run: launchctl load ~/Library/LaunchAgents/syncthing.plist. |
---|
60 | } |
---|