gsoares abdd7f3b5f Security update for wget, addressing CVE-2018-0494 - cookie injection.
New tests fails as pointed out by bket@ on ports@, but since it includes
important fix so sthen suggested we should go ahead and commit right way, i'm going
to look at it and report upstream afterwards.
OK sthen@
2018-05-07 10:37:59 +00:00

53 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.75 2018/05/07 10:37:59 gsoares Exp $
COMMENT = retrieve files from the web via HTTP, HTTPS and FTP
DISTNAME = wget-1.19.5
CATEGORIES = net
HOMEPAGE = https://www.gnu.org/software/wget/
# GPLv3
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c crypto iconv idn2 intl pcre psl ssl unistring z
BUILD_DEPENDS = devel/gettext-tools
LIB_DEPENDS = converters/libunistring \
devel/gettext \
devel/libidn2 \
devel/pcre \
net/libpsl
MASTER_SITES = ${MASTER_SITE_GNU:=wget/}
# some regression tests require python3
MODULES += lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
MODPY_BUILDDEP = No
MODPY_RUNDEP = No
TEST_DEPENDS = www/p5-HTTP-Daemon ${MODPY_RUN_DEPENDS}
# Test-proxied-https-auth.px
TEST_DEPENDS += www/p5-HTTP-Message security/p5-IO-Socket-SSL
FAKE_FLAGS = sysconfdir="${PREFIX}/share/examples/wget"
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --with-ssl=openssl
# hack to avoid depending on python3 at build time
CONFIGURE_ARGS += PYTHON="" \
am_cv_pathless_PYTHON="${MODPY_BIN}"
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC}/build-aux
pre-build:
@${SUBST_CMD} ${WRKSRC}/doc/wget.texi ${WRKSRC}/doc/sample.wgetrc
pre-test:
@ln -s ${MODPY_BIN} ${WRKDIR}/bin/python3
.include <bsd.port.mk>