openbsd-ports/archivers/unrar/Makefile
naddy 7c4fe1cb0b archivers/unrar: security update to 6.12
Fixes a directory traversal vulnerability during an extract operation
(CVE-2022-30333).
2022-05-12 13:42:00 +00:00

44 lines
1.1 KiB
Makefile

COMMENT= extract, list, and test RAR archives
# NB: The software version is different from the distfile version.
# Check version.hpp or the banner printed when running unrar
# for the version to use in PKGNAME. In particular, RARVER_BETA
# is *not* a third digit, but increments before finally being set
# to 0 for a non-beta release, e.g., "5.00 beta 8" was succeeded
# by "5.00".
PKGNAME= unrar-6.12
EPOCH= 2
DISTNAME= unrarsrc-6.1.7
CATEGORIES= archivers
HOMEPAGE= https://www.rarlab.com/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# nonstandard
PERMIT_PACKAGE= Yes
WANTLIB= c crypto m pthread ${COMPILER_LIBCXX}
COMPILER = base-clang ports-gcc base-gcc
MASTER_SITES= ${HOMEPAGE}rar/
WRKDIST= ${WRKDIR}/unrar
MAKE_FILE= makefile
MAKE_FLAGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" STRIP=:
DEBUG_PACKAGES= ${BUILD_PACKAGES}
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/unrar ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/unrar
${INSTALL_MAN} ${WRKSRC}/readme.txt ${WRKSRC}/license.txt \
${PREFIX}/share/doc/unrar
NO_TEST= Yes
.include <bsd.port.mk>