1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/security/bugs/Makefile
Niclas Zeising a1b290c54d Extend expiration of ports broken with -fno-common
Extend the expiration of unmaintained leaf ports that are broken with
-fno-common and previously had a short expiration date.  The new date is set
to 2021-04-01, meaning the ports will be in the 2021Q2 branch, giving people
until 2021-06-30 (10 months from now) to fix issues.
Improve the wording of the deprecation message, mentioning both llvm 11 and
-fno-common.
Bump portrevision to force reinstall.  This way the warning message about
deprecation will be displayed to users installing or reinstalling the
software.

MFH:		2020Q3 (maybe)
2020-08-30 09:47:49 +00:00

62 lines
1.8 KiB
Makefile

# Created by: Stephane Legrand <stephane@lituus.fr>
# $FreeBSD$
PORTNAME= bugs
PORTVERSION= 4.1.1
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= SUNSITE/apps/crypto
MAINTAINER= ports@FreeBSD.org
COMMENT= Great cryptographic library and sample programs
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake tar:tgz
MAKE_ARGS= CC="${CC}" BFLAG="${CFLAGS}" \
INSTALL_PATH="${PREFIX}/${DISTNAME}"
TEST_TARGET= test
CFLAGS+= -fcommon
DEPRECATED= Unmaintained and dead upstream, does not build with -fno-common (llvm 11)
EXPIRATION_DATE=2021-04-01
PLIST_SUB= PORTVERSION="${PORTVERSION}"
DOCSDIR= ${PREFIX}/${DISTNAME}/doc
OPTIONS_DEFINE= DOCS
post-patch:
# Allow parallel builds (-jX): fix make(1) syntax, register dependencies
@${REINPLACE_CMD} -E 's+cd (.*); make+$$(MAKE) -C \1+' \
${WRKSRC}/Makefile.bsd
@${ECHO_CMD} 'apps: lib' >> ${WRKSRC}/Makefile.bsd
@${REINPLACE_CMD} -E '/^(bcrypt|bchat|bpass|blogin|bkey|bpassdel|bmore|block|bunlock|shell):/s+ *$$+ extra.o+' \
${WRKSRC}/apps/Makefile.bsd
post-configure:
${MAKE_CMD} -C ${WRKSRC} bsd
@${REINPLACE_CMD} -e 's/^install: instchoice all/install: instchoice/' ${WRKSRC}/Makefile;
@${REINPLACE_CMD} -e 's+\(@echo "Copying docs.*\)+# \1+' ${WRKSRC}/Makefile;
@${REINPLACE_CMD} -e 's+\(@cp -rf ./doc/.*\)+# \1+' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's+\(@cp -rf ./doc/.*\)+# \1+' ${WRKSRC}/Makefile
post-build:
@${LN} -sf ${WRKSRC}/lib/unix/*.a ${WRKSRC}/lib/
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${DISTNAME}/include
${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/${DISTNAME}/include
.for file in bchat bcrypt bhide bkey block blogin bmore bpass bpassdel bunlock
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${DISTNAME}/${file}
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>