diff options
author | asomers <asomers@FreeBSD.org> | 2016-07-16 06:51:13 +0800 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2016-07-16 06:51:13 +0800 |
commit | b29e390acb1385f896079d16b9b638d39c72e782 (patch) | |
tree | ae521b31aaec38cb6d52fc3af72e251145cfaaba | |
parent | 4dfa9db90614bceab7465149d982593523391220 (diff) | |
download | freebsd-ports-gnome-b29e390acb1385f896079d16b9b638d39c72e782.tar.gz freebsd-ports-gnome-b29e390acb1385f896079d16b9b638d39c72e782.tar.zst freebsd-ports-gnome-b29e390acb1385f896079d16b9b638d39c72e782.zip |
Make pure-ftpd flags configurable in /etc/rc.conf
Recognize a "pureftpd_flags" variable in pure-ftpd's rc script. Pretty much
anything that can be placed in /usr/local/etc/pure-ftpd.conf can be placed
in this variable instead.
ftp/pure-ftpd/Makefile
Bump PORTREVISION
ftp/pure-ftpd/files/pure-ftpd.in
Handle pureftpd_flags. It needs special handling because, unlike
most daemons, pure-config.pl takes its mandatory argument first and
its optional flags last.
PR: 210311
Approved by: maintainer-timeout
Approved by: brd (ports)
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D6676
-rw-r--r-- | ftp/pure-ftpd/Makefile | 2 | ||||
-rw-r--r-- | ftp/pure-ftpd/files/pure-ftpd.in | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ftp/pure-ftpd/Makefile b/ftp/pure-ftpd/Makefile index da66e000f1e2..7562caf7e04f 100644 --- a/ftp/pure-ftpd/Makefile +++ b/ftp/pure-ftpd/Makefile @@ -3,7 +3,7 @@ PORTNAME= pure-ftpd PORTVERSION= 1.0.42 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= ftp ipv6 MASTER_SITES= http://download.pureftpd.org/pub/pure-ftpd/releases/ \ ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/ \ diff --git a/ftp/pure-ftpd/files/pure-ftpd.in b/ftp/pure-ftpd/files/pure-ftpd.in index 3e9b7246921b..08412fa76709 100644 --- a/ftp/pure-ftpd/files/pure-ftpd.in +++ b/ftp/pure-ftpd/files/pure-ftpd.in @@ -11,6 +11,7 @@ # Add the following lines to /etc/rc.conf to enable pure-ftpd: # # pureftpd_enable="yes" +# pureftpd_flags="<set as needed>" # # Add the following lines to /etc/rc.conf to enable pure-authd daemon: # @@ -48,7 +49,8 @@ pidfile_uploadscript=${pidfile_uploadscript:-"/var/run/pure-uploadscript.pid"} pureftpd_upload_enable=${pureftpd_upload_enable:-"no"} pureftpd_uploadscript=${pureftpd_uploadscript:-"/usr/bin/touch"} # command_args -command_args="${pureftpd_config} -g${pidfile}" +flags="${pureftpd_config} -g${pidfile}" +command_args="${pureftpd_flags}" command_authd_args="-B -p ${pidfile_authd} -r ${pureftpd_authdscript} -s ${pureftpd_authsocket}" command_upload_args="-B -p ${pidfile_uploadscript} -r ${pureftpd_uploadscript}" |