From gslin@infomath.math.nctu.edu.tw  Sun Mar 17 13:16:16 2002
Return-Path: <gslin@infomath.math.nctu.edu.tw>
Received: from Mgw2-out.NCTU.edu.tw (Mgw2-out.NCTU.edu.tw [140.113.6.234])
	by hub.freebsd.org (Postfix) with ESMTP id 616D737B402
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 17 Mar 2002 13:16:11 -0800 (PST)
Received: (from root@localhost)
	by Mgw2-out.NCTU.edu.tw (8.11.6/8.11.6) id g2HLG4h74948
	for FreeBSD-gnats-submit@freebsd.org.procmail; Mon, 18 Mar 2002 05:16:04 +0800 (CST)
Received: from infomath.math.nctu.edu.tw (infomath.Math.NCTU.edu.tw [140.113.22.119])
	by Mgw2-out.NCTU.edu.tw (8.11.6/8.11.6) with ESMTP id g2HLG4f74936;
	Mon, 18 Mar 2002 05:16:04 +0800 (CST)
Received: by infomath.math.nctu.edu.tw (Postfix, from userid 1000)
	id 124623D8D; Mon, 18 Mar 2002 05:16:01 +0800 (CST)
Message-Id: <20020317211601.124623D8D@infomath.math.nctu.edu.tw>
Date: Mon, 18 Mar 2002 05:16:01 +0800 (CST)
From: Gea-Suan Lin <gslin@infomath.math.nctu.edu.tw>
Reply-To: Gea-Suan Lin <gslin@infomath.math.nctu.edu.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc: anders@fix.no, gslin@infomath.math.nctu.edu.tw
Subject: Update port: ftp/oftpd
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         36022
>Category:       ports
>Synopsis:       Update port: ftp/oftpd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    anders
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 17 13:20:00 PST 2002
>Closed-Date:    Sun Mar 17 15:40:11 PST 2002
>Last-Modified:  Sun Mar 17 15:40:11 PST 2002
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 4.5-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD InfoMath.Math.NCTU.edu.tw 4.5-RELEASE-p2 FreeBSD 4.5-RELEASE-p2 #5: Fri Mar 8 02:38:09 CST 2002 root@InfoMath.Math.NCTU.edu.tw:/home/obj/usr/src/sys/InFoMath i386


	
>Description:
	Add an option "MAX_NUM_CLIENTS".
	
>How-To-Repeat:
	
>Fix:

diff -ruN /usr/ports/ftp/oftpd/Makefile oftpd/Makefile
--- /usr/ports/ftp/oftpd/Makefile	Thu Jun 21 21:12:55 2001
+++ oftpd/Makefile	Mon Mar 18 05:12:43 2002
@@ -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://www.freenix.no/~anders/
@@ -22,6 +22,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
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->anders 
Responsible-Changed-By: anders 
Responsible-Changed-When: Sun Mar 17 13:43:29 PST 2002 
Responsible-Changed-Why:  
I'll deal with this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36022 
State-Changed-From-To: open->closed 
State-Changed-By: anders 
State-Changed-When: Sun Mar 17 15:39:51 PST 2002 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36022 
>Unformatted:
