Ticket #42129: Portfile

File Portfile, 2.4 KB (added by jul_bsd@…, 10 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
5
6name                lsyncd
7version             2.1.5
8revision            0
9categories          net sysutils
10license             GPL-2
11platforms           darwin freebsd
12maintainers         nomaintainer
13description         Live Syncing/mirror daemon
14long_description    Lsyncd watches a local directory trees event monitor \
15                    interface (inotify or fsevents). It aggregates and combines \
16                    events for a few seconds and then spawns one (or more) \
17                    process(es) to synchronize the changes. By default this is \
18                    rsync. Lsyncd is thus a light-weight live mirror solution \
19                    that is comparatively easy to install not requiring new \
20                    filesystems or blockdevices and does not hamper local \
21                    filesystem performance.
22
23homepage            https://code.google.com/p/lsyncd/
24master_sites        googlecode
25
26checksums           md5     fb10547494ec5ec662fe88343047c364 \
27                    sha1    5be0a65956837d8e621b711bc7f96c6429d9da50 \
28                    rmd160  3ca57f0f784ceb258cbcb65de2136476ece13a44 \
29                    sha256  4a793056c4ed833edb59436d7711bb65f7e38a4d8d44371cc9dc5eb91fbc461f
30
31
32## help w http://stackoverflow.com/questions/9697335/compiling-lsyncd-on-mac-os-x-lion
33depends_lib         port:lua
34## FIXME! needs bsd/sys/fsevents.h
35##     http://www.opensource.apple.com/source/xnu/ => Mirror kernel folder
36##    corresponding to yours "uname -a"  or use the following ports but
37##    not sure (on my mavericks/10.9.1, didn't fetch the right release)
38depends_build       port:xnu-headers port:asciidoc
39depends_run         port:rsync
40
41configure.args      --without-inotify --with-fsevents
42configure.cflags-append    "-I /tmp/xnu-2422.1.72/"
43configure.env       LUA_CFLAGS="-I ${prefix}/include" LUA_LIBS="${prefix}/lib/liblua.a"
44#configure.env       LUA_CFLAGS="-I ${prefix}/include" LUA_LIBS="${prefix}/lib"
45
46test.run           yes
47test.target        check
48
49livecheck.type      regex
50livecheck.url       ${homepage}
51livecheck.regex     "Lsyncd release version (\\d+(?:\\.\\d+)*)"
52
53notes "
54As for now, lsyncd use a private Apple API and can break anytime. It
55also needs to be run as root :(
56See https://github.com/axkibe/lsyncd/issues/257
57"