Ticket #48905: Portfile

File Portfile, 1.8 KB (added by subpop (Link Dupont), 9 years ago)
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.11.25 v
8revision                0
9categories              net
10platforms               darwin
11maintainers             me.com:link.dupont
12description             Open source continuous file synchronization application
13homepage                https://syncthing.net
14license                 MPL-2
15
16long_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
22checksums               rmd160  0f05e6ba26221f3ff35e73149408156170b36063 \
23                        sha256  fcf00fe66a9197f2438fa6192c5c249f26d257a98e9c1ec7d612e9220406ee04
24
25depends_build   port:go
26
27worksrcdir      src/github.com/syncthing/syncthing
28
29post-extract {
30        xinstall -d ${workpath}/src/github.com/syncthing
31        move ${workpath}/${name}-${github.version} ${worksrcpath}
32}
33
34use_configure   no
35
36build {
37        system -W ${worksrcpath} "GOPATH=${workpath} ./build.sh noupgrade"
38}
39
40destroot {
41        xinstall -W ${worksrcpath} syncthing ${destroot}${prefix}/bin
42       
43        xinstall -d ${destroot}${prefix}/share/doc/${name}
44        xinstall -m 644 ${worksrcpath}/LICENSE \
45                ${destroot}${prefix}/share/doc/${name}/
46       
47        xinstall -d ${destroot}${prefix}/share/${name}
48        xinstall -m 644 ${worksrcpath}/etc/macosx-launchd/syncthing.plist \
49                ${destroot}${prefix}/share/${name}/
50}
51
52notes {
53        Syncthing ships with a sample launchd plist that must be configured before use.
54        Copy /opt/local/share/syncthing/syncthing.plist to ~/Library/LaunchAgents and replace USERNAME with your username. Then run: launchctl load ~/Library/LaunchAgents/syncthing.plist.
55}