Lsyncd watches a local directory tree using libinotify. It aggregates and combines events for a few seconds and then spawns one (or more) process(es) to synchronize the changes. By default this is rsync. Lsyncd is thus a light-weight live mirror solution that is comparatively easy to install not requiring new filesystems or blockdevices and does not hamper local filesystem performance. ok ajacoutot@
49 lines
1.7 KiB
Plaintext
49 lines
1.7 KiB
Plaintext
$OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2016/01/23 19:15:13 landry Exp $
|
|
|
|
No need to regen the manpage
|
|
|
|
--- CMakeLists.txt.orig Thu Oct 15 08:29:47 2015
|
|
+++ CMakeLists.txt Sat Jan 23 19:41:46 2016
|
|
@@ -6,7 +6,7 @@ set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_S
|
|
|
|
|
|
# finding Lua
|
|
-find_package(Lua REQUIRED)
|
|
+find_package(Lua ${MODLUA_VERSION})
|
|
include_directories ( ${LUA_INCLUDE_DIR} )
|
|
|
|
|
|
@@ -54,7 +54,7 @@ add_custom_command( OUTPUT runner.c
|
|
# this supposes the Lua compiler 'luac' is sitting right next to the Lua interpreter 'lua'
|
|
add_custom_command( OUTPUT runner.out
|
|
COMMAND ${CMAKE_COMMAND} -E echo "Compiling built-in runner"
|
|
- COMMAND ${LUA_EXECUTABLE}c -o runner.out ${PROJECT_SOURCE_DIR}/lsyncd.lua
|
|
+ COMMAND ${LUA_COMPILER} -o runner.out ${PROJECT_SOURCE_DIR}/lsyncd.lua
|
|
DEPENDS ${PROJECT_SOURCE_DIR}/lsyncd.lua
|
|
)
|
|
|
|
@@ -75,21 +75,13 @@ set( DEFAULT_CONFIGS
|
|
|
|
add_custom_command( OUTPUT defaults.out
|
|
COMMAND ${CMAKE_COMMAND} -E echo "Compiling built-in default configs"
|
|
- COMMAND ${LUA_EXECUTABLE}c -o defaults.out ${DEFAULT_CONFIGS}
|
|
+ COMMAND ${LUA_COMPILER} -o defaults.out ${DEFAULT_CONFIGS}
|
|
DEPENDS ${DEFAULT_CONFIGS}
|
|
)
|
|
|
|
-# the manpage
|
|
-add_custom_command( OUTPUT doc/lsyncd.1
|
|
- COMMAND ${CMAKE_COMMAND} -E echo "Updating the manpage"
|
|
- COMMAND a2x --format=manpage doc/lsyncd.1.txt
|
|
- DEPENDS doc/lsyncd.1.txt
|
|
-)
|
|
-add_custom_target( manpage ALL DEPENDS doc/lsyncd.1 )
|
|
-
|
|
# compiling and linking it all together
|
|
add_executable( lsyncd ${LSYNCD_SRC} )
|
|
target_link_libraries( lsyncd ${LUA_LIBRARIES} )
|
|
|
|
install( TARGETS lsyncd RUNTIME DESTINATION bin )
|
|
-install( FILES doc/lsyncd.1 DESTINATION man)
|
|
+install( FILES doc/lsyncd.1 DESTINATION man/man1)
|