Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2002 05:16:01 +0800 (CST)
From:      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:   ports/36022: Update port: ftp/oftpd
Message-ID:  <20020317211601.124623D8D@infomath.math.nctu.edu.tw>

next in thread | raw e-mail | index | archive | help

>Number:         36022
>Category:       ports
>Synopsis:       Update port: ftp/oftpd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 17 13:20:00 PST 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020317211601.124623D8D>