Changeset View
Changeset View
Standalone View
Standalone View
sysutils/lsyncd/files/patch-CMakeLists.txt
--- CMakeLists.txt.orig 2018-03-09 12:39:11 UTC | --- CMakeLists.txt.orig 2018-03-09 12:39:11 UTC | ||||
+++ CMakeLists.txt | +++ CMakeLists.txt | ||||
@@ -20,6 +20,9 @@ option( WITH_FSEVENTS "Compile with inotify file notif | |||||
if( WITH_INOTIFY ) | |||||
set( LSYNCD_SRC ${LSYNCD_SRC} inotify.c ) | |||||
+ find_path(Inotify_INCLUDE_DIRS sys/inotify.h PATH_SUFFIXES libinotify inotify) | |||||
+ find_library(Inotify_LIBRARIES NAMES inotify) | |||||
+ include_directories( SYSTEM ${Inotify_INCLUDE_DIRS} ) | |||||
endif( WITH_INOTIFY ) | |||||
if( WITH_FSEVENTS ) | |||||
@@ -104,8 +104,8 @@ add_custom_target( tests | @@ -104,8 +104,8 @@ add_custom_target( tests | ||||
# compiling and linking it all together | # compiling and linking it all together | ||||
add_executable( lsyncd ${LSYNCD_SRC} ) | add_executable( lsyncd ${LSYNCD_SRC} ) | ||||
-target_link_libraries( lsyncd ${LUA_LIBRARIES} ) | -target_link_libraries( lsyncd ${LUA_LIBRARIES} ) | ||||
+target_link_libraries( lsyncd ${LUA_LIBRARIES} /usr/local/lib/libinotify.so ) | +target_link_libraries( lsyncd ${LUA_LIBRARIES} ${Inotify_LIBRARIES} ) | ||||
-install( TARGETS lsyncd RUNTIME DESTINATION bin ) | -install( TARGETS lsyncd RUNTIME DESTINATION bin ) | ||||
-install( FILES doc/manpage/lsyncd.1 DESTINATION man ) | -install( FILES doc/manpage/lsyncd.1 DESTINATION man ) | ||||
+install( TARGETS lsyncd RUNTIME DESTINATION sbin ) | +install( TARGETS lsyncd RUNTIME DESTINATION sbin ) | ||||
+install( FILES doc/manpage/lsyncd.1 DESTINATION man/man1 ) | +install( FILES doc/manpage/lsyncd.1 DESTINATION man/man1 ) | ||||