aboutsummaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2016-07-15 22:51:13 +0000
committerAlan Somers <asomers@FreeBSD.org>2016-07-15 22:51:13 +0000
commit59073b0f72436e9f87a8cd408957e49c67d13b0f (patch)
treeae521b31aaec38cb6d52fc3af72e251145cfaaba /ftp
parent35ffb79bb961a4eda9c2f837bd3dc74746958b13 (diff)
downloadports-59073b0f72436e9f87a8cd408957e49c67d13b0f.tar.gz
ports-59073b0f72436e9f87a8cd408957e49c67d13b0f.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
Notes
Notes: svn path=/head/; revision=418610
Diffstat (limited to 'ftp')
-rw-r--r--ftp/pure-ftpd/Makefile2
-rw-r--r--ftp/pure-ftpd/files/pure-ftpd.in4
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}"