sthen 3a40db376a update to zsh-5.8.1, from Matthew Martin
This is a stable security release with a few bug fixes, including one
for CVE-2021-45444, a vulnerability in prompt expansion which could be
exploited through e.g. VCS_Info to execute arbitrary shell commands
without a user's knowledge. All sites are encouraged to update from
zsh 5.8. A partial work-around which can be applied within a running
shell is provided in the source distribution for those who are unable
to update their shell binaries.

https://www.zsh.org/mla/announce/msg00133.html
2022-02-12 17:15:10 +00:00

54 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.94 2022/02/12 17:15:10 sthen Exp $
COMMENT= Z shell, Bourne shell-compatible
V= 5.8.1
DISTNAME= zsh-$V
CATEGORIES= shells
MAINTAINER= Pierre-Emmanuel Andre <pea@openbsd.org>
HOMEPAGE= https://www.zsh.org/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=zsh/} \
https://www.zsh.org/pub/
EXTRACT_SUFX= .tar.xz
# BSD
PERMIT_PACKAGE= Yes
WANTLIB= c curses iconv m pcre
LIB_DEPENDS= converters/libiconv \
devel/pcre
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --disable-zsh-mem \
--disable-zsh-secure-free \
--enable-maildir-support \
--enable-function-subdirs \
--enable-multibyte \
--enable-pcre \
--disable-gdbm \
--with-tcsetpgrp
SUBST_VARS= V
EXTFILES= Calendar/calendar_add Example/cat Example/zless \
Misc/checkmail Misc/run-help \
Misc/run-help-ip \
Misc/sticky-note Misc/zcalc \
Misc/zed Misc/zkbd
pre-configure:
.for i in ${EXTFILES}
sed -i -e "s,/bin/zsh,${TRUEPREFIX}/bin/zsh,g" \
${WRKSRC}/Functions/${i}
.endfor
.include <bsd.port.mk>