| 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 | |
|---|
| 6 | name lsyncd |
|---|
| 7 | version 2.1.5 |
|---|
| 8 | revision 0 |
|---|
| 9 | categories net sysutils |
|---|
| 10 | license GPL-2 |
|---|
| 11 | platforms darwin freebsd |
|---|
| 12 | maintainers nomaintainer |
|---|
| 13 | description Live Syncing/mirror daemon |
|---|
| 14 | long_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 | |
|---|
| 23 | homepage https://code.google.com/p/lsyncd/ |
|---|
| 24 | master_sites googlecode |
|---|
| 25 | |
|---|
| 26 | checksums 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 |
|---|
| 33 | depends_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) |
|---|
| 38 | depends_build port:xnu-headers port:asciidoc |
|---|
| 39 | depends_run port:rsync |
|---|
| 40 | |
|---|
| 41 | configure.args --without-inotify --with-fsevents |
|---|
| 42 | configure.cflags-append "-I /tmp/xnu-2422.1.72/" |
|---|
| 43 | configure.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 | |
|---|
| 46 | test.run yes |
|---|
| 47 | test.target check |
|---|
| 48 | |
|---|
| 49 | livecheck.type regex |
|---|
| 50 | livecheck.url ${homepage} |
|---|
| 51 | livecheck.regex "Lsyncd release version (\\d+(?:\\.\\d+)*)" |
|---|
| 52 | |
|---|
| 53 | notes " |
|---|
| 54 | As for now, lsyncd use a private Apple API and can break anytime. It |
|---|
| 55 | also needs to be run as root :( |
|---|
| 56 | See https://github.com/axkibe/lsyncd/issues/257 |
|---|
| 57 | " |
|---|