FreeBSD Bugzilla – Attachment 193960 Details for
Bug 228714
[NEW PORT] sysutils/lsyncd: Live Syncing (Mirror) Daemon
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
fixed shar file for sysutils/lsyncd port
lsyncd.shar (text/plain), 6.75 KB, created by
Junichi Satoh
on 2018-06-03 05:31:47 UTC
(
hide
)
Description:
fixed shar file for sysutils/lsyncd port
Filename:
MIME Type:
Creator:
Junichi Satoh
Created:
2018-06-03 05:31:47 UTC
Size:
6.75 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># lsyncd ># lsyncd/files ># lsyncd/files/patch-CMakeLists.txt ># lsyncd/files/patch-default-rsync.lua ># lsyncd/files/lsyncd.conf.sample ># lsyncd/files/patch-lsyncd.c ># lsyncd/files/lsyncd.in ># lsyncd/files/patch-inotify.c ># lsyncd/Makefile ># lsyncd/pkg-descr ># lsyncd/distinfo ># >echo c - lsyncd >mkdir -p lsyncd > /dev/null 2>&1 >echo c - lsyncd/files >mkdir -p lsyncd/files > /dev/null 2>&1 >echo x - lsyncd/files/patch-CMakeLists.txt >sed 's/^X//' >lsyncd/files/patch-CMakeLists.txt << 'e18bfb8e38980b4169335af68be5a42b' >X--- CMakeLists.txt.orig 2018-03-09 12:39:11 UTC >X+++ CMakeLists.txt >X@@ -104,7 +104,7 @@ add_custom_target( tests >X >X # compiling and linking it all together >X add_executable( lsyncd ${LSYNCD_SRC} ) >X-target_link_libraries( lsyncd ${LUA_LIBRARIES} ) >X+target_link_libraries( lsyncd ${LUA_LIBRARIES} /usr/local/lib/libinotify.so ) >X >X install( TARGETS lsyncd RUNTIME DESTINATION bin ) >X install( FILES doc/manpage/lsyncd.1 DESTINATION man ) >e18bfb8e38980b4169335af68be5a42b >echo x - lsyncd/files/patch-default-rsync.lua >sed 's/^X//' >lsyncd/files/patch-default-rsync.lua << 'fc400eea5a73e7993eab8aef91ff794e' >X--- default-rsync.lua.orig 2018-03-09 12:39:11 UTC >X+++ default-rsync.lua >X@@ -682,7 +682,7 @@ rsync.exitcodes = default.rsyncExitCode >X rsync.rsync = >X { >X -- The rsync binary to be called. >X- binary = '/usr/bin/rsync', >X+ binary = '/usr/local/bin/rsync', >X links = true, >X times = true, >X protect_args = true >fc400eea5a73e7993eab8aef91ff794e >echo x - lsyncd/files/lsyncd.conf.sample >sed 's/^X//' >lsyncd/files/lsyncd.conf.sample << 'ab3696d99adc4c6e1d99ff2a80ef5e87' >Xsettings { >X logfile = "/var/log/lsyncd.log", >X statusFile = "/var/log/lsyncd.status", >X statusInterval = 1, >X maxProcesses = 2, >X insist = 1, >X} >X >Xsync{ >X default.rsync, >X delay = 0, >X source = "/data/test1", >X target = "some_host::test1", >X rsync = { >X archive = true, >X compress = true >X }, >X delete = true >X} >ab3696d99adc4c6e1d99ff2a80ef5e87 >echo x - lsyncd/files/patch-lsyncd.c >sed 's/^X//' >lsyncd/files/patch-lsyncd.c << '5c8dd2c52a6d09f055d75c91788b89a6' >X--- lsyncd.c.orig 2018-03-09 12:39:11 UTC >X+++ lsyncd.c >X@@ -46,6 +46,11 @@ >X #include <lualib.h> >X #include <lauxlib.h> >X >X+#ifdef __FreeBSD__ >X+#define DT_UNKNOWN 0 >X+#define DT_DIR 4 >X+#endif >X+ >X /* >X | The Lua part of Lsyncd >X */ >X@@ -1614,10 +1619,21 @@ l_configure( lua_State *L ) >X openlog( log_ident, 0, settings.log_facility ); >X } >X >X+#ifdef __FreeBSD__ >X+ if( !settings.nodaemon ) >X+ { >X+ // daemonnize is already done before open_inotify with FreeBSD. >X+ // just writing pidfile is needed at this time. >X+ logstring( "Normal", "--- Startup, daemonizing ---" ); >X+ if (settings.pidfile) >X+ { >X+ write_pidfile( L, settings.pidfile ); >X+ } >X+ } >X+#endif >X if( !settings.nodaemon && !is_daemon ) >X { >X logstring( "Normal", "--- Startup, daemonizing ---" ); >X- >X daemonize( L, settings.pidfile ); >X } >X else >X@@ -2433,6 +2449,10 @@ main1( int argc, char *argv[] ) >X >X int argp = 1; >X >X+#ifdef __FreeBSD__ >X+ static bool call_daemonize = true; >X+#endif >X+ >X // load Lua >X L = luaL_newstate( ); >X >X@@ -2482,6 +2502,14 @@ main1( int argc, char *argv[] ) >X >X while( i < argc ) >X { >X+#ifdef __FreeBSD__ >X+ if (!strcmp (argv[i], "-nodaemon" )) >X+ { >X+ call_daemonize = false; >X+ i++; >X+ continue; >X+ } >X+#endif >X if( >X strcmp( argv[ i ], "-log" ) && >X strcmp( argv[ i ], "--log" ) >X@@ -2796,6 +2824,14 @@ main1( int argc, char *argv[] ) >X } >X } >X >X+#ifdef __FreeBSD__ >X+ // daemonize should be done before open_inofity with FreeBSD. >X+ if( call_daemonize ) >X+ { >X+ daemonize( L, NULL ); >X+ } >X+#endif >X+ >X #ifdef WITH_INOTIFY >X open_inotify( L ); >X #endif >5c8dd2c52a6d09f055d75c91788b89a6 >echo x - lsyncd/files/lsyncd.in >sed 's/^X//' >lsyncd/files/lsyncd.in << '6502c1f1cd98d39feeb04ebe55765e6c' >X#!/bin/sh >X# >X# $FreeBSD$ >X# >X >X# PROVIDE: lsyncd >X# REQUIRE: LOGIN >X# BEFORE: securelevel >X# KEYWORD: shutdown >X >X# Add the following lines to /etc/rc.conf to enable `lsyncd': >X# >X# lsyncd_enable="YES" >X# >X >X. /etc/rc.subr >X >Xname="lsyncd" >Xrcvar=lsyncd_enable >X >Xcommand="%%PREFIX%%/sbin/lsyncd" >Xpidfile="/var/run/$name.pid" >X >X# read configuration and set defaults >Xload_rc_config "$name" >X: ${lsyncd_enable="NO"} >X: ${lsyncd_configfile:=/usr/local/etc/$name.conf} >X >Xrequired_files="${lsyncd_configfile}" >X >Xcommand_args="-pidfile $pidfile ${lsyncd_configfile}" >X >Xrun_rc_command "$1" >6502c1f1cd98d39feeb04ebe55765e6c >echo x - lsyncd/files/patch-inotify.c >sed 's/^X//' >lsyncd/files/patch-inotify.c << '2222e09d44e7d5c7f15d4bb6cce0be04' >X--- inotify.c.orig 2015-10-15 06:29:47 UTC >X+++ inotify.c >X@@ -16,7 +16,11 @@ >X #include <sys/times.h> >X #include <sys/types.h> >X #include <sys/wait.h> >X+#ifdef __FreeBSD__ >X+#include </usr/local/include/sys/inotify.h> >X+#else >X #include <sys/inotify.h> >X+#endif >X #include <dirent.h> >X #include <errno.h> >X #include <fcntl.h> >2222e09d44e7d5c7f15d4bb6cce0be04 >echo x - lsyncd/Makefile >sed 's/^X//' >lsyncd/Makefile << '32999360bbc56e271693324bd81fa61b' >X# $FreeBSD$ >X >XPORTNAME= lsyncd >XPORTVERSION= 2.2.3 >XDISTVERSIONPREFIX= release- >XCATEGORIES= sysutils >X >XMAINTAINER= junichi@junichi.org >XCOMMENT= Live Syncing (Mirror) Daemon >X >XLICENSE= GPLv2 >XLICENSE_FILE= ${WRKSRC}/COPYING >X >XBUILD_DEPENDS= asciidoc:textproc/asciidoc >X >XUSES= cmake lua >X >XUSE_GITHUB= yes >XGH_ACCOUNT= axkibe >X >XPLIST_FILES= sbin/lsyncd man/man1/lsyncd.1.gz etc/lsyncd.conf.sample >X >XUSE_RC_SUBR= lsyncd >X >XLIB_DEPENDS+= libinotify.so:devel/libinotify >X >X.include <bsd.port.pre.mk> >X >Xdo-install: >X ${INSTALL_DATA} ${FILESDIR}/lsyncd.conf.sample ${STAGEDIR}${PREFIX}/etc/ >X ${INSTALL_MAN} ${WRKSRC}/doc/manpage/lsyncd.1 ${STAGEDIR}${PREFIX}/man/man1 >X ${INSTALL_PROGRAM} ${WRKSRC}/lsyncd ${STAGEDIR}${PREFIX}/sbin >X >X.include <bsd.port.post.mk> >32999360bbc56e271693324bd81fa61b >echo x - lsyncd/pkg-descr >sed 's/^X//' >lsyncd/pkg-descr << '3845571645a9462d93f1397ba69fa7c5' >XLsyncd is designed to synchronize a local directory tree with low profile >Xof expected changes to a remote mirror. Lsyncd is especially useful to sync >Xdata from a secure area to a not-so-secure area. >X >XWWW: https://axkibe.github.io/lsyncd/ >3845571645a9462d93f1397ba69fa7c5 >echo x - lsyncd/distinfo >sed 's/^X//' >lsyncd/distinfo << '35636abab0b7d50d1b020bf47f939305' >XSHA256 (axkibe-lsyncd-release-2.2.3_GH0.tar.gz) = 7bcd0f4ae126040bb078c482ff856c87e61c22472c23fa3071798dcb1dc388dd >XSIZE (axkibe-lsyncd-release-2.2.3_GH0.tar.gz) = 85165 >35636abab0b7d50d1b020bf47f939305 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 228714
:
193956
| 193960 |
194120