summaryrefslogtreecommitdiffstats
path: root/rules/pureftpd.in
blob: 63b15263a16a6b05b30df07a83c8917ead5ad9c8 (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
## SECTION=networking
menuconfig PUREFTPD
	tristate
	prompt "pureftpd                      "
	select LIBC_CRYPT
	help
	  Pure-FTPd is a fast, production-quality, standards-conformant
	  FTP server based upon Troll-FTPd. Features include chrooted
	  home directories, virtual domains, built-in 'ls', anti-warez
	  system, configurable ports for passive downloads, FXP protocol,
	  bandwidth throttling, ratios, fortune files, Apache-like log
	  files, fast standalone mode, atomic uploads, text / HTML /
	  XML real-time status report, virtual users, virtual quotas,
 	  privilege separation, SSL/TLS and more.

if PUREFTPD

config PUREFTPD_ARGS
	string
	default "-H"
	prompt "daemon command-line args"

config PUREFTPD_UPLOADSCRIPT
	bool
	prompt "support upload scripts"
	help
	  Allow running an external script after an upload

	  Do not enable this option if no upload script is defined.
	  Otherwise pure-ftpd will hang waiting for pure-uploadscript to
	  start, because the -o switch to the server is set when this
	  option is enabled.


if PUREFTPD_UPLOADSCRIPT

config PUREFTPD_UPLOADSCRIPT_ARGS
	string
	default "-u 0 -g 0"
	prompt "upload helper args"

config PUREFTPD_UPLOADSCRIPT_SCRIPT
	string
	prompt "script path"
	help
	  Full path of the upload script
	  Must not be left empty or unconfigured

endif

comment "build options   ---"

config PUREFTPD_VIRTUALHOSTS
	bool
	prompt "virtual hosts"
	help
	  Handle virtual servers on different IP addresses

config PUREFTPD_DIRALIASES
	bool
	prompt "directory aliases"
	help
	  Enable directory aliases

config PUREFTPD_MINIMAL
	bool
	prompt "minimal ftpd"
	default y
	help
	  To efficiently use features of modern FTP clients, Pure-FTPd implements
	  the basics of the FTP protocol, with many extensions (SITE IDLE,
	  SITE CHMOD, MLSD, ...) . Using this switch, these extensions won't be
	  compiled in. Also, there will be no standalone server, no lookup for
	  user/group names, no humor and no ASCII support. But the executable
	  file size will be smaller than in a default installation. Regular
	  expressions are still working.

# FIXME: Check if this is true: pure-ftpd cannot be started standalone when a minimal
# server was built. Seems not yet. If yes, disable standalone script, when a minimal
# server was built!

config PUREFTPD_SHRINK_MORE
	bool
	depends on PUREFTPD_MINIMAL
	prompt "shrink more"
	help
	  If you still want to reduce the size, use also this switch and don't
	  include the globbing code. It reduces the memory footprint but regular
	  expressions won't work any more (things like 'ls *.rpm').
	  But note: Globbing is a nice feature and for Windows clients most of
	  time required!

config PUREFTPD_STARTSCRIPT
	bool
	default y
	prompt "install /etc/init.d/pureftpd"

config PUREFTPD_SYSTEMD_UNIT
	bool
	default y
	depends on SYSTEMD
	prompt "install systemd unit files for pure-ftpd"

endif