Ticket #48905: Portfile.5

File Portfile.5, 1.9 KB (added by anatol (Anatol Pomozov), 8 years ago)

0.14.4

Line 
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
4PortSystem 1.0
5PortGroup       github 1.0
6
7github.setup            syncthing syncthing 0.14.4 v
8categories              net
9platforms               darwin
10maintainers             me.com:link.dupont
11description             Open source continuous file synchronization application
12homepage                https://syncthing.net
13license                 MPL-2
14
15long_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
22checksums           rmd160  2010dae6da8537910ee6616edfed8fb3034f3dae \
23                    sha256  ec8593dbb0abeda201c9b1ba8bdce5bff88a5e11e829e7aa6a2ee2c85f51e7a5
24
25depends_build   port:go
26
27worksrcdir      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
33post-extract {
34        xinstall -d ${workpath}/src/github.com/syncthing
35        move ${workpath}/${name}-${github.version} ${worksrcpath}
36}
37
38use_configure   no
39
40build {
41        system -W ${worksrcpath} "GOPATH=${workpath} go run build.go -no-upgrade -version=v${version} tar"
42}
43
44destroot {
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
56notes {
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}