aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authoranders <anders@FreeBSD.org>2002-03-18 07:38:44 +0800
committeranders <anders@FreeBSD.org>2002-03-18 07:38:44 +0800
commite736cd8f478d468f177b70d992db7fe3a15855c9 (patch)
tree73fd6b9cd1d7fcf03f7cdd27572df40da32f52a9 /ftp
parentaceddc4968f1b134a1e30d599764bd6b00a8e110 (diff)
downloadfreebsd-ports-gnome-e736cd8f478d468f177b70d992db7fe3a15855c9.tar.gz
freebsd-ports-gnome-e736cd8f478d468f177b70d992db7fe3a15855c9.tar.zst
freebsd-ports-gnome-e736cd8f478d468f177b70d992db7fe3a15855c9.zip
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>
Diffstat (limited to 'ftp')
-rw-r--r--ftp/oftpd/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/ftp/oftpd/Makefile b/ftp/oftpd/Makefile
index acbf8e8f5e45..11f302199b22 100644
--- a/ftp/oftpd/Makefile
+++ b/ftp/oftpd/Makefile
@@ -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)