Add MAX_NUM_CLIENTS option, to override command-line limit for maximum

number of connections.

PR:		36022
Submitted by:	Gea-Suan Lin <gslin@infomath.math.nctu.edu.tw>
This commit is contained in:
Anders Nordby 2002-03-17 23:38:44 +00:00
parent c1d2a776da
commit 610629a50f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56274

View file

@ -7,7 +7,7 @@
PORTNAME= oftpd
PORTVERSION= 0.3.6
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= ftp
MASTER_SITES= http://www.time-travellers.org/oftpd/ \
http://atreides.freenix.no/~anders/
@ -23,6 +23,11 @@ CONFIGURE_ENV+= LIBS="-pthread"
MAN8= oftpd.8
post-patch:
.if defined(MAX_NUM_CLIENTS)
@${PERL} -pi -e "s,MAX_NUM_CLIENTS 300,MAX_NUM_CLIENTS ${MAX_NUM_CLIENTS}," ${WRKSRC}/src/oftpd.h
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/oftpd ${PREFIX}/sbin/oftpd
.if !defined(NOPORTDOCS)