aboutsummaryrefslogtreecommitdiffstats
path: root/www/webfs/Makefile
diff options
context:
space:
mode:
authoranders <anders@FreeBSD.org>2003-11-06 14:13:48 +0800
committeranders <anders@FreeBSD.org>2003-11-06 14:13:48 +0800
commita2282faa525089b3fc97baced00bc37e174bbc3f (patch)
tree73564392ddedfd17069aca879418e3fb8827ab4b /www/webfs/Makefile
parentbf3c6566aa36329f441ad0fb8eb8b3a129b7073a (diff)
downloadfreebsd-ports-gnome-a2282faa525089b3fc97baced00bc37e174bbc3f.tar.gz
freebsd-ports-gnome-a2282faa525089b3fc97baced00bc37e174bbc3f.tar.zst
freebsd-ports-gnome-a2282faa525089b3fc97baced00bc37e174bbc3f.zip
Update to 1.20, a much needed security update.
This closes a number of known vulnerabilities: http://www.securityfocus.com/bid/8724 (Server Information Disclosure) http://www.securityfocus.com/bid/8726 (Long Pathname Buffer Overrrun) http://www.securityfocus.com/bid/7990 (Request-URI Buffer Overflow) PR: 58846 Submitted by: Matthias Andree <matthias.andree@web.de> Approved by: maintainer
Diffstat (limited to 'www/webfs/Makefile')
-rw-r--r--www/webfs/Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/www/webfs/Makefile b/www/webfs/Makefile
index cb80254ce4fa..b40dadc6f505 100644
--- a/www/webfs/Makefile
+++ b/www/webfs/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= webfs
-PORTVERSION= 1.16
+PORTVERSION= 1.20
CATEGORIES= www ipv6
MASTER_SITES= http://bytesex.org/misc/
DISTNAME= ${PORTNAME}_${PORTVERSION}
@@ -16,6 +16,12 @@ COMMENT= A simple http server for static content
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
USE_REINPLACE= yes
+USE_GMAKE= yes
+MAKEFILE= GNUmakefile
+.if !defined(WITHOUT_OPENSSL)
+MAKE_ENV= USE_SSL=no
+.endif
+MAKE_ENV+= LDLIBS="-lssl -lcrypto" USE_DIET=no
MAN1= webfsd.1
MIMEFILE?= ${PREFIX}/etc/webfsd/mime.types
@@ -26,9 +32,21 @@ MIMEFILE?= ${PREFIX}/etc/webfsd/mime.types
BROKEN= "Requires FreeBSD 4.x or greater due to ipv6 support"
.endif
+pre-everything::
+ @${ECHO_CMD} ""
+ @${ECHO_CMD} "==========================================="
+ @${ECHO_CMD} "This package supports the following option:"
+ @${ECHO_CMD} ""
+ @${ECHO_CMD} " -DWITHOUT_SSL - omit SSL support"
+ @${ECHO_CMD} "==========================================="
+ @${ECHO_CMD} ""
+
do-configure:
- @${REINPLACE_CMD} -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/GNUmakefile
@${REINPLACE_CMD} -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/webfsd.man
+.if defined(WITHOUT_OPENSSL)
+ @${REINPLACE_CMD} -e 's|USE_SSL := yes|USE_SSL := no|' ${WRKSRC}/Make.config
+.endif
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/webfsd ${PREFIX}/sbin