summaryrefslogtreecommitdiffstats
path: root/rules/rsync.in
blob: 6b7dc6f55dbaf289b4fbabaf98bfc82004f336bc (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
menuconfig RSYNC
	bool
	prompt "rsync               "
	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.

comment "build options   ---"
	depends on RSYNC

config RSYNC_IPV6
	bool
	depends on RSYNC
	default n
	prompt "Support IPV6"
	help
	  This switch enables IPV6 support in rsync

config RSYNC_LARGE_FILE
	bool
	depends on RSYNC
	default y
	prompt "Large file support"
	help
	  Support for large files

config RSYNC_CONFIG_FILE
	string
	depends on RSYNC
	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   ---"
	depends on RSYNC

choice

prompt "Kind of rsyncd.conf/rsyncd.secrets file"
depends on RSYNC
default RSYNC_CONFIG_FILE_DEFAULT

config RSYNC_CONFIG_FILE_DEFAULT
	bool
	prompt "Use generic"
	help
	  The files from generic/etc/rsyncd.conf|rsyncd.secrets will be used.
	  Its a very good idea to start with this default files and save a
	  customised version into your project, because the generic files are
	  really useless. You can use your own version if you select
	  "User defined" here.

config RSYNC_CONFIG_FILE_USER
	bool
	prompt "User defined"
	help
	  The files from <project>/projectroot/etc/rsyncd.conf|rsyncd.secrets
	  will be used.

endchoice

choice
	prompt "Kind of startup"
	depends on RSYNC
	default RSYNC_INETD_SERVER

	config RSYNC_INETD_SERVER
		bool
		prompt "inetd driven"
		help
		  This installs a startup configuration for rsync from inetd. It adds to
		  the /etc/inetd.conf a line like this:
		  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

choice
	prompt "Kind of startup script"
	depends on RSYNC
	depends on RSYNC_STARTUP_TYPE_STANDALONE
	default ROOTFS_ETC_INITD_RSYNC_DEFAULT

	config ROOTFS_ETC_INITD_RSYNC_DEFAULT
		bool
		prompt "Use generic"
		help
		  Installs a generic /etc/init.d/rsyncd startup script.
		  See <ptxdist-install>/generic/etc/init.d/rsyncd

	config ROOTFS_ETC_INITD_RSYNC_USER
		bool
		prompt "User defined"
		help
		  This uses a user defined rsync startup script. PTXdist
		  uses files projectroot/etc/init.d/rsyncd in your local
		  project. You should use "@CONFIG@" in your script.
		  This gets replaced by "--config=" and the path to the config
		  file given above.

endchoice

config RSYNC_INETD_STRING
	string
	depends on RSYNC
	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 inetd's configuration /etc/inetd.conf. @CONFIG@
	  in this string will be replaced with the --config option, and the
	  path given above for configuration