[package] pure-ftpd: add init script supporting all options (#7659)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@22439 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
fb7456828b
commit
9ab06e320e
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pure-ftpd
|
||||
PKG_VERSION:=1.0.29
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
PKG_SOURCE_URL:=http://download.pureftpd.org/pub/pure-ftpd/releases
|
||||
|
@ -28,14 +28,64 @@ start_service() {
|
||||
local section="$1"
|
||||
args=""
|
||||
|
||||
append_string "$section" port "-S"
|
||||
append_string "$section" trustedgid "-a"
|
||||
append_string "$section" syslogfacility "-f"
|
||||
append_string "$section" fortunesfile "-F"
|
||||
append_string "$section" maxidletime "-I"
|
||||
append_string "$section" maxdiskusagepct "-k"
|
||||
append_string "$section" limitrecursion "-L"
|
||||
append_string "$section" anonymouscancreate "-M"
|
||||
append_string "$section" maxload "-m"
|
||||
append_string "$section" quota "-n"
|
||||
append_string "$section" altlog "-O"
|
||||
append_string "$section" passiveportrange "-p"
|
||||
append_string "$section" forcepassiveip "-P"
|
||||
append_string "$section" anonymousratio "-q"
|
||||
append_string "$section" userratio "-Q"
|
||||
append_string "$section" anonymousbandwidth "-t"
|
||||
append_string "$section" userbandwidth "-T"
|
||||
append_string "$section" minuid "-u"
|
||||
append_string "$section" trustedip "-V"
|
||||
append_string "$section" tls "-Y"
|
||||
|
||||
append_bool "$section" uploadscript "-o"
|
||||
append_bool "$section" natmode "-N"
|
||||
append_bool "$section" autorename "-r"
|
||||
append_bool "$section" nochmod "-R"
|
||||
append_bool "$section" antiwarez "-s"
|
||||
append_bool "$section" allowuserfxp "-w"
|
||||
append_bool "$section" allowanonymousfxp "-W"
|
||||
append_bool "$section" prohibitdotfileswrite "-x"
|
||||
append_bool "$section" prohibitdotfilesread "-X"
|
||||
append_bool "$section" allowdotfiles "-z"
|
||||
append_bool "$section" customerproof "-Z"
|
||||
append_bool "$section" anonymouscantupload "-i"
|
||||
append_bool "$section" createhomedir "-j"
|
||||
append_bool "$section" keepallfiles "-K"
|
||||
append_bool "$section" norename "-G"
|
||||
append_bool "$section" dontresolve "-H"
|
||||
append_bool "$section" verboselog "-d"
|
||||
append_bool "$section" displaydotfiles "-D"
|
||||
append_bool "$section" anonymousonly "-e"
|
||||
append_bool "$section" brokenclientscompatibility "-b"
|
||||
append_bool "$section" notruncate "-0"
|
||||
append_bool "$section" logpid "-1"
|
||||
append_bool "$section" ipv4only "-4"
|
||||
append_bool "$section" ipv6only "-6"
|
||||
|
||||
append_string "$section" bind "-S"
|
||||
append_string "$section" login "-l"
|
||||
|
||||
append_bool "$section" noanonymous "-E"
|
||||
append_bool "$section" chrooteveryone "-A"
|
||||
append_string "$section" maxclientsperip "-c"
|
||||
append_string "$section" maxclientsnumber "-C"
|
||||
append_string "$section" peruserlimits "-y"
|
||||
append_string "$section" umask "-U"
|
||||
|
||||
append_string "$section" port "-S"
|
||||
append_string "$section" authentication "-l"
|
||||
|
||||
config_get_bool "enabled" "$section" "enabled" '1'
|
||||
[ "$enabled" -gt 0 ] && $SSD -S -p $PIDF -q -x $PROG -- -g $PIDF -B $args
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user