diff --git a/rules/rsync/default.bash b/rules/rsync/default.bash index f0ab2ea..db4383a 100644 --- a/rules/rsync/default.bash +++ b/rules/rsync/default.bash @@ -46,5 +46,6 @@ build() target_install() { - $cmd_target_strip rsync -o "$cfg_dir_rootfs/usr/bin/rsync" + $cmd_target_strip rsync -o "$cfg_dir_rootfs/usr/bin/rsync" && + tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f - } diff --git a/rules/rsync/fs/etc/rc.d/rsyncd b/rules/rsync/fs/etc/rc.d/rsyncd new file mode 100644 index 0000000..d986d09 --- /dev/null +++ b/rules/rsync/fs/etc/rc.d/rsyncd @@ -0,0 +1,9 @@ +start() +{ + /usr/bin/rsync --daemon --config=/etc/rsyncd.conf +} + +stop() +{ + killall rsync > /dev/null 2>&1 +} diff --git a/rules/rsync/fs/etc/rsyncd.conf b/rules/rsync/fs/etc/rsyncd.conf new file mode 100644 index 0000000..1979efe --- /dev/null +++ b/rules/rsync/fs/etc/rsyncd.conf @@ -0,0 +1,10 @@ +list = true +uid = root +gid = root +read only = false +timeout = 30 + +[log] + hosts deny = * + hosts allow = 10.0.0.0/16 + path = /opt/lsts/dune/log