Ticket #48905: Portfile.6

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

Portfile with fixed "notes"

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.6 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
21checksums           rmd160  e347e2b8863adef3ad338548cc90cfc1e4157046 \
22                    sha256  d3207f4902fe0f7bfae55510f236848cccb4bb7a7237c4844764005ec58988cd
23
24depends_build   port:go
25
26worksrcdir      src/github.com/syncthing/syncthing
27
28#startupitem.create      yes
29#startupitem.netchange   yes
30#startupitem.executable  ${prefix}/bin/syncthing -no-browser -logflags=0
31
32post-extract {
33        xinstall -d ${workpath}/src/github.com/syncthing
34        move ${workpath}/${name}-${github.version} ${worksrcpath}
35}
36
37use_configure   no
38
39build {
40        system -W ${worksrcpath} "GOPATH=${workpath} go run build.go -no-upgrade -version=v${version} tar"
41}
42
43destroot {
44        xinstall -W ${worksrcpath} syncthing ${destroot}${prefix}/bin
45       
46        xinstall -d ${destroot}${prefix}/share/doc/${name}
47        xinstall -m 644 ${worksrcpath}/LICENSE \
48                ${destroot}${prefix}/share/doc/${name}/
49       
50        xinstall -d ${destroot}${prefix}/share/${name}
51        xinstall -m 644 ${worksrcpath}/etc/macosx-launchd/syncthing.plist \
52                ${destroot}${prefix}/share/${name}/
53}
54
55notes-append "
56        Syncthing ships with a sample launchd plist that must be configured before use.
57        Copy ${prefix}/share/syncthing/syncthing.plist to ~/Library/LaunchAgents and replace USERNAME with your username. Then run: launchctl load ~/Library/LaunchAgents/syncthing.plist.
58"