From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jun 8 21:29:35 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D92316B11D for ; Thu, 8 Jun 2006 18:40:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9F9D43D49 for ; Thu, 8 Jun 2006 18:40:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k58IeFXo059230 for ; Thu, 8 Jun 2006 18:40:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k58IeF0G059229; Thu, 8 Jun 2006 18:40:15 GMT (envelope-from gnats) Resent-Date: Thu, 8 Jun 2006 18:40:15 GMT Resent-Message-Id: <200606081840.k58IeF0G059229@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kirk Strauser Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D7F816D56F for ; Thu, 8 Jun 2006 16:35:28 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E36543D73 for ; Thu, 8 Jun 2006 16:35:23 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k58GZMKg020445 for ; Thu, 8 Jun 2006 16:35:22 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k58GZMQV020444; Thu, 8 Jun 2006 16:35:22 GMT (envelope-from nobody) Message-Id: <200606081635.k58GZMQV020444@www.freebsd.org> Date: Thu, 8 Jun 2006 16:35:22 GMT From: Kirk Strauser To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/98715: Added "WITH_SENDFILE" configuration knob to ftp/pure-ftpd port X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:29:36 -0000 >Number: 98715 >Category: ports >Synopsis: Added "WITH_SENDFILE" configuration knob to ftp/pure-ftpd port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jun 08 18:40:15 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Kirk Strauser >Release: FreeBSD 6.1-STABLE i386 >Organization: The Day Companies >Environment: FreeBSD web2.daycos.com 6.1-STABLE FreeBSD 6.1-STABLE #0: Sun May 21 11:50:41 CDT 2006 kirk@jail1.daycos.com:/usr/obj/usr/src/sys/JAIL1 i386 >Description: Pure-FTPd uses the sendfile(2) syscall to transmit files by default. There are currently some issues with sendfile and smbfs, with the end result that users can't download files that reside on SMB mounts. Pure-FTPd includes a "--without-sendfile" configuration option as a workaround, and this patch adds convenient support for that option to the port. >How-To-Repeat: >Fix: --- pure-ftpd.patch begins here --- diff -urN pure-ftpd-old/Makefile pure-ftpd/Makefile --- pure-ftpd-old/Makefile Wed May 17 05:16:05 2006 +++ pure-ftpd/Makefile Thu Jun 8 11:19:56 2006 @@ -47,7 +47,8 @@ THROTTLING "Bandwidth throttling" off \ BANNER "Show ${PORTNAME} welcome upon session start" on \ UPLOADSCRIPT "Support uploadscript daemon" off \ - UTF8 "Support for charset conversion (expreimental)" off + UTF8 "Support for charset conversion (expreimental)" off \ + SENDFILE "Support for the sendfile syscall" on .include @@ -113,6 +114,12 @@ .if defined(WITH_UTF8) USE_ICONV= YES CONFIGURE_ARGS+= --with-rfc2640 +.endif + +.if defined(WITH_SENDFILE) +CONFIGURE_ARGS+= --with-sendfile +.else +CONFIGURE_ARGS+= --without-sendfile .endif .if ${OSVERSION} > 500000 --- pure-ftpd.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: