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