summaryrefslogtreecommitdiffstats
path: root/rules/rsync.in
blob: 2aa2ac8e2e8ebb0e14ba48741ada8dedb520efc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
## SECTION=networking
menuconfig RSYNC
	tristate
	prompt "rsync                         "
	select GCCLIBS_GCC_S
	select OPENSSH	if RUNTIME
	select OPENSSH_SSH
	help
	  rsync is a program that behaves in much the same way that rcp does,
	  but has many more options and uses the rsync remote-update protocol to
	  greatly speed up file transfers when the destination file is being
	  updated.

if RSYNC

comment "build options   ---"

config RSYNC_CONFIG_FILE
	string
	default "/etc/rsyncd.conf"
	prompt "Configuration file at runtime"
	help
	  Set configuration file for rsync server to given path on your target

comment "runtime options   ---"

choice
	prompt "Kind of startup"
	default RSYNC_INETD_SERVER

	config RSYNC_INETD_SERVER
		bool
		prompt "inetd driven"
		help
		  Install a inetd rule for rsync. This option adds the following line
		  to /etc/inetd.conf.d/rsync:

		  rsync stream tcp nowait root /usr/bin/rsync rsyncd --daemon @CONFIG@

		  Note: You must enable one of the two possible inet daemons: There is
		  one embedded in busybox and one in packet inetutils.

	config RSYNC_STARTUP_TYPE_STANDALONE
		bool
		prompt "standalone"
		help
		  This installs rsync startup script /etc/init.d/rsyncd. With this
		  script the rsync server will be started at system startup and
		  waits for connections

endchoice

config RSYNC_STARTSCRIPT
	bool
	default y
	prompt "install /etc/init.d/rsync"

config RSYNC_INETD_STRING
	string
	depends on RSYNC_INETD_SERVER
	prompt "inetd service entry"
	default "rsync stream tcp nowait root /usr/bin/rsync rsyncd --daemon @CONFIG@"
	help
	  This string is added to the inetd configuration /etc/inetd.conf.d/rsync.
          @CONFIG@ in this string will be replaced with the --config option, and the
	  path given above for configuration

endif