ports/98715: Added "WITH_SENDFILE" configuration knob to ftp/pure-ftpd port

Kirk Strauser kirk at daycos.com
Thu Jun 8 21:29:36 UTC 2006

>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
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 08 18:40:15 GMT 2006
>Originator:     Kirk Strauser
>Release:        FreeBSD 6.1-STABLE i386
The Day Companies
FreeBSD web2.daycos.com 6.1-STABLE FreeBSD 6.1-STABLE #0: Sun May 21 11:50:41 CDT 2006 kirk at jail1.daycos.com:/usr/obj/usr/src/sys/JAIL1 i386
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.


--- 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 <bsd.port.pre.mk>

@@ -113,6 +114,12 @@
 .if defined(WITH_UTF8)
 CONFIGURE_ARGS+=       --with-rfc2640
+.if defined(WITH_SENDFILE)
+CONFIGURE_ARGS+=       --with-sendfile
+CONFIGURE_ARGS+=       --without-sendfile

 .if ${OSVERSION} > 500000
--- pure-ftpd.patch ends here ---


More information about the freebsd-ports-bugs mailing list