diff options
author | silby <silby@FreeBSD.org> | 2004-02-01 12:51:54 +0800 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2004-02-01 12:51:54 +0800 |
commit | 4d952daecc0ae10094143c6d51a31983f2f53457 (patch) | |
tree | 69ab0c9b6b25b566f1fddd58fb16f623f81f19c0 /www/thttpd | |
parent | 565d70d8804f91dbbe5619deedd50935c187ee49 (diff) | |
download | freebsd-ports-gnome-4d952daecc0ae10094143c6d51a31983f2f53457.tar.gz freebsd-ports-gnome-4d952daecc0ae10094143c6d51a31983f2f53457.tar.zst freebsd-ports-gnome-4d952daecc0ae10094143c6d51a31983f2f53457.zip |
Enable sendfile support by default for 5.2+ systems, as we now have alc's
improved sendfile and the ability to watch usage via netstat -m.
Diffstat (limited to 'www/thttpd')
-rw-r--r-- | www/thttpd/Makefile | 7 | ||||
-rw-r--r-- | www/thttpd/files/extra-patch-config.h | 9 |
2 files changed, 15 insertions, 1 deletions
diff --git a/www/thttpd/Makefile b/www/thttpd/Makefile index fc73dccec789..3684378442cc 100644 --- a/www/thttpd/Makefile +++ b/www/thttpd/Makefile @@ -25,6 +25,8 @@ USE_REINPLACE= yes MAN1= makeweb.1 htpasswd.1 MAN8= thttpd.8 redirect.8 ssi.8 syslogtocern.8 +.include <bsd.port.pre.mk> + do-install: @${INSTALL_PROGRAM} ${WRKSRC}/thttpd ${PREFIX}/sbin/ @${INSTALL_MAN} ${WRKSRC}/thttpd.8 ${PREFIX}/man/man8 @@ -73,6 +75,9 @@ post-install: @${CAT} ${PKGMESSAGE} post-configure: config-message +.if ${OSVERSION} > 502101 + @cd ${WRKSRC} && patch < ${PATCHDIR}/extra-patch-config.h +.endif post-build: config-message @@ -84,4 +89,4 @@ config-message: @${ECHO} "" @${ECHO} "=====================================================================" -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/www/thttpd/files/extra-patch-config.h b/www/thttpd/files/extra-patch-config.h new file mode 100644 index 000000000000..4eda85b272b0 --- /dev/null +++ b/www/thttpd/files/extra-patch-config.h @@ -0,0 +1,9 @@ +--- config.h.old Sat Jan 31 22:17:25 2004 ++++ config.h Sat Jan 31 22:17:38 2004 +@@ -380,4 +380,6 @@ + */ + #define MIN_WOULDBLOCK_DELAY 100L + ++#define USE_SENDFILE ++ + #endif /* _CONFIG_H_ */ |